/* ─── SITREP: Daily AI Briefing ─────────────────── */

.sitrep-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

/* ─── Classification Banner ────────────────────── */
.sitrep-classification {
    text-align: center;
    padding: 0.5rem 1rem;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.25);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: #c9a227;
    margin-bottom: 1.5rem;
}

/* ─── Date Header ──────────────────────────────── */
.sitrep-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.sitrep-date-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #00cc33;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sitrep-date-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.sitrep-nav-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sitrep-nav-btn:hover {
    background: rgba(0, 204, 51, 0.06);
    border-color: rgba(0, 204, 51, 0.3);
    color: #00cc33;
}

.sitrep-nav-btn.disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* ─── Notice Bar ───────────────────────────────── */
.sitrep-notice {
    padding: 0.6rem 1rem;
    background: rgba(201, 162, 39, 0.06);
    border-left: 3px solid #c9a227;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(201, 162, 39, 0.8);
    margin-bottom: 1.5rem;
    display: none;
}

.sitrep-notice.visible {
    display: block;
}

/* ─── Crypto Ticker Bar ────────────────────────── */
.sitrep-crypto-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    justify-content: center;
}

.crypto-ticker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.crypto-symbol {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    letter-spacing: 1px;
}

.crypto-price {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.crypto-change {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
}

.crypto-change.positive {
    color: #00cc33;
    background: rgba(0, 204, 51, 0.1);
}

.crypto-change.negative {
    color: #ff3333;
    background: rgba(255, 51, 51, 0.1);
}

.crypto-divider {
    width: 1px;
    height: 1.2rem;
    background: rgba(255, 255, 255, 0.08);
}

/* ─── Main Briefing Panel ──────────────────────── */
.sitrep-briefing {
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem 2.5rem;
    position: relative;
    margin-bottom: 2rem;
}

.sitrep-briefing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00cc33, transparent);
}

/* ─── Briefing Content Markdown Rendering ──────── */
.sitrep-content {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8);
}

.sitrep-content h1 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 900;
    color: #00cc33;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 0.5rem 0;
    padding-bottom: 0.5rem;
}

.sitrep-content h2 {
    font-family: 'Orbitron', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #00cc33;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 1.5rem 0 1rem 0;
    padding: 0.6rem 0;
    border-top: 1px solid rgba(0, 204, 51, 0.15);
    border-bottom: 1px solid rgba(0, 204, 51, 0.08);
}

.sitrep-content h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #c9a227;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 1.2rem 0 0.6rem 0;
}

.sitrep-content p {
    margin: 0.6rem 0;
}

.sitrep-content strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
}

.sitrep-content em {
    color: rgba(201, 162, 39, 0.8);
    font-style: italic;
}

.sitrep-content ul,
.sitrep-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.sitrep-content li {
    margin: 0.4rem 0;
    padding-left: 0.3rem;
}

.sitrep-content li::marker {
    color: rgba(0, 204, 51, 0.5);
}

.sitrep-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 204, 51, 0.2), transparent);
    margin: 1.5rem 0;
}

.sitrep-content a {
    color: #00cc33;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 204, 51, 0.3);
    transition: border-color 0.2s;
}

.sitrep-content a:hover {
    border-color: #00cc33;
}

.sitrep-content code {
    background: rgba(0, 204, 51, 0.08);
    padding: 0.15rem 0.4rem;
    font-size: 0.78rem;
    color: #00cc33;
    border-radius: 2px;
}

.sitrep-content blockquote {
    border-left: 3px solid #c9a227;
    padding: 0.5rem 1rem;
    margin: 0.8rem 0;
    background: rgba(201, 162, 39, 0.04);
    color: rgba(201, 162, 39, 0.85);
}

/* ─── Meta Footer ──────────────────────────────── */
.sitrep-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 1px;
}

.sitrep-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sitrep-meta-label {
    color: rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
}

/* ─── Archive Panel ────────────────────────────── */
.sitrep-archive {
    margin-top: 2rem;
}

.sitrep-archive-header {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sitrep-archive-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sitrep-archive-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sitrep-archive-item:hover {
    background: rgba(0, 204, 51, 0.04);
    border-color: rgba(0, 204, 51, 0.15);
}

.sitrep-archive-item.active {
    background: rgba(0, 204, 51, 0.06);
    border-color: rgba(0, 204, 51, 0.25);
}

.archive-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #c9a227;
    letter-spacing: 1px;
    min-width: 100px;
    font-weight: 600;
}

.archive-headline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.archive-sources {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
}

/* ─── Loading State ────────────────────────────── */
.sitrep-loading {
    text-align: center;
    padding: 3rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: rgba(0, 204, 51, 0.5);
    letter-spacing: 2px;
    animation: sitrep-pulse 1.5s ease-in-out infinite;
}

@keyframes sitrep-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ─── Error State ──────────────────────────────── */
.sitrep-error {
    text-align: center;
    padding: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: rgba(255, 51, 51, 0.7);
    background: rgba(255, 51, 51, 0.04);
    border: 1px solid rgba(255, 51, 51, 0.15);
}

/* ─── Generate Button ──────────────────────────── */
.sitrep-generate-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 204, 51, 0.06);
    border: 1px solid rgba(0, 204, 51, 0.2);
    color: rgba(0, 204, 51, 0.7);
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.sitrep-generate-btn:hover {
    background: rgba(0, 204, 51, 0.12);
    border-color: rgba(0, 204, 51, 0.5);
    color: #00cc33;
}

.sitrep-generate-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ─── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
    .sitrep-container {
        padding: 0 1rem 2rem;
    }

    .sitrep-briefing {
        padding: 1.5rem 1.2rem;
    }

    .sitrep-date-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sitrep-crypto-bar {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .crypto-divider {
        display: none;
    }

    .sitrep-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .sitrep-content h1 {
        font-size: 1rem;
    }

    .sitrep-content h2 {
        font-size: 0.85rem;
    }

    .archive-headline {
        display: none;
    }
}

@media (max-width: 480px) {
    .sitrep-content {
        font-size: 0.75rem;
    }

    .sitrep-date-title {
        font-size: 0.9rem;
    }
}
