﻿/* slider.css */
:root {
    --nav-h: 64px;
    --accent: #e8c87a;
    --slide-spd: 680ms;
    --ctrl-bg: rgba(8,8,8,.52);
    --ctrl-hover: rgba(8,8,8,.82);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ═══════════════════════════════════
   SLIDER ROOT
═══════════════════════════════════ */
.s-root {
    position: relative;
    width: 100%;
    /* Buradaki height değerini 600px yaparak sabitliyoruz */
    height: 600px;
    overflow: hidden;
    background: #000;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
}
    .s-root:active {
        cursor: grabbing;
    }

/* ═══════════════════════════════════
   TRACK
═══════════════════════════════════ */
.s-track {
    display: flex;
    height: 100%;
    will-change: transform;
    transition: transform var(--slide-spd) cubic-bezier(.77,0,.175,1);
}

    .s-track.no-anim {
        transition: none !important;
    }

/* ═══════════════════════════════════
   SLIDE
═══════════════════════════════════ */
.s-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    /*position: relative;*/
    overflow: hidden;
}

    .s-slide img, .s-slide video{
        width: 100%;
        height: 100%;
        /* ÖNEMLİ DEĞİŞİKLİK: 'fill' resmi kutuya sığması için esnetir, 
       böylece hiçbir yerini kesmez (kırpmaz). */
        object-fit: fill;
        object-position: center center;
        display: block;
        pointer-events: none;
    }

/* slider.css içine ekleyin veya güncelleyin */
.yt-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

    .yt-video-container iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100vw !important;
        height: 56.25vw !important; /* 16:9 oranı */
        min-width: 100%;
        min-height: 100%;
        transform: translate(-50%, -50%);
        pointer-events: none;
    }



    .s-slide .s-html-wrap {
        width: 100%;
        height: 100%; /* Root 600px olduğu için bu da 600px olacak */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    /* ── Caption overlay ── */
    .s-caption {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 2.5rem 3.5rem 6rem;
        background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 100%);
        pointer-events: none;
    }

        .s-caption .tag {
            display: inline-block;
            font-size: .68rem;
            font-weight: 700;
            letter-spacing: .16em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: .55rem;
        }

        .s-caption h2 {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(2.6rem, 6.5vw, 6rem);
            color: #fff;
            line-height: .98;
            letter-spacing: .03em;
        }

        .s-caption p {
            color: rgba(255,255,255,.62);
            font-size: clamp(.85rem,1.3vw,1.05rem);
            margin-top: .6rem;
            max-width: 480px;
            line-height: 1.6;
        }
    /* ═══════════════════════════════════
   ARROWS (Sadece hover durumunda)
═══════════════════════════════════ */
    .s-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 52px;
        height: 52px;
        border-radius: 50%;
        border: 1.5px solid rgba(255,255,255,.22);
        background: var(--ctrl-bg);
        color: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 30;
        opacity: 0;
        pointer-events: none;
        transition: opacity .28s, background .22s, transform .22s, border-color .22s;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

        .s-arrow svg {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
            fill: none;
            stroke: currentColor;
            stroke-width: 2.4;
        }

        .s-arrow.prev {
            left: 1.6rem;
        }

        .s-arrow.next {
            right: 1.6rem;
        }

    .s-root:hover .s-arrow {
        opacity: 1;
        pointer-events: all;
    }

    .s-arrow:hover {
        background: var(--ctrl-hover);
        border-color: rgba(255,255,255,.48);
        transform: translateY(-50%) scale(1.09);
    }
    /* ═══════════════════════════════════
   BOTTOM BAR (Dots & Pause)
═══════════════════════════════════ */
    .s-bottom {
        position: absolute;
        bottom: 1.9rem;
        right: 2rem;
        display: flex;
        align-items: center;
        gap: .9rem;
        z-index: 30;
        opacity: 0;
        pointer-events: none;
        transition: opacity .28s;
    }

    .s-root:hover .s-bottom {
        opacity: 1;
        pointer-events: all;
    }
    /* Dots */
    .s-dots {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .s-dot {
        height: 8px;
        width: 8px;
        border-radius: 4px;
        background: rgba(255,255,255,.3);
        border: 1.5px solid rgba(255,255,255,.35);
        cursor: pointer;
        transition: background .3s, width .35s cubic-bezier(.77,0,.175,1), border-color .3s, transform .2s;
        padding: 0;
    }

        .s-dot.active {
            width: 28px;
            background: var(--accent);
            border-color: var(--accent);
        }
    /* Pause Butonu */
    .s-pause-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 1.5px solid rgba(255,255,255,.28);
        background: var(--ctrl-bg);
        color: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background .22s, border-color .22s, transform .18s;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        position: relative;
    }

        .s-pause-btn svg {
            width: 14px;
            height: 14px;
            position: absolute;
            fill: currentColor;
        }

    .s-progress {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 3px;
        width: 0%;
        background: var(--accent);
        z-index: 40;
        opacity: .72;
        pointer-events: none;
    }
    /* ═══════════════════════════════════
   HTML TASARIMLARI (Slide 2 & 5)
═══════════════════════════════════ */
    /* Slide 2 – Dark gradient + shimmer text */
    .hs-dark {
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #0e0c22 0%, #1f1b4e 40%, #111830 100%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 2rem;
        gap: 1.4rem;
    }

        .hs-dark .eyebrow {
            font-size: .7rem;
            font-weight: 700;
            letter-spacing: .2em;
            text-transform: uppercase;
            color: rgba(232,200,122,.7);
        }

        .hs-dark .big {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(4.5rem,11vw,11rem);
            background: linear-gradient(90deg,#e8c87a,#fff,#e8c87a);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            background-size: 200%;
            animation: shimmer 3.5s infinite linear;
            line-height: .95;
        }

    @keyframes shimmer {
        0% {
            background-position: 0%
        }

        100% {
            background-position: 200%
        }
    }

    .hs-dark .cta {
        padding: .7rem 2.4rem;
        border: 1.5px solid var(--accent);
        color: var(--accent);
        font-size: .8rem;
        font-weight: 600;
        letter-spacing: .1em;
        text-transform: uppercase;
        background: transparent;
        cursor: pointer;
        border-radius: 2px;
        transition: background .25s, color .25s;
    }

        .hs-dark .cta:hover {
            background: var(--accent);
            color: #111;
        }
    /* Slide 5 – Split light */
    .hs-split {
        width: 100%;
        height: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        background: #f4efe6;
    }

        .hs-split .sp-left {
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: clamp(2rem,6vw,6rem);
        }

        .hs-split .sp-tag {
            font-size: .7rem;
            font-weight: 700;
            letter-spacing: .18em;
            text-transform: uppercase;
            color: #a06b2a;
            margin-bottom: 1rem;
        }

        .hs-split h3 {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(3.5rem,8vw,8rem);
            color: #111;
            line-height: .9;
            margin-bottom: 1.4rem;
        }

        .hs-split p {
            color: #555;
            font-size: .95rem;
            line-height: 1.65;
            max-width: 360px;
        }

        .hs-split .sp-right {
            background: linear-gradient(135deg, #c9a464, #7b5230);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(9rem,18vw,18rem);
            color: rgba(255,255,255,.1);
            letter-spacing: -.04em;
            overflow: hidden;
        }

    .yt-video-container iframe {
        width: 100%;
        height: 100%;
        object-fit: fill; /* Sizin istediğiniz esnetme kuralı */
        border: none;
    }

    @media (max-width: 768px) {
        .s-root {
            height: 230px; /* Mobil için ideal yükseklik */
        }

        .hs-split {
            grid-template-columns: 1fr;
        }

            .hs-split .sp-right {
                display: none;
            }

        .s-caption {
            padding: 1.5rem 1.4rem 5rem;
        }
    }
