/* ============================================
   MEGA EPSTEIN — Page + Cork Board Section
   ============================================ */

:root {
    --cork: #b8916c;
    --cork-dark: #9a7554;
    --pin-red: #c0392b;
    --pin-yellow: #f1c40f;
    --string-red: #c0392b;
    --accent: #5ba3d9;
    --accent-light: #8ec5f0;
    --green: #22c55e;
    --red: #ef4444;
    --bg-dark: #06090e;
    --bg-card: #0c1018;
    --text-primary: #d0d8e0;
    --text-secondary: #607080;
    --border-color: #182030;
    --stamp-red: #a82020;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
.accent-color { color: var(--accent) !important; }

/* ==================== TOP NAV ==================== */
.top-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 24px; background: #040710;
    border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 200;
}
.nav-left { display: flex; align-items: center; gap: 16px; }
.logo-container { display: flex; align-items: center; gap: 8px; }
.nav-logo-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid #222; }
.nav-logo-img:hover { border-color: var(--accent); }
.logo-text { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: 2px; color: var(--accent-light); }
.logo-badge { font-size: 7px; font-weight: 800; letter-spacing: 2px; padding: 2px 5px; background: var(--stamp-red); color: white; border-radius: 2px; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.nav-links { display: flex; gap: 5px; }
.nav-btn { padding: 6px 14px; border: 1px solid #1a1a1a; border-radius: 3px; font-size: 11px; font-weight: 600; letter-spacing: 1px; color: #aaa; transition: all 0.2s; cursor: pointer; }
.nav-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-btn-accent { background: linear-gradient(135deg, #3a7bb5, var(--accent)); border: none; color: #fff; font-weight: 700; }
.nav-right { display: flex; gap: 10px; align-items: center; }
.social-icon { display: flex; align-items: center; color: #555; transition: all 0.2s; cursor: pointer; }
.social-icon svg { fill: #555; transition: fill 0.2s; }
.social-icon:hover svg { fill: var(--accent); }

/* ==================== TICKER ==================== */
.ticker-bar { background: #030303; border-bottom: 1px solid #151515; overflow: hidden; padding: 8px 0; }
.ticker-track { overflow: hidden; }
.ticker-content { display: flex; gap: 24px; animation: tickerScroll 45s linear infinite; white-space: nowrap; }
.ticker-item { font-size: 12px; font-weight: 600; color: #444; flex-shrink: 0; }
.ticker-item.highlight { color: var(--stamp-red); background: rgba(192,57,43,0.1); padding: 1px 8px; border-radius: 3px; border: 1px solid rgba(192,57,43,0.25); font-weight: 800; letter-spacing: 1px; }
.ticker-price { margin-left: 4px; }
.ticker-price.green { color: var(--green); }
.ticker-price.red { color: var(--red); }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ==================== HERO SECTION ==================== */
.hero-section {
    display: grid;
    grid-template-columns: 0.9fr 1fr 1.1fr;
    border-bottom: 1px solid var(--border-color);
    min-height: 420px;
}

/* Left */
.hero-left {
    border-right: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; background: var(--bg-card);
}
.video-container {
    position: relative; width: 100%; aspect-ratio: 1; background: #000;
    border-radius: 10px; overflow: hidden; border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.video-container video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 10px; }
.sound-toggle {
    position: absolute; bottom: 8px; right: 8px;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(0,0,0,0.7); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; z-index: 10;
}
.sound-toggle:hover { background: var(--accent); }
.sound-toggle svg { stroke: currentColor; }

/* Center */
.hero-center {
    padding: 24px 28px; display: flex; flex-direction: column; justify-content: center;
}
.mega-title {
    font-family: 'Oswald', sans-serif;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--accent-light);
    line-height: 1;
    margin-bottom: 10px;
}

.classified-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.classified-label { font-size: 9px; font-weight: 800; letter-spacing: 2px; padding: 3px 8px; background: var(--stamp-red); color: white; border-radius: 2px; animation: pulse 2s ease-in-out infinite; }
.classified-date { font-size: 10px; color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; }
.hero-headline { font-family: 'Oswald', sans-serif; font-size: 32px; font-weight: 800; line-height: 1.12; margin-bottom: 14px; color: white; }
.hero-body { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 16px; }

.evidence-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.ev-pill { font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: rgba(91,163,217,0.08); color: var(--accent); border: 1px solid rgba(91,163,217,0.15); }

.cta-board-btn {
    display: inline-block; padding: 10px 24px;
    background: linear-gradient(135deg, var(--stamp-red), #8b0000);
    color: white; border-radius: 6px;
    font-size: 14px; font-weight: 700; letter-spacing: 1px;
    transition: all 0.2s; align-self: flex-start;
}
.cta-board-btn:hover { box-shadow: 0 4px 20px rgba(192,57,43,0.4); transform: translateY(-1px); }

/* Right */
.hero-right {
    border-left: 1px solid var(--border-color);
    padding: 20px 16px; background: var(--bg-card);
    display: flex; flex-direction: column; gap: 10px;
}
.sidebar-box h3 { font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 10px; color: white; letter-spacing: 1px; }
/* Sidebar video */
.sidebar-video-wrap {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}
.sidebar-video-wrap video {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.sound-toggle-side {
    position: absolute;
    bottom: 6px; right: 6px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; z-index: 10;
}
.sound-toggle-side:hover { background: var(--accent); border-color: var(--accent); }
.sound-toggle-side svg { stroke: currentColor; }

.sidebar-coin-img { width: 70px; height: 70px; display: block; margin: 0 auto 8px; border-radius: 50%; box-shadow: 0 4px 16px rgba(91,163,217,0.3); border: 2px solid var(--border-color); transition: all 0.3s; }
.sidebar-coin-img:hover { border-color: var(--accent); transform: rotate(5deg); }
.sidebar-caption { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 8px; }
.sidebar-tagline { font-size: 15px; font-weight: 700; }

.sidebar-cards { border-top: 1px solid var(--border-color); padding-top: 8px; }
.side-card { padding: 8px 0; border-bottom: 1px solid var(--border-color); }
.side-card:last-child { border-bottom: none; }
.side-card .card-source { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 3px; }
.side-card p { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--text-primary); }

/* ==================== BOARD SECTION ==================== */
.board-section {
    border-top: 3px solid var(--stamp-red);
}

.board-header {
    padding: 16px 24px;
    background: #040710;
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 16px;
}
.board-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px; font-weight: 700;
    color: white; letter-spacing: 2px;
}
.board-header p {
    font-size: 11px; color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

/* ==================== BOARD LAYOUT ==================== */
.board-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
}

/* ==================== CORK BOARD ==================== */
.cork-board {
    position: relative;
    width: 100%; height: 700px;
    overflow: hidden;
    background:
        repeating-conic-gradient(var(--cork-dark) 0% 25%, transparent 0% 50%) 0 0 / 20px 20px,
        linear-gradient(135deg, var(--cork) 0%, var(--cork-dark) 50%, var(--cork) 100%);
    background-color: var(--cork);
    box-shadow: inset 0 0 60px rgba(0,0,0,0.3);
}

.strings-layer {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 1;
}
.strings-layer line { stroke: var(--string-red); stroke-width: 1.5; opacity: 0.7; }

/* ==================== BOARD ITEMS ==================== */
.board-item {
    position: absolute; cursor: grab; z-index: 10;
    transition: box-shadow 0.2s; user-select: none;
}
.board-item:active { cursor: grabbing; }
.board-item.dragging { z-index: 999 !important; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4)); }

.pin {
    position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
    width: 14px; height: 14px; border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #f55, var(--pin-red));
    box-shadow: 0 2px 4px rgba(0,0,0,0.4), inset 0 -1px 2px rgba(0,0,0,0.3);
    z-index: 20;
}
.yellow-pin { background: radial-gradient(circle at 40% 35%, #ffe066, var(--pin-yellow)); }

/* Title */
.title-card { z-index: 30; }
.title-inner { background: #f5f0e8; border: 3px solid #8b0000; padding: 8px 28px; text-align: center; box-shadow: 2px 3px 8px rgba(0,0,0,0.3); }
.title-inner h1 { font-family: 'Special Elite', monospace; font-size: 26px; font-weight: 400; color: #1a1a1a; letter-spacing: 4px; }
.title-inner p { font-family: 'JetBrains Mono', monospace; font-size: 8px; color: #888; letter-spacing: 3px; margin-top: 2px; }

/* Photos */
.photo-card { width: 110px; }
.photo-inner { background: #fff; padding: 6px 6px 4px; box-shadow: 2px 3px 10px rgba(0,0,0,0.35); }
.photo-inner img { width: 98px; height: 120px; object-fit: cover; display: block; filter: grayscale(30%); }
.epstein-card .photo-inner img { filter: grayscale(10%); }
.photo-label { display: block; font-family: 'Special Elite', monospace; font-size: 10px; color: #333; text-align: center; margin-top: 3px; letter-spacing: 1px; }

/* Censored with real images */
.censored-wrap { width: 98px; height: 120px; position: relative; overflow: hidden; }
.censored-wrap img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(60%) brightness(0.8); }
.censored-wrap .censor-bar { width: 100%; height: 28px; background: #111; position: absolute; top: 38%; z-index: 2; }

/* Island and plane cards wider */
.island-card { width: 160px; }
.island-card .photo-inner img { width: 148px; height: 100px; object-fit: cover; }
.plane-card { width: 160px; }
.plane-card .photo-inner img { width: 148px; height: 100px; object-fit: cover; }

/* Documents */
.doc-card { width: 200px; }
.doc-inner { background: #faf7f0; padding: 12px 14px; box-shadow: 2px 3px 10px rgba(0,0,0,0.3); border-left: 4px solid var(--accent); }
.doc-stamp { font-family: 'Special Elite', monospace; font-size: 9px; letter-spacing: 2px; color: var(--stamp-red); border: 1.5px solid var(--stamp-red); padding: 1px 6px; border-radius: 2px; display: inline-block; margin-bottom: 6px; transform: rotate(-1deg); opacity: 0.85; }
.doc-inner h4 { font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.doc-inner p { font-size: 10px; color: #555; line-height: 1.45; }
.doc-hash { font-family: 'JetBrains Mono', monospace; font-size: 8px; color: var(--accent); opacity: 0.6; display: block; margin-top: 6px; }

/* Stickies */
.sticky-note { width: 130px; padding: 12px 10px 10px; box-shadow: 2px 3px 8px rgba(0,0,0,0.25); }
.sticky-note p { font-family: 'Special Elite', monospace; font-size: 11px; color: #2a2a2a; line-height: 1.4; }
.yellow-sticky { background: #fef49c; transform: rotate(-2deg); }
.blue-sticky { background: #a8d8f0; transform: rotate(1deg); }
.pink-sticky { background: #f5a3b8; transform: rotate(-1.5deg); }
.green-sticky { background: #a8e6a3; transform: rotate(1.5deg); }

/* Banner */
.banner-card { width: 340px; }
.banner-card img { width: 100%; height: auto; display: block; box-shadow: 2px 3px 10px rgba(0,0,0,0.35); border: 3px solid #fff; }

/* Logo */
.logo-card { width: 90px; text-align: center; }
.logo-card img { width: 80px; height: 80px; border-radius: 50%; box-shadow: 0 4px 16px rgba(91,163,217,0.3), 2px 3px 8px rgba(0,0,0,0.3); border: 3px solid #fff; display: block; margin: 0 auto; }
.logo-label { display: block; font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 700; color: #333; letter-spacing: 2px; margin-top: 4px; background: #fff; padding: 1px 8px; box-shadow: 1px 2px 4px rgba(0,0,0,0.2); }

/* Map */
.map-card { width: 140px; }
.map-inner { background: #f0ece0; padding: 10px; box-shadow: 2px 3px 10px rgba(0,0,0,0.3); border: 2px solid #c8b898; }
.map-visual { text-align: center; }
.island-shape { width: 80px; height: 50px; margin: 0 auto 6px; background: #6aaa5c; border-radius: 40% 50% 45% 55%; border: 2px solid #3a7a3a; position: relative; }
.island-shape::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed #8899aa; }
.map-label-top { display: block; font-family: 'Special Elite', monospace; font-size: 10px; color: #333; letter-spacing: 2px; }
.map-coords { display: block; font-family: 'JetBrains Mono', monospace; font-size: 8px; color: #888; margin-top: 2px; }

/* ==================== CLASSIFIED FILES PANEL ==================== */
.files-panel {
    background: #0a0e16;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 700px;
}

.files-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    background: #060a10;
}
.files-header h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 16px; font-weight: 700;
    color: white; letter-spacing: 1px;
}
.files-header p {
    font-size: 10px; color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 2px;
}

.files-stack {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 20px;
}

.file-item {
    position: absolute;
    inset: 20px;
    display: none;
    flex-direction: column;
    animation: fileIn 0.35s ease;
    /* Paper document look */
    background: #f8f5ee;
    border-radius: 2px;
    box-shadow:
        4px 4px 12px rgba(0,0,0,0.35),
        -1px -1px 0 #e8e4da,
        1px 0 0 #ddd8cc,
        /* stacked pages behind */
        6px 6px 0 #ede9e0,
        7px 7px 10px rgba(0,0,0,0.2),
        10px 10px 0 #e4e0d6,
        11px 11px 8px rgba(0,0,0,0.15);
    overflow: hidden;
}

.file-item.active {
    display: flex;
}

@keyframes fileIn {
    from { opacity: 0; transform: translateY(10px) rotate(-0.5deg); }
    to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* Paper top edge — classification stripe */
.file-tab {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: #f0ece2;
    border-bottom: 2px solid #c8102e;
    position: relative;
}

.file-tab::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg, #c8102e 0px, #c8102e 20px, transparent 20px, transparent 30px
    );
}

.file-tab-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 700;
    color: #333;
    letter-spacing: 2px;
}

.file-class {
    font-family: 'Special Elite', monospace;
    font-size: 11px;
    color: #c8102e;
    border: 2px solid #c8102e;
    padding: 2px 10px;
    border-radius: 2px;
    letter-spacing: 2px;
    transform: rotate(-2deg);
    background: rgba(200,16,46,0.05);
}

/* Paper body — lined */
.file-body {
    padding: 24px 28px;
    flex: 1;
    overflow-y: auto;
    background:
        linear-gradient(#daa 0px, transparent 1px) 0 76px / 100% 28px,
        repeating-linear-gradient(
            transparent 0px, transparent 27px,
            #d4cfc4 27px, #d4cfc4 28px
        );
    background-color: #f8f5ee;
    /* Left margin line */
    border-left: 3px solid #e8b4b4;
    margin-left: 28px;
    padding-left: 20px;
}

.file-body h4 {
    font-family: 'Special Elite', monospace;
    font-size: 18px; font-weight: 400;
    color: #1a1a1a; margin-bottom: 16px;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #b0a898;
    line-height: 28px;
}

.file-body p {
    font-size: 13px;
    color: #3a3530;
    line-height: 28px;
    font-family: 'Special Elite', monospace;
}

.file-hash {
    display: inline-block;
    margin-top: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #2a6a2a;
    padding: 4px 10px;
    background: #e8f0e8;
    border: 1px solid #b8d8b8;
    border-radius: 2px;
}

/* Paper bottom — navigation */
.files-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    background: #060a10;
}

.file-nav-btn {
    padding: 8px 18px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.file-nav-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(91,163,217,0.05);
}

.file-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .hero-section { grid-template-columns: 0.8fr 1fr 1fr; }
}
@media (max-width: 1024px) {
    .hero-section { grid-template-columns: 1fr 1fr; }
    .hero-right { grid-column: 1 / -1; border-left: none; border-top: 1px solid var(--border-color); }
}
@media (max-width: 768px) {
    .hero-section { grid-template-columns: 1fr; }
    .hero-left { border-right: none; border-bottom: 1px solid var(--border-color); }
    .nav-links { display: none; }
    .board-layout { grid-template-columns: 1fr; }
    .cork-board { height: 500px; }
    .files-panel { height: 400px; border-left: none; border-top: 1px solid var(--border-color); }
}

::selection { background: var(--accent); color: #000; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
