:root {
    --bg-color: #0b0c10;
    --text-main: #c5c6c7;
    --text-muted: #8892b0;
    --accent: #66fcf1;
    --accent-hover: #45a29e;
    --glass-bg: rgba(31, 40, 51, 0.6);
    --glass-border: rgba(102, 252, 241, 0.15);
    
    /* Code highlighting */
    --code-bg: rgba(11, 12, 16, 0.8);
    --code-key: #f28d1a;
    --code-string: #98c379;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Dynamic Background Effect */
.bg-fx {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(102, 252, 241, 0.08) 0%, transparent 60%);
    z-index: -1;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo h1 span {
    color: var(--accent);
    font-weight: 300;
}

.logo p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.nav-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    padding: 2rem 3rem;
    max-width: 1600px;
    margin: 0 auto;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.timeline-panel h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.timeline-item:hover {
    transform: translateX(5px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--text-muted);
    transition: all 0.3s ease;
}

.timeline-item.active::before {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.timeline-title {
    font-weight: 600;
    margin: 0.2rem 0;
}

.timeline-hash {
    font-size: 0.75rem;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.8;
}

/* DID Panel */
.did-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    background: rgba(102, 252, 241, 0.1);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--accent);
}

.explanation {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-main);
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
}

.code-container {
    flex-grow: 1;
    background: var(--code-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.code-header {
    background: rgba(255,255,255,0.05);
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent);
}

pre {
    padding: 1.5rem;
    overflow-x: auto;
    flex-grow: 1;
}

code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Very simple syntax highlighting handled in JS for now */
.key { color: var(--code-key); }
.string { color: var(--code-string); }

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