/* ==========================================================================
   home.css — Ana sayfa
   Ortak kart / şerit / iskelet stilleri theme.css içinde; burada yalnızca
   ana sayfaya özgü hero ve tür filtre çubuğu var.
   ========================================================================== */

/* ── HERO CAROUSEL ────────────────────────────────────────────────────── */
.hero {
    position: relative;
    margin-bottom: var(--sp-2);
}

.hero-slide {
    position: relative;
    min-height: clamp(420px, 58vh, 620px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-slide__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 18%;
    transform: scale(1.04);
}

/* İki katmanlı degrade: soldan metin okunabilirliği, alttan sayfaya geçiş */
.hero-slide__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11,11,13,.97) 0%, rgba(11,11,13,.82) 38%, rgba(11,11,13,.35) 70%, rgba(11,11,13,.55) 100%), linear-gradient(0deg, var(--bg-base) 0%, rgba(11,11,13,.35) 32%, transparent 65%);
}

.hero-slide__body {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--sp-8) 0 var(--sp-7);
}

.hero-poster {
    width: 100%;
    max-width: 210px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--r-lg);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-xl);
    display: block;
}

.hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
}

.hero-title {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: var(--sp-3);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85);
}

.hero-desc {
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 56ch;
    margin-bottom: var(--sp-5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0.7rem 1.75rem;
    font-size: var(--fs-base);
    font-weight: 700;
}

/* Carousel kontrolleri */
.hero .carousel-control-prev,
.hero .carousel-control-next {
    width: 8%;
    opacity: 0;
    transition: opacity var(--t-base);
    z-index: 3;
}

.hero:hover .carousel-control-prev,
.hero:hover .carousel-control-next,
.hero .carousel-control-prev:focus-visible,
.hero .carousel-control-next:focus-visible {
    opacity: 1;
}

.hero-arrow {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(19, 19, 22, 0.75);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    color: #fff;
    transition: background var(--t-fast), transform var(--t-fast);
}

.hero-arrow:hover {
    background: var(--brand);
    border-color: var(--brand);
    transform: scale(1.08);
}

.hero .carousel-indicators {
    margin-bottom: var(--sp-4);
    z-index: 3;
}

.hero .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: var(--r-pill);
    border: none;
    background-color: rgba(255, 255, 255, 0.45);
    opacity: 1;
    transition: width var(--t-base), background-color var(--t-base);
}

.hero .carousel-indicators .active {
    width: 28px;
    background-color: var(--brand);
}

/* ── TÜR FİLTRE ÇUBUĞU ────────────────────────────────────────────────── */
.genre-bar {
    background: rgba(19, 19, 22, 0.9);
    backdrop-filter: blur(14px);
    border-block: 1px solid var(--border);
    position: sticky;
    /* Sabit piksel yerine navbar yüksekliği token'ı — mobilde de doğru oturur */
    top: var(--nav-h);
    z-index: 100;
    padding: var(--sp-3) 0;
}

.genre-bar__track {
    display: flex;
    gap: var(--sp-2);
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px;
    scroll-snap-type: x proximity;
}

.genre-bar__track::-webkit-scrollbar {
    display: none;
}

.genre-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 74px;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    scroll-snap-align: start;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.genre-pill:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px var(--brand-glow);
}

.genre-pill__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--bg-elevated);
    font-size: 0.95rem;
    transition: background var(--t-fast), color var(--t-fast);
}

.genre-pill:hover .genre-pill__icon,
.genre-pill.active .genre-pill__icon {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.genre-pill__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.genre-pill.active {
    /* Secili tur ikincil vurguyla isaretleniyor; siyan zaten marka rengi
       oldugu icin "secili" durumu ondan ayirt edilemiyordu. */
    background: linear-gradient(120deg, var(--accent), #c0003f);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 22px -4px var(--accent-glow);
}

/* ── DUYARLI ──────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .hero-slide {
        min-height: 400px;
    }

    .hero-slide__body {
        padding: var(--sp-7) 0 var(--sp-6);
    }

    .hero-slide__scrim {
        background: linear-gradient(0deg, var(--bg-base) 6%, rgba(11,11,13,.85) 42%, rgba(11,11,13,.45) 100%);
    }

    .hero .carousel-control-prev,
    .hero .carousel-control-next {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BitDVD HERO — marka açılışı
   Karusel yerine geçen tam ekran marka bölümü.
   ═══════════════════════════════════════════════════════════════════════════ */
.bd-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: calc(var(--nav-h, 64px) + 3rem) 0 5rem;
}

.bd-hero__field {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

.bd-hero__inner {
    position: relative;
    z-index: 2;
}

/* Dev boyutlu marka adı — siyan → macenta gradyan, yavaş süpürme */
.bd-hero__title {
    font-family: var(--font-display);
    font-size: clamp(3.25rem, 13vw, 9.5rem);
    font-weight: 900;
    line-height: .92;
    letter-spacing: -.02em;
    margin: 0 0 1rem;
    background: linear-gradient(100deg, var(--brand) 0%, #a5e5ff 30%, var(--accent) 62%, var(--brand) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: bdSweep 9s linear infinite;
    filter: drop-shadow(0 0 42px rgba(0, 240, 255, .32));
}

@keyframes bdSweep { to { background-position: 220% 0; } }

.bd-hero__lead {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    min-height: 2em;
    margin: 0 0 2.5rem;
}

.bd-caret {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    translate: 0 .16em;
    background: var(--brand);
    box-shadow: 0 0 10px var(--brand);
    animation: bdBlink 1.05s steps(1) infinite;
}

@keyframes bdBlink { 50% { opacity: 0; } }

/* Gerçek arşiv rakamları */
.bd-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.25rem;
    margin-bottom: 2.5rem;
    font-variant-numeric: tabular-nums;
}

.bd-stat__n {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3.2vw, 1.75rem);
    color: var(--text-primary);
    line-height: 1;
}

.bd-stat__l {
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: .4rem;
}

.bd-hero__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

/* Kaydırma ipucu */
.bd-scroll {
    position: absolute;
    left: 50%;
    bottom: 1.75rem;
    translate: -50% 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    font-size: .68rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
}

.bd-scroll:hover { color: var(--brand); }

.bd-scroll span {
    width: 1px;
    height: 34px;
    background: linear-gradient(180deg, var(--brand), transparent);
    animation: bdDrop 2s cubic-bezier(.22, .61, .36, 1) infinite;
}

@keyframes bdDrop {
    0%   { transform: scaleY(0); transform-origin: top; }
    60%  { transform: scaleY(1); transform-origin: top; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 575.98px) {
    .bd-stats { gap: 1.4rem; }
    .bd-hero { padding-bottom: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .bd-hero__title { animation: none; }
    .bd-scroll span { animation: none; }
}
