/* ═══════════════════════════════════════════════════════════════════
   Haber Tanık — ortak tasarım katmanı (28 Kas 2026)
   Başlık (header) HARİÇ tüm sayfalara uygulanır. bundle.min.css'ten sonra yüklenir.
   Efektler yalnızca transform/opacity/gölge kullanır (sayfa kaymaz, CLS yok);
   "hareketi azalt" tercihinde kapanır.
   ═══════════════════════════════════════════════════════════════════ */
:root {
    --ht-red: #dc2626;
    --ht-red-d: #b91c1c;
    --ht-ink: #0f172a;
    --ht-ink2: #334155;
    --ht-mute: #64748b;
    --ht-line: #e5e7eb;
    --ht-bg: #f3f4f6;
    --ht-card: #ffffff;
    --ht-r: 14px;
    --ht-r-sm: 10px;
    --ht-sh: 0 1px 2px rgba(15,23,42,.05), 0 6px 18px rgba(15,23,42,.06);
    --ht-sh-h: 0 16px 36px rgba(15,23,42,.14);
    --ht-ease: cubic-bezier(.2,.7,.2,1);
}

/* ── Bölüm kutuları (ana sayfa blokları) ─────────────────────────── */
.home-container .section-block,
.home-shell .section-block {
    border-radius: var(--ht-r) !important;
    box-shadow: var(--ht-sh) !important;
    border: 1px solid rgba(15,23,42,.04) !important;
    transition: box-shadow .3s var(--ht-ease);
}
.home-container .section-block:hover,
.home-shell .section-block:hover { box-shadow: 0 2px 4px rgba(15,23,42,.05), 0 12px 30px rgba(15,23,42,.09) !important; }

/* Bölüm başlıkları: kalın başlık + altında kırmızı vurgu çizgisi */
.section-block > header h2,
.section-block .hb-ozel__head h2,
.section-block .hb-cat-block__head h2,
.section-block .hb-karma__head h2 {
    position: relative;
    font-weight: 800 !important;
    letter-spacing: -.01em;
    color: var(--ht-ink) !important;
}
.section-block > header h2::after,
.section-block .hb-ozel__head h2::after,
.section-block .hb-cat-block__head h2::after,
.section-block .hb-karma__head h2::after {
    content: "";
    position: absolute;
    left: 0; bottom: -7px;
    width: 34px; height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--ht-red), #f97316);
    transition: width .45s var(--ht-ease);
}
.section-block:hover > header h2::after,
.section-block:hover .hb-ozel__head h2::after,
.section-block:hover .hb-cat-block__head h2::after,
.section-block:hover .hb-karma__head h2::after { width: 64px; }

/* ── Haber kartları (ana sayfa, ilgili haberler, benzerleri) ─────── */
.hb-cat-card, .hb-karma__card, .hb-ozel__big, .hb-ozel__wide, .hb-related__card, .strip-card,
a.hb-cat-card, a.hb-ozel__big, a.hb-ozel__wide {
    position: relative;
    transition: transform .3s var(--ht-ease);
}
.hb-cat-card:hover, .hb-karma__card:hover, .hb-ozel__big:hover, .hb-related__card:hover, .strip-card:hover { transform: translateY(-4px); }

.hb-cat-card__img, .hb-karma__img, .hb-ozel__big-img, .hb-ozel__wide-img, .hb-related__img, .strip-card-img,
.cat-feat-lead-img, .cat-feat-item-img {
    border-radius: var(--ht-r-sm) !important;
    overflow: hidden !important;
    position: relative;
    box-shadow: 0 2px 8px rgba(15,23,42,.08);
    transition: box-shadow .3s var(--ht-ease);
}
.hb-cat-card__img img, .hb-karma__img img, .hb-ozel__big-img img, .hb-ozel__wide-img img, .hb-related__img img, .strip-card-img img,
.cat-feat-lead-img img, .cat-feat-item-img img {
    transition: transform .7s var(--ht-ease), filter .4s ease !important;
    will-change: transform;
}
.hb-cat-card:hover img, .hb-karma__card:hover img, .hb-karma a:hover img, .hb-ozel__big:hover img, .hb-ozel__wide:hover img,
.hb-related__card:hover img, .hb-related a:hover img, .strip-card:hover img, .cat-feat-lead:hover img, .cat-feat-item:hover img {
    transform: scale(1.07);
    filter: saturate(1.08) contrast(1.03);
}
.hb-cat-card:hover .hb-cat-card__img, .hb-karma__card:hover .hb-karma__img, .hb-ozel__big:hover .hb-ozel__big-img,
.hb-related__card:hover .hb-related__img { box-shadow: var(--ht-sh-h); }
/* Fotoğrafın altına hafif karartma: üzerine gelince belirir */
.hb-cat-card__img::after, .hb-karma__img::after, .hb-ozel__big-img::after, .hb-related__img::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(0deg, rgba(2,6,23,.32), transparent 50%);
    opacity: 0; transition: opacity .35s ease;
}
.hb-cat-card:hover .hb-cat-card__img::after, .hb-karma__card:hover .hb-karma__img::after,
.hb-ozel__big:hover .hb-ozel__big-img::after, .hb-related__card:hover .hb-related__img::after { opacity: 1; }
/* Başlık rengi */
.hb-cat-card h3, .hb-karma h3, .hb-ozel h3, .hb-related h3, .strip-card h3, .strip-card-title,
.hb-ozel__big-title, .hb-ozel__wide-title, .hb-karma__title, .hb-related__title { transition: color .2s ease; }
.hb-cat-card:hover h3, .hb-karma__card:hover h3, .hb-karma a:hover h3, .hb-ozel__big:hover .hb-ozel__big-title,
.hb-ozel__wide:hover .hb-ozel__wide-title, .hb-karma__card:hover .hb-karma__title, .hb-related__card:hover .hb-related__title, .hb-related a:hover h3, .strip-card:hover h3, .strip-card:hover .strip-card-title { color: var(--ht-red) !important; }

/* Üst şerit (4 kart) */
.top-news-strip .strip-card {
    border-radius: var(--ht-r-sm) !important;
    box-shadow: var(--ht-sh);
    transition: transform .3s var(--ht-ease), box-shadow .3s var(--ht-ease);
}
.top-news-strip .strip-card:hover { box-shadow: var(--ht-sh-h); }

/* ── Sidebar widget'ları ─────────────────────────────────────────── */
.home-shell-aside .hb-widget, .home-shell-aside .widget,
.detail-sidebar .hb-widget, .detail-sidebar .widget, .detail-sidebar .sw-adminblock {
    border-radius: var(--ht-r) !important;
    box-shadow: var(--ht-sh) !important;
    border: 1px solid rgba(15,23,42,.04) !important;
}
.hb-news-item { transition: background-color .25s ease; border-radius: 10px; }
.hb-news-item:hover { background-color: #fafafa; }
.hb-news-item .sni-img { border-radius: 8px !important; overflow: hidden !important; }
.hb-news-item .sni-img img { transition: transform .6s var(--ht-ease) !important; }
.hb-news-item:hover .sni-img img { transform: scale(1.08); }
.hb-news-item .sni-title { transition: color .2s ease; }
.hb-news-item:hover .sni-title { color: var(--ht-red) !important; }
.hb-widget-title .more-link { transition: transform .25s var(--ht-ease), background-color .2s; }
.hb-widget-title .more-link:hover { transform: rotate(90deg); }

/* Manşet listesi (sağ) */
.manset-sidebar-list > a, .manset-sidebar-list .manset-list-item { transition: background-color .2s ease; }
.manset-sidebar-list .manset-list-thumb { border-radius: 8px !important; overflow: hidden !important; }
.manset-sidebar-list .manset-list-thumb img { transition: transform .6s var(--ht-ease) !important; }
.manset-sidebar-list a:hover .manset-list-thumb img { transform: scale(1.08); }

/* ── Haber detay sayfası ────────────────────────────────────────── */
.detail-title {
    letter-spacing: -.015em !important;
    color: var(--ht-ink) !important;
}
.detail-spot {
    position: relative;
    padding-left: 16px !important;
    border-left: 4px solid var(--ht-red) !important;
    color: var(--ht-ink2) !important;
}
.detail-image img, .detail-image picture img {
    border-radius: var(--ht-r) !important;
    box-shadow: 0 10px 30px rgba(15,23,42,.12) !important;
}
.news-detail, .detail-content .news-detail {
    font-size: 18px;
    line-height: 1.78;
    color: #1f2937;
}
.news-detail p { margin: 0 0 1.15em; }
.news-detail h2, .news-detail h3 { color: var(--ht-ink); letter-spacing: -.01em; margin: 1.6em 0 .6em; line-height: 1.3; }
.news-detail h2 { font-size: 1.35em; } .news-detail h3 { font-size: 1.18em; }
.news-detail img { border-radius: var(--ht-r-sm); box-shadow: 0 6px 20px rgba(15,23,42,.1); max-width: 100%; height: auto; }
.news-detail a { color: var(--ht-red-d); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.news-detail a:hover { color: var(--ht-red); text-decoration-color: var(--ht-red); }
.news-detail blockquote {
    position: relative;
    margin: 1.6em 0;
    padding: 18px 22px 18px 56px;
    border: 0;
    border-radius: var(--ht-r);
    background: linear-gradient(135deg, #fff5f5, #fff);
    box-shadow: inset 4px 0 0 var(--ht-red);
    font-style: italic;
    color: var(--ht-ink2);
}
.news-detail blockquote::before {
    content: "\201C"; position: absolute; left: 16px; top: 4px;
    font-size: 54px; line-height: 1; font-family: Georgia, serif; color: var(--ht-red); opacity: .55;
}
.detail-share a, .detail-share button {
    transition: transform .25s var(--ht-ease), box-shadow .25s, filter .2s !important;
}
.detail-share a:hover, .detail-share button:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 8px 18px rgba(15,23,42,.18); filter: brightness(1.05); }
.article-toc { border-radius: var(--ht-r) !important; box-shadow: var(--ht-sh) !important; }
.editor-card__tag, .news-tags a, .detail-tags a, .tag-list a {
    transition: background-color .2s, color .2s, transform .2s var(--ht-ease) !important;
}
.editor-card__tag:hover, .news-tags a:hover, .detail-tags a:hover, .tag-list a:hover { transform: translateY(-2px); }

/* ── Sayfalama (tüm site) ────────────────────────────────────────── */
.pagination a, .pagination span, .cat-pagination a, .cat-pagination span {
    transition: transform .2s var(--ht-ease), background-color .2s, color .2s, box-shadow .2s !important;
}
.pagination a:hover, .cat-pagination a:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(15,23,42,.12); }

/* ── Footer ─────────────────────────────────────────────────────── */
footer.site-footer, .site-footer { position: relative; }
.site-footer::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--ht-red), #f97316, var(--ht-red), transparent);
    background-size: 200% 100%;
    animation: htLine 6s linear infinite;
}
@keyframes htLine { from { background-position: 200% 0; } to { background-position: 0 0; } }
.site-footer a { transition: color .2s ease, transform .2s var(--ht-ease); }
.site-footer ul a, .site-footer li a { position: relative; display: inline-block; }
.site-footer ul a::after, .site-footer li a::after {
    content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
    background: currentColor; transition: width .3s var(--ht-ease);
}
.site-footer ul a:hover::after, .site-footer li a:hover::after { width: 100%; }
.site-footer ul a:hover, .site-footer li a:hover { transform: translateX(3px); }
.site-footer .social-links a:hover, .site-footer [class*="social"] a:hover { transform: translateY(-3px) scale(1.1); }

/* ── Genel ──────────────────────────────────────────────────────── */
main a:focus-visible, .site-footer a:focus-visible, main button:focus-visible {
    outline: 2px solid var(--ht-red); outline-offset: 2px; border-radius: 4px;
}
::selection { background: rgba(220,38,38,.18); }

/* Kaydırınca beliren bölümler (ht-reveal JS ile eklenir) */
.ht-rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s var(--ht-ease); }
.ht-rv.ht-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .ht-rv { opacity: 1 !important; transform: none !important; transition: none !important; }
    .site-footer::before { animation: none; }
    .hb-cat-card, .hb-karma__card, .hb-ozel__big, .hb-related__card, .strip-card,
    .hb-cat-card img, .hb-karma img, .hb-ozel img, .hb-related img, .strip-card img, .hb-news-item img { transition: none !important; transform: none !important; }
}
@media (hover: none) {
    .hb-cat-card:hover, .hb-karma__card:hover, .hb-ozel__big:hover, .hb-related__card:hover, .strip-card:hover { transform: none; }
}

/* ═══ 2. aşama: ana sayfa kategori blokları ═══════════════════════════ */
/* Başlık satırı: renkli simge rozeti + başlık + "Tümü →" hap düğmesi */
.hb-cat-block__head { align-items: center !important; gap: 12px !important; }
.hb-cat-block__title { display: inline-flex !important; align-items: center; gap: 10px; font-weight: 800 !important; color: var(--ht-ink) !important; }
.hb-cat-block__title i {
    width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; color: #fff !important; background: var(--cat-accent, var(--ht-red)) !important;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--cat-accent, #dc2626) 35%, transparent);
    transition: transform .35s var(--ht-ease);
}
.section-block:hover .hb-cat-block__title i { transform: rotate(-8deg) scale(1.06); }
.hb-cat-block__title:hover { color: var(--cat-accent, var(--ht-red)) !important; }
.hb-cat-block__line { background: linear-gradient(90deg, color-mix(in srgb, var(--cat-accent, #dc2626) 45%, transparent), transparent) !important; height: 2px !important; border-radius: 2px; }
html body .section-block .hb-cat-block__head .hb-cat-block__more {
    opacity: 1 !important; filter: none !important;
    display: inline-flex !important; align-items: center; gap: 6px;
    padding: 7px 14px !important; border-radius: 999px !important;
    font-size: 13px !important; font-weight: 700 !important;
    color: var(--cat-accent, var(--ht-red)) !important;
    background: color-mix(in srgb, var(--cat-accent, #dc2626) 10%, #fff) !important;
    transition: background-color .25s, color .25s, box-shadow .25s !important;
}
.hb-cat-block__more i { transition: transform .3s var(--ht-ease); }
html 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); }
.hb-cat-block__more:hover i { transform: translateX(4px); }
.hb-cat-card:hover .hb-cat-card__title { color: var(--cat-accent, var(--ht-red)) !important; }

/* Düzen: ilk haber 2×2 büyük manşet kartı, sağında 2, altında 3 küçük kart */
@media (min-width: 769px) {
    .hb-cat-block__grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-template-rows: none !important; grid-auto-flow: row dense; gap: 18px !important; }
    .hb-cat-card.is-lead { grid-column: span 2; grid-row: span 2; display: block !important; min-height: 100%; border-radius: var(--ht-r-sm); overflow: hidden; }
    .hb-cat-card.is-lead .hb-cat-card__img { position: absolute !important; inset: 0; height: 100% !important; aspect-ratio: auto !important; margin: 0 !important; }
    .hb-cat-card.is-lead .hb-cat-card__img img { height: 100% !important; }
    .hb-cat-card.is-lead .hb-cat-card__img::after { opacity: 1 !important; background: linear-gradient(0deg, rgba(2,6,23,.9) 0%, rgba(2,6,23,.45) 38%, transparent 70%) !important; }
    .hb-cat-card.is-lead .hb-cat-card__title {
        position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0 !important;
        padding: 18px 20px 20px; color: #fff !important; font-size: 22px !important; line-height: 1.28 !important; font-weight: 800 !important;
        text-shadow: 0 2px 10px rgba(0,0,0,.35);
        display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    }
    .hb-cat-card.is-lead .hb-cat-card__title::before {
        content: ""; display: block; width: 42px; height: 4px; margin-bottom: 10px; border-radius: 4px;
        background: var(--cat-accent, var(--ht-red)); transition: width .4s var(--ht-ease);
    }
    .hb-cat-card.is-lead:hover .hb-cat-card__title { color: #fff !important; }
    .hb-cat-card.is-lead:hover .hb-cat-card__title::before { width: 80px; }
    .hb-cat-card.is-lead:hover { transform: none; }
}

/* ═══ Footer ═══════════════════════════════════════════════════════ */
.site-footer { background: radial-gradient(120% 120% at 100% 0%, #1e293b 0%, #0b1220 55%, #070b14 100%) !important; }
.footer-col h4 { border-bottom: 0 !important; position: relative; padding-bottom: 12px !important; letter-spacing: .06em !important; }
.footer-col h4::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--ht-red), #f97316); transition: width .4s var(--ht-ease);
}
.footer-col:hover h4::after { width: 56px; }
.footer-col a i.fa-angle-right { transition: transform .25s var(--ht-ease), color .2s; }
.footer-col a:hover i.fa-angle-right { transform: translateX(3px); color: var(--ht-red); }
.footer-social a {
    width: 38px !important; height: 38px !important; border-radius: 12px !important;
    display: inline-flex !important; align-items: center; justify-content: center;
    background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.1) !important;
    transition: transform .25s var(--ht-ease), background-color .25s, border-color .25s, box-shadow .25s !important;
}
.footer-social a:hover { transform: translateY(-4px) !important; background: var(--ht-red) !important; border-color: var(--ht-red) !important; box-shadow: 0 10px 20px rgba(220,38,38,.35); }
.footer-social a:hover i { color: #fff !important; }
.footer-districts a { border-radius: 999px; transition: background-color .2s, color .2s; }

/* ═══ Haber altı hesaplama aracı kutusu ═══════════════════════════════ */
.ht-toolbox {
    display: flex; align-items: center; gap: 16px; margin: 26px 0 8px; padding: 18px 20px; border-radius: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--tb, #dc2626) 10%, #fff), #fff 70%);
    border: 1px solid color-mix(in srgb, var(--tb, #dc2626) 25%, transparent);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--tb, #dc2626) 12%, transparent);
    position: relative; overflow: hidden;
}
.ht-toolbox::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: color-mix(in srgb, var(--tb, #dc2626) 10%, transparent); pointer-events: none; }
.ht-toolbox__ic { flex: 0 0 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; background: var(--tb, #dc2626); box-shadow: 0 8px 18px color-mix(in srgb, var(--tb, #dc2626) 35%, transparent); }
.ht-toolbox__txt { flex: 1; min-width: 0; }
.ht-toolbox__txt small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tb, #dc2626); }
.ht-toolbox__txt b { display: block; margin: 2px 0; font-size: 18px; color: #0f172a; line-height: 1.3; }
.ht-toolbox__txt span { font-size: 14px; color: #475569; }
.ht-toolbox__btn {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px;
    background: var(--tb, #dc2626); color: #fff !important; font-weight: 800; font-size: 15px; text-decoration: none !important;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--tb, #dc2626) 30%, transparent); transition: transform .25s var(--ht-ease), box-shadow .25s; position: relative; z-index: 1;
}
.ht-toolbox__btn i { transition: transform .25s var(--ht-ease); }
.ht-toolbox__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px color-mix(in srgb, var(--tb, #dc2626) 40%, transparent); }
.ht-toolbox__btn:hover i { transform: translateX(4px); }
@media (max-width: 640px) { .ht-toolbox { flex-wrap: wrap; padding: 16px; } .ht-toolbox__btn { width: 100%; justify-content: center; } }

/* ═══ Sidebar "Hesaplama Araçları" kutusu ═════════════════════════════ */
.ht-tools-w .ht-tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ht-tools-w .ht-tool {
    display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; text-decoration: none; color: #0f172a;
    background: #f8fafc; border: 1px solid #eef2f7; font-size: 13.5px; font-weight: 700; line-height: 1.25;
    transition: transform .25s var(--ht-ease), background-color .2s, border-color .2s, box-shadow .25s;
}
.ht-tools-w .ht-tool i { flex: 0 0 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.ht-tools-w .ht-tool:hover { transform: translateY(-2px); background: #fff; border-color: #e2e8f0; box-shadow: 0 8px 18px rgba(15,23,42,.08); color: var(--ht-red); }
.ht-tools-w .ht-tools-all { display: block; margin-top: 12px; text-align: center; font-weight: 800; font-size: 14px; color: var(--ht-red); text-decoration: none; }
.ht-tools-w .ht-tools-all:hover { text-decoration: underline; }
