/* === B.U.R.P. - X-Files meets government bureaucracy === */

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

body {
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 12px;
    background: #0c0c0c;
    color: #b8b8a0;
    min-height: 100vh;
    line-height: 1.6;
}

/* Scanline overlay */
.scan-line {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0,0,0,0.15) 2px,
        rgba(0,0,0,0.15) 4px
    );
}

.page-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 10px;
}

/* === CLASSIFICATION BAR === */
.class-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a0000;
    border: 1px solid #550000;
    padding: 6px 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 6px;
}

.class-label {
    color: #aa0000;
    font-weight: bold;
    font-size: 10px;
    letter-spacing: 2px;
}

.class-level {
    color: #ff0000;
    font-weight: bold;
    font-size: 10px;
    letter-spacing: 1px;
}

.class-date {
    color: #553333;
    font-size: 9px;
}

.blink-slow {
    animation: blink-s 2s step-end infinite;
}

@keyframes blink-s {
    0%, 80% { opacity: 1; }
    81%, 100% { opacity: 0.3; }
}

/* === HEADER === */
.header-block {
    text-align: center;
    background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
    border: 2px solid #333;
    padding: 20px;
    margin-bottom: 8px;
}

.header-emblem {
    font-size: 10px;
    color: #444;
    margin-bottom: 8px;
    letter-spacing: 3px;
}

.header-block h1 {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 48px;
    color: #c8a000;
    letter-spacing: 12px;
    text-shadow: 2px 2px 0 #4a3800, 0 0 20px rgba(200,160,0,0.2);
}

.header-full {
    font-size: 12px;
    color: #888860;
    letter-spacing: 3px;
    margin-top: 4px;
}

.header-motto {
    font-size: 11px;
    color: #666640;
    font-style: italic;
    margin-top: 6px;
}

.header-est {
    font-size: 9px;
    color: #444430;
    letter-spacing: 2px;
    margin-top: 8px;
}

/* === NAV === */
.nav-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: #111;
    border: 1px solid #333;
    padding: 6px;
    margin-bottom: 8px;
    justify-content: center;
}

.nav-item {
    color: #c8a000;
    text-decoration: none;
    font-size: 10px;
    padding: 4px 10px;
    border: 1px solid #333;
    background: #1a1a10;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.nav-item:hover {
    background: #2a2a10;
    border-color: #c8a000;
    color: #ffcc00;
    text-shadow: 0 0 6px rgba(200,160,0,0.3);
}

/* === TICKER === */
.alert-ticker {
    background: #1a0000;
    border: 1px solid #440000;
    overflow: hidden;
    padding: 5px 0;
    margin-bottom: 12px;
}

.ticker-text {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    color: #ff3333;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* === FILE PANELS === */
.file-panel {
    margin-bottom: 14px;
    border: 1px solid #333;
    background: #111;
}

.file-tab {
    background: linear-gradient(180deg, #222210 0%, #1a1a08 100%);
    color: #c8a000;
    font-size: 11px;
    font-weight: bold;
    padding: 8px 14px;
    border-bottom: 1px solid #333;
    letter-spacing: 2px;
}

.file-body {
    padding: 16px;
}

.file-body p { margin-bottom: 10px; }
.file-body ul, .file-body ol { margin: 8px 0 12px 20px; }
.file-body li { margin-bottom: 5px; }

.file-body h3 {
    font-size: 13px;
    color: #c8a000;
    margin: 16px 0 8px;
    border-bottom: 1px dashed #333;
    padding-bottom: 4px;
    letter-spacing: 1px;
}

.file-body a {
    color: #c8a000;
}
.file-body a:hover {
    color: #ffcc00;
    text-shadow: 0 0 4px rgba(200,160,0,0.3);
}

/* === MEMO === */
.memo-header {
    background: #0a0a08;
    border: 1px solid #2a2a20;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 11px;
    color: #888860;
    line-height: 1.8;
}

.memo-sig {
    color: #666640;
    font-style: italic;
    margin-top: 14px;
    border-top: 1px dashed #333;
    padding-top: 10px;
}

/* === CASE FILES === */
.case-file {
    background: #0c0c08;
    border: 1px solid #2a2a20;
    padding: 14px;
    margin-bottom: 12px;
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.case-num {
    font-weight: bold;
    color: #c8a000;
    font-size: 12px;
    letter-spacing: 1px;
}

.case-status {
    font-size: 9px;
    font-weight: bold;
    padding: 2px 8px;
    letter-spacing: 1px;
    border: 1px solid;
}

.status-open { color: #00cc00; border-color: #006600; background: #001a00; }
.status-cold { color: #6688cc; border-color: #334466; background: #0a0a1a; }
.status-critical { color: #ff3333; border-color: #880000; background: #1a0000; animation: blink-s 1.5s step-end infinite; }

.case-title {
    font-size: 15px;
    color: #ddd;
    font-weight: bold;
    margin-bottom: 4px;
    font-family: 'Georgia', serif;
}

.case-meta {
    font-size: 9px;
    color: #555540;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.case-file p {
    font-size: 12px;
    color: #a0a088;
}

.case-update {
    color: #cc8800 !important;
    font-size: 11px;
    border-left: 3px solid #886600;
    padding-left: 10px;
    margin-top: 10px;
    background: #141408;
}

/* === EVIDENCE TABLE === */
.evidence-intro {
    font-size: 11px;
    color: #888860;
    font-style: italic;
}

.evidence-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin: 12px 0;
}

.evidence-table th {
    background: #1a1a10;
    color: #c8a000;
    padding: 8px 10px;
    text-align: left;
    border: 1px solid #333;
    letter-spacing: 1px;
    font-size: 10px;
}

.evidence-table td {
    background: #0c0c08;
    padding: 7px 10px;
    border: 1px solid #222;
    color: #a0a088;
}

.evidence-table tr:hover td { background: #141410; }

.danger-low { color: #44aa44; font-weight: bold; }
.danger-med { color: #ccaa00; font-weight: bold; }
.danger-high { color: #ee6600; font-weight: bold; }
.danger-crit { color: #ff2222; font-weight: bold; animation: blink-s 2s step-end infinite; }

.evidence-note {
    background: #1a0000;
    border: 1px solid #550000;
    border-left: 4px solid #ff0000;
    color: #ff6666;
    padding: 10px 14px;
    font-size: 11px;
    margin-top: 10px;
}

/* === TESTIMONY === */
.testimony {
    background: #0c0c08;
    border: 1px solid #2a2a20;
    padding: 14px;
    margin-bottom: 12px;
}

.test-header {
    font-weight: bold;
    color: #c8a000;
    font-size: 11px;
    margin-bottom: 2px;
}

.test-re {
    font-size: 9px;
    color: #555540;
    margin-bottom: 10px;
}

.test-body p {
    font-size: 12px;
    margin-bottom: 8px;
}

.test-body strong { color: #c8a000; }

/* === THREAT CARDS === */
.threat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.threat-card {
    border: 1px solid #333;
    padding: 12px;
    background: #0c0c08;
}

.threat-level {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 2px 8px;
    display: inline-block;
    margin-bottom: 6px;
    border: 1px solid;
}

.threat-name {
    font-size: 13px;
    color: #ddd;
    font-family: 'Georgia', serif;
    font-weight: bold;
    margin-bottom: 6px;
}

.threat-card p {
    font-size: 11px;
    margin: 0;
}

.threat-green .threat-level { color: #00cc00; border-color: #006600; background: #001a00; }
.threat-yellow .threat-level { color: #cccc00; border-color: #666600; background: #1a1a00; }
.threat-orange .threat-level { color: #ff8800; border-color: #884400; background: #1a0a00; }
.threat-red .threat-level { color: #ff2222; border-color: #880000; background: #1a0000; }
.threat-black .threat-level { color: #fff; border-color: #666; background: #000; animation: blink-s 1s step-end infinite; }

/* === MANUAL SECTIONS === */
.manual-section {
    margin-bottom: 16px;
}

.manual-section ul, .manual-section ol {
    margin-left: 20px;
}

/* === FIELD REPORTS === */
.field-report {
    background: #0c0c08;
    border-left: 3px solid #c8a000;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.report-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 4px;
}

.report-agent {
    font-weight: bold;
    color: #c8a000;
    font-size: 11px;
}

.report-date {
    font-size: 9px;
    color: #555540;
}

.field-report p {
    font-size: 12px;
    color: #a0a088;
    margin: 0;
}

/* === FOOTER === */
.site-footer {
    text-align: center;
    padding: 16px;
    border-top: 1px solid #222;
    margin-top: 10px;
    color: #444430;
    font-size: 10px;
}

.footer-seal {
    font-size: 11px;
    color: #555540;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.site-footer p {
    margin-bottom: 4px;
}

.footer-small {
    font-size: 9px;
    color: #333320;
}

.footer-small a {
    color: #665500;
}

.footer-small a:hover {
    color: #c8a000;
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
    .header-block h1 { font-size: 32px; letter-spacing: 6px; }
    .threat-grid { grid-template-columns: 1fr; }
    .nav-item { font-size: 9px; padding: 3px 6px; }
    .class-bar { flex-direction: column; text-align: center; }
}
