/* ═══════════════════════════════════════════════════════════════════
   ht-dark.css — koyu tema düzeltmeleri (html[data-theme=dark])
   ht-2026.css'teki --ht-* renk değişkenleri koyu temada açık kalıyordu; ana sayfa
   blokları (Özel Haber, kategori blokları, Diğer Haberler), vitrin kartları ve sidebar
   servis düğmeleri koyu temada BEYAZ görünüyordu. Bu dosya yalnız koyu temayı etkiler.
   ═══════════════════════════════════════════════════════════════════ */
:root[data-theme="dark"] {
    --ht-ink: #f1f5f9;
    --ht-ink2: #cbd5e1;
    --ht-mute: #94a3b8;
    --ht-line: #334155;
    --ht-bg: #0f172a;
    --ht-card: #1e293b;
    --ht-sh: 0 1px 2px rgba(0,0,0,.35), 0 6px 18px rgba(0,0,0,.28);
    --ht-sh-h: 0 16px 36px rgba(0,0,0,.55);
}
:root[data-theme="dark"] .home-container .section-block,
:root[data-theme="dark"] .home-shell .section-block { border-color: #334155 !important; }
:root[data-theme="dark"] body:not(.no-hero-cards) .home-container > .section-block,
:root[data-theme="dark"] body:not(.no-hero-cards) .home-container > section:not(.manset-section):not(.manset-slider-section):not(.buyuk-manset-section):not(.ad-block):not(.top-news-strip):not(.hb-authors):not([class*="story-bar"]):not([class*="market"]):not([class*="hero-slider"]) {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0;
}
:root[data-theme="dark"] .home-container .section-block:hover,
:root[data-theme="dark"] .home-shell .section-block:hover { box-shadow: 0 12px 30px rgba(0,0,0,.45) !important; }
:root[data-theme="dark"] .home-shell-aside .hb-widget, :root[data-theme="dark"] .home-shell-aside .widget,
:root[data-theme="dark"] .detail-sidebar .hb-widget, :root[data-theme="dark"] .detail-sidebar .widget,
:root[data-theme="dark"] .detail-sidebar .sw-adminblock { border-color: #334155 !important; }
:root[data-theme="dark"] .hb-news-item:hover { background-color: rgba(255,255,255,.04); }
:root[data-theme="dark"] .news-detail a { color: #f87171; }
:root[data-theme="dark"] .news-detail blockquote { background: linear-gradient(135deg, rgba(220,38,38,.12), rgba(30,41,59,.6)); }
html[data-theme="dark"] body .news-detail p,
html[data-theme="dark"] body .news-detail-root .news-detail p,
html[data-theme="dark"] body .infinite-article .news-detail p,
html[data-theme="dark"] body .sub-article-root .news-detail p,
html[data-theme="dark"] body .news-detail > p:first-of-type,
html[data-theme="dark"] body .news-detail-root .news-detail > p:first-of-type,
html[data-theme="dark"] body .news-detail ul li,
html[data-theme="dark"] body .news-detail ol li,

html[data-theme="dark"] body .news-detail-root #articleContent p,
html[data-theme="dark"] body .news-detail-root #articleContent li,
html[data-theme="dark"] body #articleContent p,
html[data-theme="dark"] body #articleContent li { color: #cbd5e1 !important; }
html[data-theme="dark"] body #articleContent h2,
html[data-theme="dark"] body #articleContent h3,
html[data-theme="dark"] body #articleContent h4,
html[data-theme="dark"] body #articleContent strong,
html[data-theme="dark"] body #articleContent b { color: #f1f5f9 !important; }
html[data-theme="dark"] body .news-detail h2,
html[data-theme="dark"] body .news-detail h3,
html[data-theme="dark"] body .news-detail h4 { color: #f1f5f9 !important; }
:root[data-theme="dark"] body .hb-cat-block .hb-cat-block__title:hover { color: color-mix(in srgb, var(--cat-accent, #dc2626) 55%, #fff) !important; }
:root[data-theme="dark"] body .section-block .hb-cat-block__head .hb-cat-block__more {
    color: color-mix(in srgb, var(--cat-accent, #dc2626) 55%, #fff) !important;
    background: color-mix(in srgb, var(--cat-accent, #dc2626) 22%, #1e293b) !important;
}
html body .section-block .hb-cat-block__head .hb-cat-block__more:hover,
:root[data-theme="dark"] body .section-block .hb-cat-block__head .hb-cat-block__more:hover { color: #fff !important; background: var(--cat-accent, var(--ht-red)) !important; box-shadow: 0 6px 16px color-mix(in srgb, var(--cat-accent, #dc2626) 35%, transparent); }
:root[data-theme="dark"] body .hb-authors.ya-strip {
    background: linear-gradient(115deg, #020617 0%, #0f172a 35%, #1e293b 55%, #5f1414 82%, #991b1b 100%) !important;
    background-size: 150% 150% !important;
    border-color: rgba(251, 191, 36, .16) !important;
    box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) !important;
}
:root[data-theme="dark"] body a.ya-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .02) 100%);
    border-color: rgba(255, 255, 255, .10);
}
:root[data-theme="dark"] body .ya-card__av { border-color: #0f172a; }
:root[data-theme="dark"] body .editor-picks-section .editor-pick-card { background: #0f172a !important; border-color: #334155 !important; box-shadow: none; }
:root[data-theme="dark"] body .editor-picks-section .editor-pick-card h3 { color: #f1f5f9 !important; }
:root[data-theme="dark"] body .editor-picks-section .editor-pick-card:hover h3 { color: #f87171 !important; }
:root[data-theme="dark"] body .editor-picks-section .section-header { border-color: #334155 !important; }
html[data-theme="dark"] body .news-detail-root .detail-spot,
html[data-theme="dark"] body .news-detail-root > .detail-wrapper > .detail-spot { color: #cbd5e1 !important; }
html[data-theme="dark"] body .news-detail-root .detail-title,
html[data-theme="dark"] body .news-detail-root > .detail-wrapper > .detail-title { color: #f1f5f9 !important; }
html[data-theme="dark"] body .news-detail-root .detail-breadcrumb-nav a,
html[data-theme="dark"] body .news-detail-root .detail-breadcrumb li a { color: #cbd5e1 !important; }
html[data-theme="dark"] body .news-detail-root .detail-breadcrumb li:last-child a { color: #f1f5f9 !important; }

/* Ana sayfa blokları: bundle'daki ".hb-cat-block/.hb-ozel/.hb-karma { background:#fff !important }" kuralını ez */
html[data-theme="dark"] body .home-container .section-block,
html[data-theme="dark"] body .home-shell .section-block,
html[data-theme="dark"] body .home-container section.hb-cat-block,
html[data-theme="dark"] body .home-shell section.hb-cat-block,
html[data-theme="dark"] body section.hb-ozel,
html[data-theme="dark"] body section.hb-karma,
html[data-theme="dark"] body section.editor-picks-section {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0;
}
html[data-theme="dark"] body .section-block h2,
html[data-theme="dark"] body .section-block h3,
html[data-theme="dark"] body .hb-cat-card h3,
html[data-theme="dark"] body .hb-karma__title,
html[data-theme="dark"] body .hb-ozel__big-title,
html[data-theme="dark"] body .hb-ozel__wide-title,
html[data-theme="dark"] body .hb-news-item h3,
html[data-theme="dark"] body .hb-news-item a { color: #f1f5f9; }
html[data-theme="dark"] body .section-block time,
html[data-theme="dark"] body .section-block .hb-meta,
html[data-theme="dark"] body .hb-ozel__wide p { color: #94a3b8; }

/* Seri İlanlar / Firma Rehberi vitrini */
html[data-theme="dark"] body .vt-row { background: #1e293b !important; border-color: #334155 !important; }
html[data-theme="dark"] body .vt-card { background: #0f172a !important; border-color: #334155 !important; color: #e2e8f0; }
html[data-theme="dark"] body .vt-card h3,
html[data-theme="dark"] body .vt-card strong,
html[data-theme="dark"] body .vt-card__title { color: #f1f5f9 !important; }
html[data-theme="dark"] body .vt-card p,
html[data-theme="dark"] body .vt-card small,
html[data-theme="dark"] body .vt-card span:not([class*="badge"]):not([class*="price"]) { color: #94a3b8; }

/* Sidebar servis düğmeleri */
html[data-theme="dark"] body .hb-sidebar .hb-service-btn,
html[data-theme="dark"] body .hb-service-btn {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] body .hb-service-btn:hover { background: #334155 !important; color: #fff !important; }

/* Vitrin başlığı (Seri İlanlar / Firma Rehberi) ve yazı logosu (logo görseli yokken) */
html[data-theme="dark"] body .vt-row h2,
html[data-theme="dark"] body .vt-row .hb-cat-block__title,
html[data-theme="dark"] body .vt-row .hb-cat-block__head h2 { color: #f1f5f9 !important; }
html[data-theme="dark"] body .logo-text-main { color: #f1f5f9 !important; }

/* Kategori sayfası (cx): kartlar ve yan widget'lar koyu temada beyaz kalıyordu */
html[data-theme="dark"] body .cx-card,
html[data-theme="dark"] body .cx-w,
html[data-theme="dark"] body .cx-intro,
html[data-theme="dark"] body .cx-crumb,
html[data-theme="dark"] body .cx-sticky { background: #1e293b !important; border-color: #334155 !important; }
html[data-theme="dark"] body .cx-card h2, html[data-theme="dark"] body .cx-card h3,
html[data-theme="dark"] body .cx-card h2 a, html[data-theme="dark"] body .cx-card h3 a,
html[data-theme="dark"] body .cx-w-h, html[data-theme="dark"] body .cx-w h3, html[data-theme="dark"] body .cx-w a,
html[data-theme="dark"] body .cx-sec, html[data-theme="dark"] body .cx-title { color: #f1f5f9 !important; }
html[data-theme="dark"] body .cx-card-excerpt, html[data-theme="dark"] body .cx-card-meta,
html[data-theme="dark"] body .cx-card-time, html[data-theme="dark"] body .cx-intro p { color: #94a3b8 !important; }


/* ═══ Mobil haber detay ana görseli (2 Ara 2026, kullanıcı isteği) ═══
   Telefonda reklam görseli gibi: ekran genişliğinde, köşesiz, 3:2 ve kutuyu dolduran (kullanıcı: "reklamdaki resim gibi olacak"). */
@media (max-width: 768px) {
    html body figure.detail-image { margin-left: 0 !important; margin-right: 0 !important; border-radius: 0 !important; overflow: hidden; }
    html body figure.detail-image picture { display: block; width: 100%; }
    html body figure.detail-image img {
        width: 100% !important; height: auto !important; aspect-ratio: 3 / 2 !important; max-height: none !important;
        object-fit: cover !important; object-position: center center !important; /* reklam görseli gibi: 3:2 kutuyu doldurur */
        border-radius: 0 !important; box-shadow: none !important;
    }
}
