/* ==========================================================================
   GÜNDEM RADAR // KRİPTO İSTİHBARAT TERMİNALİ - SAF METİN CMD STİLİ
   Sıfır Görsel, Maksimum Bilgi Yoğunluğu, Ultra Hızlı Monospace Arayüz
   ========================================================================== */

:root {
    --bg-main: #06080a;
    --bg-card: #0c1015;
    --bg-header: #090d12;
    --bg-hover: #141b24;
    --border-color: #1f2937;
    --border-highlight: #374151;
    
    --text-primary: #e6edf3;
    --text-muted: #8b949e;
    --text-dim: #4b5563;
    
    --terminal-green: #00ff66;
    --terminal-cyan: #00e5ff;
    --terminal-red: #ff3344;
    --terminal-amber: #ffb800;
    --terminal-purple: #c084fc;
    
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Courier New', monospace;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.5;
    min-height: 100vh;
    padding: 12px;
    -webkit-font-smoothing: antialiased;
}

/* CRT Hafif Tarama Çizgisi Efekti */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 999;
    pointer-events: none;
    opacity: 0.35;
}

/* Kapsayıcı Konteyner */
.terminal-container {
    max-width: 1400px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.03);
}

/* Üst Başlık & Ticker */
.terminal-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
}

.ascii-banner {
    color: var(--terminal-green);
    font-size: 11px;
    line-height: 1.15;
    white-space: pre;
    overflow-x: auto;
    margin-bottom: 8px;
    user-select: none;
}

.header-status-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-highlight);
    font-size: 12px;
}

.status-indicator {
    color: var(--terminal-green);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--terminal-green);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

.ticker-tape {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
}

.ticker-item {
    color: var(--text-primary);
}

.ticker-item span.coin {
    color: var(--terminal-cyan);
    font-weight: bold;
}

.ticker-item span.up {
    color: var(--terminal-green);
}

.ticker-item span.down {
    color: var(--terminal-red);
}

/* İstatistik & Pazar Özeti Çubuğu */
.market-stats-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    font-size: 12px;
}

.stat-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-item {
    color: var(--text-muted);
}

.stat-item b {
    color: var(--text-primary);
}

/* BeeCursor Marka Rozeti & Reklam Şeridi */
.beecursor-brand-badge {
    color: var(--terminal-amber);
    background: rgba(255, 184, 0, 0.08);
    border: 1px solid var(--terminal-amber);
    padding: 3px 8px;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.15s ease;
    user-select: none;
}

.beecursor-brand-badge:hover {
    background: var(--terminal-amber);
    color: #000;
}

.beecursor-promo-bar {
    background: #090e15;
    border-bottom: 1px dashed #1e293b;
    padding: 6px 16px;
    font-size: 11.5px;
    color: #94a3b8;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.beecursor-promo-bar a {
    color: var(--terminal-cyan);
    text-decoration: none;
}

.beecursor-promo-bar a:hover {
    text-decoration: underline;
}

.beecursor-tag {
    color: var(--terminal-amber);
    font-weight: bold;
    font-size: 10.5px;
}

.beecursor-action-link {
    color: var(--terminal-green) !important;
    font-weight: bold;
    margin-left: auto;
}

/* Komut & Filtre Çubuğu (CMD Prompt) */
.cmd-prompt-bar {
    background: #040608;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prompt-line {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.prompt-prefix {
    color: var(--terminal-green);
    font-weight: bold;
    white-space: nowrap;
}

.prompt-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 4px 6px;
}

.prompt-input::placeholder {
    color: var(--text-dim);
}

.cmd-quick-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 4px;
}

.pill-btn {
    background: #111822;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.pill-btn:hover {
    background: var(--bg-hover);
    border-color: var(--terminal-cyan);
    color: var(--terminal-cyan);
}

.pill-btn.active {
    background: var(--terminal-green);
    border-color: var(--terminal-green);
    color: #000;
    font-weight: bold;
}

.pill-btn.bullish-filter.active {
    background: var(--terminal-green);
    color: #000;
}

.pill-btn.bearish-filter.active {
    background: var(--terminal-red);
    color: #fff;
    border-color: var(--terminal-red);
}

.pill-btn.action-scan {
    margin-left: auto;
    border-color: var(--terminal-cyan);
    color: var(--terminal-cyan);
}

.terminal-sound-btn {
    background: transparent;
    border: 1px dashed var(--border-highlight);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 2px 6px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.15s ease;
}

.terminal-sound-btn:hover {
    color: var(--terminal-cyan);
    border-color: var(--terminal-cyan);
}

.terminal-sound-btn.active {
    color: var(--terminal-green);
    border-color: var(--terminal-green);
    font-weight: bold;
}

.sector-pills-row {
    border-top: 1px dashed #141b24;
    padding-top: 6px;
    margin-top: 4px;
}

.sector-label {
    color: var(--text-dim);
    font-size: 10px;
    align-self: center;
    font-weight: bold;
}

.pill-sector {
    font-size: 10px;
    padding: 2px 6px;
}

.dossier-copy-btn {
    background: #111822;
    color: var(--terminal-amber);
    border: 1px solid var(--terminal-amber);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: bold;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dossier-copy-btn:hover {
    background: var(--terminal-amber);
    color: #000;
}

/* Ana Haber Tablosu / Akış Listesi */
.news-feed-container {
    padding: 0;
}

.feed-header-row {
    display: grid;
    grid-template-columns: 80px 105px 95px 120px 1fr 140px;
    gap: 10px;
    padding: 8px 16px;
    background: #080c10;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dim);
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    user-select: none;
}

.news-item-row {
    display: grid;
    grid-template-columns: 80px 105px 95px 120px 1fr 140px;
    gap: 10px;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #141a22;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.news-item-row:hover {
    background-color: var(--bg-hover);
}

.news-item-row.breaking-alert {
    border-left: 3px solid var(--terminal-red);
    background-color: rgba(255, 51, 68, 0.04);
}

.time-col {
    color: var(--text-muted);
    font-size: 11px;
}

.impact-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 2px;
    text-align: center;
}

.impact-KRITIK {
    background: rgba(255, 51, 68, 0.15);
    color: var(--terminal-red);
    border: 1px solid var(--terminal-red);
}

.impact-YUKSEK {
    background: rgba(255, 184, 0, 0.15);
    color: var(--terminal-amber);
    border: 1px solid var(--terminal-amber);
}

.impact-ORTA {
    background: rgba(0, 229, 255, 0.1);
    color: var(--terminal-cyan);
    border: 1px solid #0284c7;
}

.impact-DUSUK {
    background: #1e293b;
    color: var(--text-muted);
    border: 1px solid #334155;
}

.bias-badge {
    font-weight: bold;
    font-size: 11px;
}

.bias-BULLISH {
    color: var(--terminal-green);
}

.bias-BEARISH {
    color: var(--terminal-red);
}

.bias-VOLATILITY {
    color: var(--terminal-amber);
}

.bias-NEUTRAL {
    color: var(--text-muted);
}

.coins-badge {
    color: var(--terminal-cyan);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title-col {
    overflow: hidden;
}

.title-primary {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title-verdict {
    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.source-col {
    text-align: right;
    color: var(--text-dim);
    font-size: 11px;
}

.source-tag {
    color: #94a3b8;
    background: #111822;
    padding: 2px 6px;
    border: 1px solid #1f2937;
    font-size: 10px;
}

/* Boş Liste veya Yükleniyor Durumu */
.feed-empty-state {
    padding: 40px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Terminal Footer & BeeCursor Aidiyeti */
.terminal-footer {
    background: #040608;
    border-top: 1px solid var(--border-color);
    padding: 14px 16px;
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-top-row a {
    color: var(--terminal-cyan);
    text-decoration: none;
}

.footer-top-row a:hover {
    text-decoration: underline;
}

.footer-tag {
    color: #475569;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
    border-top: 1px dashed #141b24;
}

.footer-bottom-row a {
    color: #94a3b8;
    text-decoration: none;
}

.beecursor-footer-btn {
    color: var(--terminal-amber) !important;
    font-weight: bold;
}

.beecursor-footer-btn:hover {
    text-decoration: underline;
}

/* ==========================================================================
   RADAR DETAY DOSYASI MODAL (ASCII ÇERÇEVELİ RAPOR)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(3, 5, 8, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.dossier-box {
    background: #080c10;
    border: 1px solid var(--terminal-green);
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 0 0 35px rgba(0, 255, 102, 0.12);
}

.dossier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--terminal-green);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.dossier-id {
    color: var(--terminal-green);
    font-weight: bold;
    font-size: 13px;
}

.dossier-close-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--terminal-red);
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 4px 10px;
    cursor: pointer;
}

.dossier-close-btn:hover {
    background: var(--terminal-red);
    color: #000;
}

.dossier-title-section {
    margin-bottom: 16px;
}

.dossier-headline-tr {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
}

.dossier-headline-orig {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

.dossier-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px;
    background: #0d131a;
    border: 1px solid var(--border-color);
}

.meta-box-item {
    font-size: 12px;
}

.meta-box-label {
    color: var(--text-dim);
    font-size: 10px;
    text-transform: uppercase;
}

.meta-box-val {
    color: var(--text-primary);
    font-weight: bold;
    margin-top: 2px;
}

.ascii-bar {
    color: var(--terminal-green);
    font-weight: bold;
}

.dossier-section {
    margin-bottom: 16px;
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
}

.dossier-section-title {
    color: var(--terminal-cyan);
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.dossier-section-content {
    font-size: 13px;
    line-height: 1.6;
    color: #d1d5db;
    white-space: pre-line;
}

.dossier-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--terminal-green);
    padding-top: 14px;
    margin-top: 18px;
}

.dossier-link-btn {
    display: inline-block;
    background: #1e293b;
    color: var(--terminal-cyan);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid var(--terminal-cyan);
    font-size: 12px;
    font-weight: bold;
    transition: all 0.15s ease;
}

.dossier-link-btn:hover {
    background: var(--terminal-cyan);
    color: #000;
}

.ascii-banner-mobile {
    display: none;
    color: var(--terminal-green);
    font-size: 11px;
    line-height: 1.25;
    white-space: pre;
    margin-bottom: 8px;
    user-select: none;
}

/* ==========================================================================
   MOBİL & DOKUNMATİK EKRAN İÇİN DERİNLEMESİNE OPTİMİZASYON (MOBILE FIRST)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        padding: 0;
        font-size: 13px;
    }

    .terminal-container {
        border-left: none;
        border-right: none;
        border-top: none;
        box-shadow: none;
    }

    /* ASCII Banner: Masaüstü gizlenir, temiz mobil banner açılır */
    .ascii-desktop {
        display: none !important;
    }

    .ascii-banner-mobile {
        display: block !important;
        font-size: 9.5px;
        line-height: 1.2;
        overflow-x: hidden;
    }

    /* Üst Bar & Ticker */
    .terminal-header {
        padding: 10px 12px;
    }

    .header-status-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .status-indicator {
        font-size: 11px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .terminal-sound-btn {
        margin-left: auto;
        padding: 4px 8px;
    }

    .ticker-tape {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        font-size: 11.5px;
    }

    .ticker-tape::-webkit-scrollbar {
        display: none;
    }

    /* Pazar İstatistikleri */
    .market-stats-bar {
        padding: 8px 12px;
        font-size: 11px;
        flex-direction: column;
        gap: 4px;
    }

    .stat-group {
        gap: 8px;
    }

    /* Komut İstemi & Yatay Kaydırılabilir Filtre Çipleri */
    .cmd-prompt-bar {
        padding: 10px 12px;
        position: sticky;
        top: 0;
        z-index: 100;
        background: #040608;
        border-bottom: 1px solid var(--border-highlight);
    }

    .prompt-prefix {
        font-size: 12px;
    }

    .prompt-input {
        font-size: 16px; /* iOS Safari otomatik zoom yapmasını engeller */
        padding: 6px 4px;
    }

    /* Filtre Hapları (Mobilde Parmakla Yatay Kaydırılabilir Track) */
    .cmd-quick-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 5px;
    }

    .cmd-quick-pills::-webkit-scrollbar {
        display: none;
    }

    .pill-btn {
        flex-shrink: 0;
        font-size: 11px;
        padding: 6px 10px;
        min-height: 32px;
        display: flex;
        align-items: center;
    }

    .sector-label {
        flex-shrink: 0;
    }

    /* Haber Akış Başlığı Mobilde Gizlenir */
    .feed-header-row {
        display: none;
    }

    /* Haber Kartı (Dokunmatik Ekranlar için Geniş & Okunaklı) */
    .news-item-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        padding: 12px 14px;
        border-bottom: 1px solid #141c26;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .news-item-row:active {
        background-color: #121922;
    }

    .time-col {
        font-size: 11px;
        color: var(--text-dim);
    }

    .impact-col {
        display: inline-flex;
    }

    .bias-col {
        display: inline-flex;
    }

    .coins-col {
        display: inline-flex;
        margin-left: auto;
    }

    .coins-badge {
        font-size: 11px;
        font-weight: bold;
    }

    .title-col {
        flex-basis: 100%;
        width: 100%;
        margin-top: 3px;
    }

    .title-primary {
        white-space: normal;
        font-size: 14px;
        line-height: 1.45;
        font-weight: 600;
        color: #f1f5f9;
        margin-bottom: 4px;
    }

    .title-verdict {
        white-space: normal;
        font-size: 12px;
        line-height: 1.4;
        color: #94a3b8;
    }

    .source-col {
        flex-basis: 100%;
        width: 100%;
        text-align: left;
        margin-top: 3px;
    }

    .source-tag {
        font-size: 10px;
    }

    /* ==========================================================================
       RADAR DETAY DOSYASI MODAL (MOBİLDE TAM EKRAN KONSOL)
       ========================================================================== */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .dossier-box {
        width: 100%;
        max-width: 100%;
        max-height: 94vh;
        height: 94vh;
        border-left: none;
        border-right: none;
        border-bottom: none;
        border-top: 2px solid var(--terminal-green);
        padding: 16px 14px 24px 14px;
        border-radius: 8px 8px 0 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85);
        display: flex;
        flex-direction: column;
    }

    .dossier-header {
        position: sticky;
        top: -16px;
        background: #080c10;
        z-index: 10;
        padding-top: 4px;
        padding-bottom: 8px;
    }

    .dossier-close-btn {
        padding: 6px 14px;
        font-size: 13px;
        font-weight: bold;
        min-height: 36px;
    }

    .dossier-headline-tr {
        font-size: 15px;
        line-height: 1.4;
    }

    .dossier-meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 10px;
    }

    .dossier-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        margin-top: auto;
        padding-top: 12px;
    }

    .dossier-footer > div {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .dossier-copy-btn, .dossier-link-btn {
        width: 100%;
        text-align: center;
        padding: 10px 12px;
        font-size: 13px;
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}


