/* ═══════════════════════════════════════════════════════════════════════════
   LIGHT COMPUTER RESEARCH ARCHIVE — CSS
   Philosophy: Professionalism, Futurism, Minimalism, Dynamism
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --void: #020208;
    --void-deep: #000000;
    --surface: rgba(10, 10, 25, 0.6);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(0, 200, 255, 0.15);
    
    --accent: #00d2ff;
    --accent-hot: #3aedff;
    --text-primary: #e2e2f0;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET & BASE ─── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--void-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ─── BACKGROUND ─── */
.research-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.void-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 20%, var(--void-deep) 100%);
    z-index: 1;
}

#research-canvas {
    width: 100%;
    height: 100%;
}

/* ─── NAV ─── */
.research-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 32px 48px;
    display: flex;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, var(--void-deep) 0%, transparent 100%);
}

.nav-back {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s var(--ease-expo);
}

.nav-back:hover {
    color: var(--accent);
    transform: translateX(-4px);
}

.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-tag {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.4em;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ─── MAIN CONTAINER ─── */
.research-container {
    max-width: 900px;
    margin: 160px auto 120px;
    padding: 0 40px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* ─── GLASS PANELS ─── */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 1px 1px 0 rgba(255,255,255,0.05),
        inset -1px -1px 0 rgba(0,0,0,0.2),
        0 20px 50px rgba(0,0,0,0.3);
    transition: box-shadow 0.6s var(--ease-expo);
}

.glass-panel:hover {
    transform: translateY(-4px);
    transition: transform 0.6s var(--ease-expo), box-shadow 0.6s var(--ease-expo);
    box-shadow: 
        inset 1px 1px 0 rgba(255,255,255,0.08),
        inset -1px -1px 0 rgba(0,0,0,0.3),
        0 30px 60px rgba(0,0,0,0.4),
        0 0 20px var(--glass-glow);
}

/* ─── HEADER CONTENT ─── */
.header-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.meta-item {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    padding: 4px 12px;
    border: 1px solid var(--accent);
    border-radius: 100px;
    opacity: 0.8;
}

.paper-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-align: center;
}

.paper-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    text-align: center;
}

.author-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}

.author-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.author-role {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ─── SECTIONS ─── */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    color: var(--accent);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 32px;
}

.section-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.highlight-box {
    margin-top: 40px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--accent);
    border-radius: 4px 16px 16px 4px;
}

.highlight-box p {
    font-style: italic;
    color: var(--text-primary);
}

/* ─── FOOTER ─── */
.paper-footer {
    margin-top: 100px;
    padding-bottom: 40px;
}

.footer-line {
    width: 100%; height: 1px;
    background: linear-gradient(to right, transparent, var(--text-muted), transparent);
    margin-bottom: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    gap: 24px;
}

/* ─── SIDE TOC ─── */
.side-toc {
    position: fixed;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 20px 0 20px 40px; /* Bridge gap */
}

.toc-dashes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
    cursor: pointer;
}

.toc-dash {
    width: 12px;
    height: 1px;
    background: var(--text-muted);
    opacity: 0.3;
    transition: all 0.3s var(--ease-expo);
}

.toc-dash.active {
    width: 24px;
    background: var(--accent);
    opacity: 1;
    box-shadow: 0 0 10px var(--accent);
}

.toc-panel {
    position: absolute;
    right: 28px;
    width: 280px;
    padding: 32px !important;
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    transition: all 0.4s var(--ease-expo);
    background: rgba(10, 10, 25, 0.95) !important;
    border: 1px solid var(--glass-border) !important;
}

/* Invisible Bridge */
.side-toc::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.side-toc:hover .toc-panel {
    opacity: 1 !important;
    transform: translateX(0) !important;
    pointer-events: all !important;
}

.toc-header {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s var(--ease-expo);
}

.toc-link::before {
    content: attr(data-index);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.toc-link:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.toc-link.active {
    color: var(--accent);
}

@media (max-width: 1200px) {
    .side-toc { display: none; }
}

@media (max-width: 1000px) {
    .research-container { padding: 0 24px 100px; }
    .glass-panel { padding: 40px; }
    .paper-title { font-size: 2.5rem; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}
