/* ==========================================================================
   HERO NEWS — Tam Ekran Overlay Slider (Eurosport / NTV Spor tarzı)
   ========================================================================== */

.hero-news-section {
    /* Sag haber seridi genisligi; gorsel alani ve metin buna gore hesaplanir */
    --hero-side-w: 290px;
    --hero-side-head: 66px;
    --hero-side-count: 7;
    position: relative;
    overflow: hidden;
    display: flex;
    background: #0a0c14;
}

/* -----------------------------------------------------------------------
   Arka plan slide'ları
   ----------------------------------------------------------------------- */
/* Gorsel alani = sag haber seridinin solunda kalan alan, orani 16:9.
   1920x1080 gorsel bu alana birebir oturur, hic kirpilmaz; bolumun
   yuksekligini de bu alan belirler. Serit gorselin ustune binmez. */
.hero-slides {
    position: relative;
    z-index: 0;
    width: calc(100% - var(--hero-side-w));
    aspect-ratio: 16 / 9;
    /* Cok genis ekranda sabit header (100px) ile birlikte ekrana sigsin */
    max-height: calc(100vh - 100px);
    /* Dar ekranda metin + buton sigsin */
    min-height: 440px;
    overflow: hidden;
}

/* Gorsel <img> olarak geliyor. Alan 16:9 oldugu icin 1920x1080 gorsel
   birebir oturur; object-fit: contain sayesinde alan 16:9 disina ciksa
   (cok genis / dar ekran ya da 16:9 olmayan gorsel) bile kirpilmaz,
   kalan bosluk koyu zeminde kalir. Yakinlastirma efekti kaldirildi,
   cunku kenarlari kirpiyordu. */
.hero-slide {
    position: absolute;
    inset: 0;
    background: #0a0c14;
    opacity: 0;
    transition: opacity 1s ease;
}

    .hero-slide-img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .hero-slide.active {
        opacity: 1;
        z-index: 1;
    }

/* -----------------------------------------------------------------------
   Gradient overlay (sol koyu → sağa açılıyor)
   ----------------------------------------------------------------------- */
.hero-overlay {
    position: absolute;
    inset: 0 var(--hero-side-w) 0 0;
    z-index: 2;
    /* Metnin okunmasi icin sol-alt koyu; gorselin geri kalani acik kalir */
    background: linear-gradient( to right, rgba(10, 12, 20, 0.85) 0%, rgba(10, 12, 20, 0.55) 35%, rgba(10, 12, 20, 0.1) 60%, transparent 75% ), linear-gradient( to top, rgba(10, 12, 20, 0.55) 0%, transparent 45% );
}

/* -----------------------------------------------------------------------
   Sol alt: Ana içerik
   ----------------------------------------------------------------------- */
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - var(--hero-side-w));
    z-index: 3;
    padding: 0 64px 56px;
}

/* Slide metinleri */
.hero-text-slide {
    position: absolute;
    bottom: 56px;
    left: 64px;
    right: 0;
    /* Uzun başlıklar sağdaki haber şeridine yapışmasın */
    max-width: 760px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

    .hero-text-slide.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }

/* Kategori badge */
.hero-cat-badge {
    display: inline-flex;
    align-items: center;
    background: var(--gsb-red);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
}

/* Başlık */
.hero-title {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    /* Sağ tarafa yapışmaması için üst sınır */
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Açıklama */
.hero-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    margin-bottom: 18px;
    max-width: 480px;
}

/* Meta */
.hero-meta {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 26px;
}

    .hero-meta span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .hero-meta i {
        color: var(--gsb-red);
    }

/* Buton */
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--gsb-dark);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 11px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid white;
}

    .hero-btn:hover {
        background: var(--gsb-red);
        border-color: var(--gsb-red);
        color: white;
        transform: translateX(3px);
    }

/* Alt kontroller (dots) — sağ tarafa taşındı */
.hero-controls {
    position: absolute;
    bottom: 56px;
    right: calc(var(--hero-side-w) + 20px);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 4;
}

/* Önceki/sonraki butonlar */
.hero-ctrl {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(6px);
}

    .hero-ctrl:hover {
        background: var(--gsb-red);
        border-color: var(--gsb-red);
    }

/* Dots — yan yana */
.hero-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
}

    .hero-dot.active {
        background: white;
        width: 24px;
        border-radius: 4px;
    }

/* -----------------------------------------------------------------------
   Sağ: Haber şeridi
   ----------------------------------------------------------------------- */
.hero-side-list {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--hero-side-w);
    z-index: 3;
    background: rgba(8, 10, 18, 0.82);
    backdrop-filter: blur(14px);
    border-left: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    /* Haber sayısı alana sığmazsa şerit kaydırılabilir olur */
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior: contain;
}

    .hero-side-list::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

/* Şerit başlığı */
.hero-side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Sabit yukseklik: haber ogeleri kalan alani buna gore bolusur */
    height: var(--hero-side-head);
    box-sizing: border-box;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
    /* Şerit kayarken başlık sabit kalsın */
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(8, 10, 18, 0.95);
    backdrop-filter: blur(14px);
}

    .hero-side-header span {
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: rgba(255,255,255,0.35);
    }

.hero-side-nav {
    display: flex;
    gap: 6px;
    align-items: center;
}

.hero-side-header a {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gsb-red);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

    .hero-side-header a:hover {
        opacity: 1;
    }

/* Tum Haberler linki: yazi ve ok beyaz */
.hero-side-header .hero-side-all,
.hero-side-header .hero-side-all span,
.hero-side-header .hero-side-all i {
    color: #fff;
}

/* Her haber öğesi */
.hero-side-item {
    display: flex;
    gap: 12px;
    padding: 10px 18px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    border-left: 3px solid transparent;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s;
    /* Seritte bir ekranda 7 haber gorunur: baslik disinda kalan yukseklik
       7'ye bolunur. 7'den az haberde ogeler alani doldurur, fazlasinda
       serit kayar. Kucuk ekranda icerik sigsin diye alt sinir 78px. */
    flex: 1 0 calc((100% - var(--hero-side-head)) / var(--hero-side-count));
    min-height: 78px;
    /* Icerik dikey ortada, altta bosluk kalmasin */
    align-items: center;
    font-family: var(--font-main);
}

    .hero-side-item:last-of-type {
        border-bottom: none;
    }

    .hero-side-item:hover {
        background: rgba(255,255,255,0.05);
        border-left-color: rgba(255,255,255,0.2);
    }

    .hero-side-item.active {
        background: rgba(227, 0, 27, 0.12);
        border-left-color: var(--gsb-red);
    }

/* Thumbnail: 16:9, gorselle ayni oranda oldugu icin kirpilmaz */
.hero-side-thumb {
    width: 88px;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

    .hero-side-thumb img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.hero-side-item.active .hero-side-thumb,
.hero-side-item:hover .hero-side-thumb {
    opacity: 1;
}

/* Bilgi */
.hero-side-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-side-cat {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    transition: color 0.2s;
}

.hero-side-item.active .hero-side-cat {
    color: var(--gsb-red);
}

.hero-side-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.hero-side-item.active .hero-side-title,
.hero-side-item:hover .hero-side-title {
    color: rgba(255,255,255,0.9);
}

.hero-side-date {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.25);
}

/* -----------------------------------------------------------------------
   Progress bar (en altta, tam genişlik)
   ----------------------------------------------------------------------- */
.hero-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gsb-red);
    z-index: 4;
}

/* -----------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-news-section {
        --hero-side-w: 250px;
    }

    .hero-side-thumb {
        width: 64px;
    }

    .hero-text-slide {
        left: 48px;
    }

    .hero-content {
        padding: 0 48px 48px;
    }

    .hero-controls {
        bottom: 48px;
    }
}

@media (max-width: 768px) {
    .hero-news-section {
        height: auto;
        min-height: unset;
        max-height: unset;
        flex-direction: column;
    }

    .hero-slides {
        width: 100%;
        max-height: none;
        min-height: 0;
    }

    .hero-overlay {
        display: none;
    }

    .hero-content {
        position: static;
        width: 100%;
        padding: 24px 20px 20px;
        background: var(--gsb-dark);
    }

    .hero-text-slide {
        position: static;
        transform: none;
        opacity: 1;
        bottom: auto;
        left: auto;
    }

        .hero-text-slide:not(.active) {
            display: none;
        }

    .hero-title {
        font-size: 1.4rem;
        color: white;
    }

    .hero-side-list {
        display: none;
    }

    .hero-side-header {
        display: none;
    }

    .hero-side-nav {
        display: none;
    }

    .hero-controls {
        display: none;
    }
}
