/* ============================================================
   Ankaya Soğutma — Hero Slider CSS
   Premium fullscreen hero with image/video mixed slider
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --hs-accent:       #e8620a;
    --hs-accent-light: #ff7a2a;
    --hs-navy:         #0a1628;
    --hs-navy-mid:     #0d1f3c;
    --hs-white:        #ffffff;
    --hs-white-80:     rgba(255,255,255,0.80);
    --hs-white-60:     rgba(255,255,255,0.60);
    --hs-white-40:     rgba(255,255,255,0.40);
    --hs-transition:   600ms cubic-bezier(0.4, 0, 0.2, 1);
    --hs-header-h:     80px;
}

/* ── Hero Wrapper ───────────────────────────────────────────── */
.hero-slider-section {
    position: relative;
    width: 100%;
    min-height: 680px;
    height: clamp(680px, calc(100vh - var(--hs-header-h)), 920px);
    overflow: hidden;
    background: var(--hs-navy);
}

/* ── Slides Container ───────────────────────────────────────── */
.hs-track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ── Single Slide ───────────────────────────────────────────── */
.hs-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--hs-transition), visibility var(--hs-transition);
    will-change: opacity;
}

.hs-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hs-slide.is-prev {
    opacity: 0;
    visibility: visible;
    z-index: 1;
}

/* ── Background Media ───────────────────────────────────────── */
.hs-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hs-media img,
.hs-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Ken Burns subtle zoom on active slide */
.hs-slide.is-active .hs-media img {
    animation: hs-kenburns 8s ease-out forwards;
}

@keyframes hs-kenburns {
    from { transform: scale(1.04); }
    to   { transform: scale(1.00); }
}

@media (prefers-reduced-motion: reduce) {
    .hs-slide.is-active .hs-media img {
        animation: none;
    }
}

/* ── Overlay ────────────────────────────────────────────────── */
.hs-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(5, 15, 30, 0.88) 0%,
        rgba(5, 15, 30, 0.60) 40%,
        rgba(5, 15, 30, 0.18) 100%
    );
    z-index: 1;
}

/* ── Content Layer ──────────────────────────────────────────── */
.hs-content-wrap {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
}

/* Slide content panels — only active one is visible */
.hs-slide-content {
    display: none;
    width: 100%;
}

.hs-slide-content.is-active {
    display: block;
}

.hs-container {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* ── Slide Content ──────────────────────────────────────────── */
.hs-content {
    max-width: 640px;
    flex-shrink: 0;
}

/* Animate content in when slide becomes active */
.hs-slide.is-active .hs-content,
.hs-slide-content.is-active .hs-content {
    animation: hs-content-in var(--hs-transition) 100ms both;
}

@keyframes hs-content-in {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hs-slide.is-active .hs-content {
        animation: none;
    }
}

/* Eyebrow */
.hs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hs-accent);
    margin-bottom: 20px;
    line-height: 1;
}

.hs-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--hs-accent);
    flex-shrink: 0;
}

/* Title */
.hs-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--hs-white);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.hs-title-accent {
    color: var(--hs-accent);
    display: block;
}

/* Subtitle */
.hs-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    color: var(--hs-white-80);
    margin: 16px 0 36px;
    max-width: 520px;
}

/* Buttons */
.hs-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
}

.hs-btn-primary {
    background: var(--hs-accent);
    color: var(--hs-white);
    border-color: var(--hs-accent);
}

.hs-btn-primary:hover,
.hs-btn-primary:focus-visible {
    background: var(--hs-accent-light);
    border-color: var(--hs-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 98, 10, 0.35);
    color: var(--hs-white);
}

.hs-btn-outline {
    background: transparent;
    color: var(--hs-white);
    border-color: rgba(255,255,255,0.45);
    backdrop-filter: blur(4px);
}

.hs-btn-outline:hover,
.hs-btn-outline:focus-visible {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.80);
    transform: translateY(-2px);
    color: var(--hs-white);
}

/* ── Right Side: Slide Counter ──────────────────────────────── */
.hs-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

/* ── Navigation (bottom-right) ──────────────────────────────── */
.hs-nav {
    position: absolute;
    bottom: 48px;
    right: clamp(20px, 4vw, 80px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.hs-nav-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hs-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px 0;
    background: none;
    border: none;
    color: var(--hs-white-40);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    transition: color 0.25s ease;
    text-align: right;
    flex-direction: row-reverse;
}

.hs-nav-item:hover {
    color: var(--hs-white-80);
}

.hs-nav-item.is-active {
    color: var(--hs-white);
}

.hs-nav-line {
    display: block;
    height: 2px;
    width: 24px;
    background: var(--hs-white-40);
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
}

.hs-nav-item.is-active .hs-nav-line {
    width: 48px;
    background: var(--hs-accent);
}

/* Progress bar inside active nav item */
.hs-nav-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--hs-accent);
    border-radius: 2px;
    transition: width linear;
}

/* ── Arrow Buttons ──────────────────────────────────────────── */
.hs-arrows {
    position: absolute;
    bottom: 48px;
    right: clamp(20px, 4vw, 80px);
    z-index: 10;
    display: flex;
    gap: 8px;
    /* Positioned above nav */
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    right: clamp(20px, 3vw, 60px);
    flex-direction: column;
}

.hs-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.30);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    color: var(--hs-white);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.85rem;
}

.hs-arrow:hover,
.hs-arrow:focus-visible {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.70);
    transform: scale(1.08);
}

.hs-arrow:focus-visible {
    outline: 2px solid var(--hs-accent);
    outline-offset: 3px;
}

/* ── Pause/Play Button ──────────────────────────────────────── */
.hs-pause-btn {
    position: absolute;
    bottom: 48px;
    left: clamp(20px, 4vw, 80px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    color: var(--hs-white-60);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.75rem;
}

.hs-pause-btn:hover,
.hs-pause-btn:focus-visible {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.60);
    color: var(--hs-white);
}

.hs-pause-btn:focus-visible {
    outline: 2px solid var(--hs-accent);
    outline-offset: 3px;
}

/* ── Scroll Indicator ───────────────────────────────────────── */
.hs-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--hs-white-40);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s ease;
    text-decoration: none;
}

.hs-scroll:hover {
    color: var(--hs-white-80);
}

.hs-scroll-line {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.40), transparent);
    animation: hs-scroll-pulse 2s ease-in-out infinite;
}

@keyframes hs-scroll-pulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50%       { opacity: 0.9; transform: scaleY(0.7); }
}

@media (prefers-reduced-motion: reduce) {
    .hs-scroll-line { animation: none; }
}

/* ── Slide Counter (top-right) ──────────────────────────────── */
.hs-counter {
    position: absolute;
    top: 32px;
    right: clamp(20px, 4vw, 80px);
    z-index: 10;
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: var(--hs-white-60);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hs-counter-current {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--hs-white);
    line-height: 1;
}

.hs-counter-sep {
    color: var(--hs-white-40);
}

/* ── Fallback: No slides ────────────────────────────────────── */
.hs-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hs-navy) 0%, var(--hs-navy-mid) 100%);
    z-index: 2;
}

/* ── Responsive ─────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
    .hs-arrows {
        right: 16px;
    }
    .hs-nav {
        right: 16px;
        bottom: 80px;
    }
    .hs-counter {
        right: 16px;
    }
    .hs-title {
        font-size: clamp(1.9rem, 5vw, 2.8rem);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-slider-section {
        min-height: 600px;
        height: clamp(600px, 100svh, 800px);
    }

    .hs-container {
        padding: 0 20px;
        align-items: flex-end;
        padding-bottom: 100px;
    }

    .hs-content {
        max-width: 100%;
    }

    .hs-title {
        font-size: clamp(1.7rem, 7vw, 2.4rem);
    }

    .hs-subtitle {
        font-size: 0.9rem;
        margin-bottom: 28px;
    }

    .hs-actions {
        gap: 12px;
    }

    .hs-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    /* Hide arrows on mobile — use swipe */
    .hs-arrows {
        display: none;
    }

    /* Compact nav on mobile */
    .hs-nav {
        bottom: 20px;
        right: 20px;
    }

    .hs-nav-item {
        font-size: 0.65rem;
    }

    .hs-nav-line {
        width: 16px;
    }

    .hs-nav-item.is-active .hs-nav-line {
        width: 32px;
    }

    .hs-counter {
        top: 20px;
        right: 20px;
    }

    .hs-counter-current {
        font-size: 1.1rem;
    }

    .hs-pause-btn {
        bottom: 20px;
        left: 20px;
    }

    .hs-scroll {
        display: none;
    }

    /* Mobile overlay: stronger on left */
    .hs-overlay {
        background: linear-gradient(
            180deg,
            rgba(5, 15, 30, 0.30) 0%,
            rgba(5, 15, 30, 0.75) 60%,
            rgba(5, 15, 30, 0.92) 100%
        );
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .hs-title {
        font-size: 1.6rem;
    }

    .hs-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hs-btn {
        justify-content: center;
    }
}

/* ── Header transparent overlay integration ─────────────────── */
/* When hero is first section, header can be transparent */
.hero-slider-section + * {
    /* Ensure no gap between hero and next section */
}