@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Cinzel:wght@400;600&display=swap');

/* =====================================
   TRANSMISSION GATE — FULLSCREEN OVERLAY
   ===================================== */
.transmission-gate {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #02020a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: opacity 0.8s ease;
}

.transmission-gate.fade-out {
    opacity: 0;
    pointer-events: none;
}

.gate-terminal {
    width: 100%;
    max-width: 680px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 3px solid rgba(200, 60, 60, 0.7);
    background: rgba(0, 0, 0, 0.7);
    padding: 40px 44px;
    font-family: 'Courier New', 'Lucida Console', monospace;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gate-header {
    font-size: 0.82rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 16px;
    line-height: 1.9;
}

.gate-warning-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: rgba(220, 80, 80, 1);
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(200, 60, 60, 0.5);
}

.gate-body {
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 2;
}

.gate-body p + p {
    margin-top: 12px;
}

.gate-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gate-btn-access {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #6fffb0;
    background: none;
    border: 1px solid rgba(111, 255, 176, 0.35);
    padding: 10px 22px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.gate-btn-access:hover {
    background: rgba(111, 255, 176, 0.08);
    border-color: rgba(111, 255, 176, 0.7);
    color: #fff;
}

.gate-btn-return {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 22px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.gate-btn-return:hover {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
}

.gate-decrypt-status {
    font-family: 'Orbitron', monospace;
    font-size: 0.62rem;
    letter-spacing: 4px;
    color: #6fffb0;
    text-shadow: 0 0 10px rgba(111, 255, 176, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
    text-transform: uppercase;
}

.gate-decrypt-status.visible {
    opacity: 1;
}

/* =====================================
   TRANSMISSION PAGE PANEL
   ===================================== */
.transmission-doc {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    background: rgba(8, 8, 18, 0.93);
    box-shadow: 0 0 120px rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 100px 70px 120px;
    opacity: 0;
    transition: opacity 1s ease 0.3s;
    overflow: visible;
}

.transmission-doc.revealed {
    opacity: 1;
}

/* =====================================
   BACK NAVIGATION
   ===================================== */
.back-link {
    position: fixed;
    top: 28px;
    left: 28px;
    z-index: 20;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.back-link:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* =====================================
   TRANSMISSION HEADER
   ===================================== */
.tx-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tx-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.72rem;
    letter-spacing: 4px;
    color: #6fffb0;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(111, 255, 176, 0.3);
}

.tx-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.92);
    text-transform: uppercase;
    margin-top: 10px;
}

.tx-meta {
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    line-height: 2;
}

/* =====================================
   ARCHIVE INCIDENT REPORT
   ===================================== */
.archive-report {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid rgba(200, 60, 60, 0.5);
    padding: 30px 34px;
    font-family: 'Courier New', 'Lucida Console', monospace;
}

.archive-report pre {
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.9;
    white-space: pre-wrap;
    margin: 0;
}

.archive-asset-link {
    color: rgba(200, 100, 100, 0.7);
    text-decoration: none;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.archive-asset-link:hover {
    color: rgba(255, 150, 150, 1);
    text-decoration: underline;
}

/* =====================================
   STORY SECTIONS
   ===================================== */
.tx-section {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.tx-section-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tx-timestamp {
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
}

.tx-prose p {
    font-family: 'Cinzel', serif;
    font-size: 1.08rem;
    line-height: 2.1;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 22px;
}

.tx-prose p:last-child {
    margin-bottom: 0;
}

.tx-prose em {
    color: rgba(255, 255, 255, 0.72);
    font-style: italic;
}

.tx-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 0;
}

/* =====================================
   END OF TRANSMISSION
   ===================================== */
.tx-end {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
}

.tx-end-doctrine {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    font-style: italic;
}

.tx-end-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.68rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

/* =====================================
   RESPONSIVE
   ===================================== */
@media (max-width: 768px) {
    .transmission-doc {
        padding: 80px 28px 80px;
        gap: 44px;
    }

    .tx-title {
        font-size: 1.4rem;
        letter-spacing: 4px;
    }

    .gate-terminal {
        padding: 30px 26px;
    }

    .gate-actions {
        flex-direction: column;
    }
}

/* =====================================
   REDUCED MOTION
   ===================================== */
@media (prefers-reduced-motion: reduce) {
    .transmission-gate,
    .transmission-doc {
        transition: none;
    }
}
