:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --accent: #00ff88;
    --accent-glow: rgba(0, 255, 136, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #8b8b9e;
    --border: #2a2a3a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* Navigation */
.nav-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    height: 32px;
    width: 32px;
}

.nav-brand {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent);
}

/* Search */
.search-section {
    margin: 24px 0;
}

.search-form {
    display: flex;
}

.search-input {
    flex: 1;
    max-width: 500px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 0 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--accent);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    height: 40px;
    background: linear-gradient(135deg, var(--accent), #00ccff);
    color: var(--bg-primary);
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 0 20px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.search-btn:hover {
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.3s;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent);
}

/* List */
.list {
    list-style: none;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Icon */
.icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

/* Links */
.link {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.link:hover {
    color: #00ccff;
    text-decoration: underline;
}

/* Mono text */
.mono {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* Text colors */
.text-primary {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.text-secondary {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.text-accent {
    color: var(--accent);
}

.text-muted {
    color: var(--text-secondary);
}

/* Button */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), #00ccff);
    color: var(--bg-primary);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn:hover {
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: none;
    transform: none;
}

.btn-disabled {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: not-allowed;
    pointer-events: none;
}

.btn-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Badge */
.badge {
    display: inline-block;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.badge-accent {
    border-color: var(--accent);
    color: var(--accent);
}

/* Section */
.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent);
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 12px;
    margin-bottom: 8px;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.detail-value {
    color: var(--text-primary);
    word-break: break-all;
}

/* Pre block */
.pre-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-all;
    margin-top: 8px;
    overflow-x: auto;
}

/* Spacing utilities */
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

/* State page specific */
.state-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.state-item:hover {
    border-color: var(--accent);
}

.state-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 8px;
    user-select: none;
}

.state-header:hover {
    background: var(--bg-secondary);
}

.toggle-icon {
    color: var(--accent);
    margin-right: 8px;
    display: inline-block;
    transition: transform 0.2s;
}

.state-key {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
}

.state-value {
    display: none;
    padding: 0 16px 16px 40px;
}

.state-value.visible {
    display: block;
}

.state-pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    font-size: 0.8rem;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: auto;
}

/* Block hash text */
.hash-text {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    word-break: break-all;
}
