/* The Listener Project Archive - Stylesheet */

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #f8f8f8;
    --text-color: #1a1a1a;
    --text-muted: #555;
    --link-color: #1a4480;
    --border-color: #ccc;
    --redacted-color: #000;
    --warning-bg: #fff3cd;
    --warning-border: #ffc107;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--link-color);
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

/* Navigation */
nav {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

nav a {
    margin-right: 1.5rem;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

/* Header */
header {
    margin-bottom: 2rem;
}

.site-title {
    font-size: 1.5rem;
    font-family: Georgia, serif;
    font-weight: normal;
    letter-spacing: 0.02em;
}

/* Metadata */
.metadata {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.metadata p {
    margin-bottom: 0.35rem;
}

.metadata p:last-child {
    margin-bottom: 0;
}

/* Blockquote */
blockquote {
    border-left: 3px solid var(--border-color);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
}

blockquote strong {
    font-style: normal;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

footer blockquote {
    font-size: 0.85rem;
}

/* Transmission Entry */
.transmission-entry {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.transmission-entry h3 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.transmission-entry .details {
    font-size: 0.9rem;
    line-height: 1.7;
}

.transmission-entry .details p {
    margin-bottom: 0.35rem;
}

.transmission-entry .translation {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
}

.transmission-entry .translation em {
    color: var(--text-muted);
}

.transmission-entry.priority {
    border-left: 3px solid #b91c1c;
}

.transmission-entry.final {
    border: 2px solid #b91c1c;
    background: #fef2f2;
}

/* Audio Player */
.audio-player {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f0f0f0;
    font-size: 0.85rem;
    font-family: monospace;
}

.audio-player.corrupted {
    color: #666;
    font-style: italic;
}

.audio-player.restricted {
    color: #b91c1c;
}

audio {
    width: 100%;
    height: 32px;
    margin-top: 0.5rem;
}

/* Warning Box */
.warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

/* Document List */
.document-list {
    list-style: none;
    padding: 0;
}

.document-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.document-list li:last-child {
    border-bottom: none;
}

.doc-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border-color);
    margin: 2rem 0;
}

.timeline-entry {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.timeline-entry::before {
    content: '';
    position: absolute;
    left: -1.85rem;
    top: 0.4rem;
    width: 10px;
    height: 10px;
    background: var(--border-color);
    border-radius: 50%;
}

.timeline-entry.critical::before {
    background: #b91c1c;
}

.timeline-entry .year {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.timeline-entry p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Spectrogram */
.spectrogram {
    background: #1a1a1a;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 2px;
}

.spectrogram-visual {
    height: 120px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 255, 0, 0.1) 20%,
        rgba(0, 255, 0, 0.3) 35%,
        rgba(255, 255, 0, 0.4) 45%,
        rgba(255, 100, 0, 0.3) 55%,
        rgba(255, 0, 0, 0.2) 70%,
        transparent 100%
    );
    position: relative;
    overflow: hidden;
}

.spectrogram-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.03) 2px,
        rgba(255,255,255,0.03) 4px
    );
}

.spectrogram-visual.anomaly {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 255, 0, 0.1) 15%,
        rgba(0, 255, 0, 0.2) 25%,
        rgba(255, 255, 0, 0.5) 40%,
        rgba(255, 0, 0, 0.6) 50%,
        rgba(255, 255, 0, 0.5) 60%,
        rgba(0, 255, 0, 0.2) 75%,
        transparent 100%
    );
}

.spectrogram-visual.intense {
    background: linear-gradient(
        to bottom,
        rgba(255, 0, 0, 0.2) 0%,
        rgba(255, 100, 0, 0.5) 20%,
        rgba(255, 255, 0, 0.7) 35%,
        rgba(255, 255, 255, 0.9) 45%,
        rgba(255, 255, 255, 0.9) 55%,
        rgba(255, 255, 0, 0.7) 65%,
        rgba(255, 100, 0, 0.5) 80%,
        rgba(255, 0, 0, 0.2) 100%
    );
}

.spectrogram-info {
    color: #aaa;
    font-size: 0.85rem;
    margin-top: 1rem;
    font-family: monospace;
}

.spectrogram-note {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Document Page Styles */
.document-page {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin: 1.5rem 0;
}

.doc-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.doc-header .classification {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #b91c1c;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.doc-header h2 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
}

.doc-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.redacted {
    background: var(--redacted-color);
    color: var(--redacted-color);
    padding: 0 0.25rem;
    user-select: none;
}

.redacted-block {
    background: var(--redacted-color);
    height: 1.2em;
    display: inline-block;
    min-width: 100px;
}

.redacted-line {
    background: var(--redacted-color);
    height: 1em;
    margin: 0.5rem 0;
}

.signature-block {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.signature-line {
    border-bottom: 1px solid #000;
    width: 200px;
    margin-top: 2rem;
    margin-bottom: 0.25rem;
}

/* Notebook Style (DOC-015) */
.notebook-page {
    background: #fffef5;
    border: 1px solid #d4c89a;
    padding: 1.5rem;
    margin: 1rem 0;
    font-family: 'Comic Sans MS', 'Segoe Print', cursive;
    line-height: 1.8;
    position: relative;
}

.notebook-page::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #ffcccc;
}

.notebook-page p {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
}

.notebook-page .crossed-out {
    text-decoration: line-through;
    color: #888;
}

.notebook-page .margin-note {
    position: relative;
    font-size: 0.85rem;
    color: #0066cc;
    padding-left: 0;
    margin-left: -0.5rem;
    font-style: italic;
}

.notebook-page .underline {
    text-decoration: underline;
    text-decoration-style: wavy;
}

.notebook-page .emphasis {
    font-weight: bold;
}

/* Profile Page */
.profile-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-photo {
    width: 120px;
    height: 150px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #888;
    border: 1px solid var(--border-color);
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.profile-info p {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.status-unknown {
    color: #b91c1c;
    font-weight: bold;
}

/* FAQ */
.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* Easter Egg Page */
.signal-page {
    background: #0a0a0a;
    color: #ccc;
    min-height: 100vh;
    padding: 3rem 1.5rem;
}

.signal-page h1 {
    color: #fff;
    border-bottom-color: #333;
}

.signal-page .metadata {
    background: #111;
    border-color: #333;
}

.signal-page hr {
    border: none;
    border-top: 1px solid #333;
    margin: 2rem 0;
}

.signal-page blockquote {
    border-left-color: #444;
    color: #999;
}

.signal-page .warning {
    background: #1a1a0a;
    border-color: #4a4a0a;
    color: #aa9;
}

/* Archivist Note */
.archivist-note {
    background: #f5f5f0;
    border-left: 3px solid #888;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    nav a {
        display: inline-block;
        margin-bottom: 0.5rem;
    }

    .profile-header {
        flex-direction: column;
    }

    .notebook-page {
        padding-left: 2.5rem;
    }

    .notebook-page::before {
        left: 1.5rem;
    }
}

/* Print Styles */
@media print {
    body {
        max-width: none;
        padding: 0;
    }

    nav, .audio-player {
        display: none;
    }
}
