/* =============================================
   Gayrimenkul Gündem — Ana Stil Dosyası
   Mobile-first, koyu/açık mod destekli
   ============================================= */

:root {
    --renk-arkaplan: #f5f5f5;
    --renk-yuzey:    #ffffff;
    --renk-yuzey2:   #f9f9f9;
    --renk-sinir:    #e0e0e0;
    --renk-metin:    #1a1a1a;
    --renk-metin2:   #555555;
    --renk-vurgu:    #1a56db;
    --renk-piyasa:   #eff6ff;
    --renk-musteri:  #f0fdf4;
    --renk-analiz:   #fefce8;
    --renk-golge:    rgba(0, 0, 0, 0.06);
    --yari-cap:      8px;
    --font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-tema="karanlik"] {
    --renk-arkaplan: #111827;
    --renk-yuzey:    #1f2937;
    --renk-yuzey2:   #253040;
    --renk-sinir:    #374151;
    --renk-metin:    #f3f4f6;
    --renk-metin2:   #9ca3af;
    --renk-vurgu:    #60a5fa;
    --renk-piyasa:   #1e3a5f;
    --renk-musteri:  #14532d;
    --renk-analiz:   #4a3900;
    --renk-golge:    rgba(0, 0, 0, 0.3);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family:   var(--font);
    background:    var(--renk-arkaplan);
    color:         var(--renk-metin);
    line-height:   1.75;
    min-height:    100vh;
}

.container {
    max-width: 800px;
    margin:    0 auto;
    padding:   0 16px;
}

/* ---- HEADER ---- */
.site-header {
    background: var(--renk-yuzey);
    border-bottom: 1px solid var(--renk-sinir);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px var(--renk-golge);
}

.header-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--renk-metin);
}

.tarih {
    font-size: 0.85rem;
    color: var(--renk-metin2);
    margin-top: 4px;
}

.tema-toggle {
    background: none;
    border: 1px solid var(--renk-sinir);
    border-radius: 20px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--renk-metin);
    transition: background 0.2s;
}
.tema-toggle:hover {
    background: var(--renk-arkaplan);
}

/* ---- EKONOMİK ŞERİT ---- */
.ekonomi-serit {
    background: var(--renk-yuzey);
    border-bottom: 1px solid var(--renk-sinir);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 16px;
}

.ekonomi-ic {
    display: flex;
    gap: 12px;
    min-width: max-content;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.ekonomi-badge {
    background: var(--renk-arkaplan);
    border: 1px solid var(--renk-sinir);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
    color: var(--renk-metin2);
}
.ekonomi-badge strong {
    color: var(--renk-metin);
}

/* ---- ANALİZ KUTUSU ---- */
.analiz-kutu {
    background: var(--renk-analiz);
    border: 1px solid var(--renk-sinir);
    border-radius: var(--yari-cap);
    margin: 16px 0 0;
    overflow: hidden;
}

.analiz-baslik {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.analiz-icerik {
    padding: 0 16px 16px;
    font-size: 0.9rem;
    line-height: 1.8;
    border-top: 1px solid var(--renk-sinir);
    white-space: pre-wrap;
}

/* ---- KATEGORİ SEKMELERİ ---- */
.kategori-sekmeler {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 0 8px;
    scrollbar-width: none;
}
.kategori-sekmeler::-webkit-scrollbar { display: none; }

.sekme {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--renk-sinir);
    background: var(--renk-yuzey);
    color: var(--renk-metin2);
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.15s;
}
.sekme:hover {
    border-color: var(--renk-vurgu);
    color: var(--renk-vurgu);
}
.sekme.aktif {
    background: var(--renk-vurgu);
    border-color: var(--renk-vurgu);
    color: #ffffff;
    font-weight: 600;
}

/* ---- HABERLER ---- */
.haberler {
    padding-bottom: 32px;
}

.haber-kart {
    background: var(--renk-yuzey);
    border: 1px solid var(--renk-sinir);
    border-radius: var(--yari-cap);
    padding: 20px;
    margin: 12px 0;
    box-shadow: 0 1px 4px var(--renk-golge);
}

.haber-baslik {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 6px;
    color: var(--renk-metin);
}

.haber-meta {
    font-size: 0.78rem;
    color: var(--renk-metin2);
    margin-bottom: 12px;
}

.haber-ozet {
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 14px;
    color: var(--renk-metin);
}

/* Piyasa Etkisi ve Müşteri bölümleri */
.haber-bolum {
    border-radius: 6px;
    padding: 12px 14px;
    margin: 10px 0;
    font-size: 0.88rem;
    line-height: 1.75;
}
.haber-bolum.piyasa {
    background: var(--renk-piyasa);
    border-left: 3px solid #3b82f6;
}
.haber-bolum.musteri {
    background: var(--renk-musteri);
    border-left: 3px solid #22c55e;
}
.bolum-baslik {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--renk-metin2);
}

.haber-alt {
    margin-top: 14px;
    text-align: right;
}

.kaynak-link {
    color: var(--renk-metin2);
    font-size: 0.78rem;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.15s;
}
.kaynak-link:hover {
    opacity: 1;
    color: var(--renk-vurgu);
}

/* ---- BOŞ MESAJ ---- */
.bos-mesaj {
    text-align: center;
    padding: 60px 20px;
    color: var(--renk-metin2);
    font-size: 0.95rem;
    line-height: 2;
}

/* ---- FOOTER ---- */
.site-footer {
    border-top: 1px solid var(--renk-sinir);
    background: var(--renk-yuzey);
    padding: 16px 0;
    font-size: 0.78rem;
    color: var(--renk-metin2);
    text-align: center;
    margin-top: 16px;
}

/* ---- RESPONSIVE ---- */
@media (min-width: 600px) {
    .site-header h1 {
        font-size: 1.6rem;
    }
    .haber-kart {
        padding: 24px;
    }
    .haber-baslik {
        font-size: 1.05rem;
    }
}
