/* ============================================================
   Haber Script — Ön Yüz Stilleri (Bootstrap 5 üzerine)
   ============================================================ */

:root {
    --hs-primary: #dc2626;
    --hs-dark: #0f172a;
    --hs-gray: #64748b;
    --hs-light: #f1f5f9;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: #f8fafc;
    color: #1e293b;
}

a { text-decoration: none; }

/* ---------- Üst bar ---------- */
.topbar {
    background: var(--hs-dark);
    color: #cbd5e1;
    font-size: .8rem;
}
.topbar a { color: #cbd5e1; transition: color .15s; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid #e2e8f0; }
.site-logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--hs-dark);
}
.site-logo span { color: var(--hs-primary); }
.site-logo img { max-height: 52px; }
.site-slogan { font-size: .8rem; color: var(--hs-gray); }

/* ---------- Navigasyon ---------- */
.main-nav {
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
    position: sticky;
    top: 0;
    z-index: 1020;
}
.main-nav .nav-link {
    color: var(--hs-dark);
    font-weight: 600;
    font-size: .92rem;
    padding: .9rem 1rem;
    position: relative;
    white-space: nowrap;
}
.main-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 1rem; right: 1rem; bottom: .5rem;
    height: 3px;
    border-radius: 2px;
    background: var(--cat-color, var(--hs-primary));
    transform: scaleX(0);
    transition: transform .2s;
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after { transform: scaleX(1); }

/* ---------- Son dakika şeridi ---------- */
.breaking-bar {
    background: linear-gradient(90deg, #b91c1c, #dc2626);
    color: #fff;
    overflow: hidden;
}
.breaking-label {
    background: rgba(0, 0, 0, .25);
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .5px;
    padding: .55rem .9rem;
    white-space: nowrap;
}
.breaking-label .bi { animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 35s linear infinite;
}
.ticker-wrap:hover .ticker { animation-play-state: paused; }
.ticker a { color: #fff; font-size: .88rem; margin-right: 3rem; }
.ticker a:hover { text-decoration: underline; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Manşet ızgarası ---------- */
.hero-card {
    position: relative;
    border-radius: .9rem;
    overflow: hidden;
    display: block;
    height: 100%;
    min-height: 210px;
    background: var(--hs-dark);
}
.hero-card-lg { min-height: 440px; }
.hero-card img, .hero-card .img-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.hero-card:hover img { transform: scale(1.05); }
.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, .88));
}
.hero-card .hero-body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.1rem;
    z-index: 2;
    color: #fff;
}
.hero-card h2, .hero-card h3 { color: #fff; font-weight: 700; }
.hero-card-lg h2 { font-size: 1.6rem; line-height: 1.3; }
.hero-card h3 { font-size: .98rem; line-height: 1.35; }
.hero-meta { font-size: .78rem; color: #cbd5e1; }

/* ---------- Kategori rozeti ---------- */
.cat-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #fff;
    padding: .28rem .6rem;
    border-radius: .35rem;
}

/* ---------- Haber kartı ---------- */
.news-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: .9rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .1);
}
.news-card .thumb-wrap { position: relative; height: 190px; overflow: hidden; }
.news-card .thumb-wrap img, .news-card .thumb-wrap .img-placeholder {
    width: 100%; height: 100%; object-fit: cover;
}
.news-card .thumb-wrap .cat-badge { position: absolute; top: .7rem; left: .7rem; }
.news-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.4;
}
.news-card h3 a { color: var(--hs-dark); }
.news-card h3 a:hover { color: var(--hs-primary); }
.news-card .card-meta { font-size: .78rem; color: var(--hs-gray); }

/* ---------- Görsel yer tutucu ---------- */
.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .85);
    font-size: 2.4rem;
    width: 100%;
    height: 100%;
}

/* ---------- Bölüm başlığı ---------- */
.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.1rem;
}
.section-title::before {
    content: "";
    width: 5px;
    height: 22px;
    border-radius: 3px;
    background: var(--hs-primary);
}

/* ---------- Kategori filtresi ---------- */
.cat-filter .btn {
    border-radius: 2rem;
    font-size: .82rem;
    font-weight: 600;
}

/* ---------- Kenar çubuğu ---------- */
.side-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: .9rem;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}
.side-widget .widget-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--hs-primary);
}
.popular-item { display: flex; gap: .8rem; padding: .55rem 0; }
.popular-item + .popular-item { border-top: 1px dashed #e2e8f0; }
.popular-item .rank {
    font-size: 1.5rem;
    font-weight: 800;
    color: #e2e8f0;
    line-height: 1;
    min-width: 28px;
}
.popular-item a { color: var(--hs-dark); font-weight: 600; font-size: .88rem; line-height: 1.4; }
.popular-item a:hover { color: var(--hs-primary); }
.popular-item .meta { font-size: .74rem; color: var(--hs-gray); }
.cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--hs-dark);
    font-weight: 600;
    font-size: .88rem;
    padding: .5rem .2rem;
    border-bottom: 1px dashed #e2e8f0;
}
.cat-list a:last-child { border-bottom: 0; }
.cat-list a:hover { color: var(--hs-primary); }
.cat-list .badge { font-size: .7rem; }

/* ---------- Tanıtım/spot alanı ---------- */
.spot-area { text-align: center; margin: 1rem 0; }
.spot-area img { max-width: 100%; height: auto; }

/* ---------- Haber detayı ---------- */
.article-title { font-size: 1.9rem; font-weight: 800; line-height: 1.25; letter-spacing: -.5px; }
.article-summary {
    font-size: 1.08rem;
    color: #475569;
    border-left: 4px solid var(--hs-primary);
    background: #fff;
    padding: 1rem 1.2rem;
    border-radius: 0 .6rem .6rem 0;
}
.article-meta { font-size: .84rem; color: var(--hs-gray); }
.article-image img, .article-image .img-placeholder {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: .9rem;
}
.article-image .img-placeholder { height: 320px; border-radius: .9rem; }
.article-content { font-size: 1.06rem; line-height: 1.85; color: #334155; }
.article-content p { margin-bottom: 1.2rem; }
.article-content img { max-width: 100%; height: auto; border-radius: .6rem; }
.article-content blockquote {
    border-left: 4px solid var(--hs-primary);
    background: #fff;
    padding: 1rem 1.2rem;
    border-radius: 0 .6rem .6rem 0;
    font-style: italic;
}
.article-content iframe { max-width: 100%; border-radius: .6rem; }
.video-embed { position: relative; padding-top: 56.25%; border-radius: .9rem; overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.share-buttons a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    padding: .45rem .85rem;
    border-radius: .5rem;
    transition: opacity .15s;
}
.share-buttons a:hover { opacity: .85; }

.author-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: .9rem;
    padding: 1.3rem;
}
.author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    flex-shrink: 0;
}
.author-avatar-lg { width: 110px; height: 110px; font-size: 2.4rem; }

/* ---------- Yorumlar ---------- */
.comment-item { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px dashed #e2e8f0; }
.comment-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--hs-dark); color: #94a3b8; margin-top: 3rem; }
.site-footer h5 { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #94a3b8; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-bottom { border-top: 1px solid #1e293b; font-size: .82rem; }
.social-icons a {
    display: inline-flex;
    width: 36px; height: 36px;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    border-radius: .5rem;
    color: #cbd5e1;
    margin-right: .4rem;
    transition: background .15s, color .15s;
}
.social-icons a:hover { background: var(--hs-primary); color: #fff; }

/* ---------- Sayfalama ---------- */
.pagination .page-link { color: var(--hs-dark); border-radius: .5rem; margin: 0 .15rem; border: 1px solid #e2e8f0; }
.pagination .page-item.active .page-link { background: var(--hs-primary); border-color: var(--hs-primary); }

/* ---------- Mobil kategori menüsü ---------- */
.mobile-cat-tile {
    background: color-mix(in srgb, var(--tile-color) 10%, #fff);
    color: var(--tile-color);
    border: 1px solid color-mix(in srgb, var(--tile-color) 25%, #fff);
    transition: transform .15s, box-shadow .15s;
}
.mobile-cat-tile:hover, .mobile-cat-tile.active {
    color: var(--tile-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--tile-color) 25%, transparent);
}

/* ---------- Duyarlılık ---------- */
@media (max-width: 991.98px) {
    .hero-card-lg { min-height: 320px; }
    .article-title { font-size: 1.45rem; }
}
