/* ==========================================================================
   By Kadir — Kurumsal Hero Slider Bileşeni
   ========================================================================== */

.bykadir-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 680px;
    max-height: 900px;
    background-color: #6B000A;
    overflow: hidden;
    user-select: none;
    font-family: var(--font-body, 'Poppins', sans-serif);
}

.hero-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ─── Slayt Maddesi ─── */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transition: opacity 650ms cubic-bezier(0.4, 0, 0.2, 1), visibility 650ms;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

/* ─── Arka Plan Görseli & Zoom Efekti ─── */
.hero-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center right;
    transform: scale(1.06);
    transition: transform 7000ms ease-out;
}

.hero-slide.is-active .hero-bg-media {
    transform: scale(1);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
}

/* ─── Geometrik Kırmızı Açı Katmanı (Desktop & Mobil) ─── */
.hero-geom-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.hero-geom-shape-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 53% 0, 42% 100%, 0 100%);
    background: linear-gradient(135deg, rgba(107, 0, 10, 0.40) 0%, rgba(50, 0, 5, 0.20) 100%);
    backdrop-filter: blur(4px);
}

.hero-geom-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 50% 0, 39% 100%, 0 100%);
    background: linear-gradient(145deg,
            #6B000A 0%,
            #74000B 30%,
            #82000C 60%,
            #600008 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 14px 0 40px rgba(0, 0, 0, 0.55);
}

/* ─── İçerik Konteyneri (Masaüstü Sola Dengeli & İdeal Boşluklu) ─── */
.hero-content-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    padding-left: clamp(100px, 8.5vw, 160px);
    padding-right: clamp(24px, 4vw, 60px);
    display: flex;
    align-items: center;
}

.hero-text-card {
    max-width: 580px;
    width: 100%;
    color: #FFFFFF;
    position: relative;
    z-index: 10;
}

/* ─── Orta Boy Masaüstü / Laptop Uyarlaması (992px - 1399px) ─── */
@media (min-width: 992px) and (max-width: 1399px) {
    .hero-geom-shape-shadow {
        clip-path: polygon(0 0, 61% 0, 49% 100%, 0 100%);
    }

    .hero-geom-shape {
        clip-path: polygon(0 0, 58% 0, 46% 100%, 0 100%);
    }

    .hero-content-container {
        padding-left: clamp(84px, 7.5vw, 120px);
    }

    .hero-text-card {
        max-width: 520px;
    }
}

/* ─── Üst Başlık (Eyebrow Tag) ─── */
.hero-eyebrow {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.25);
    padding: 5px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    display: inline-block;
}

/* ─── Başlık & Açıklama ─── */
.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.5px;
    color: #FFFFFF;
    margin-bottom: 18px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 33px;
        line-height: 1.22;
    }
}

.hero-desc {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 28px;
    font-weight: 400;
    max-width: 480px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ─── Butonlar ─── */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #B4010F 0%, #8A000A 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF !important;
    padding: 13px 26px;
    border-radius: 9999px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(180, 1, 15, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(180, 1, 15, 0.6);
    background: linear-gradient(135deg, #C80212 0%, #9C000C 100%);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: #FFFFFF !important;
    padding: 13px 24px;
    border-radius: 9999px;
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

/* ─── Güven Rozetleri (Desktop) ─── */
.hero-trust-badges {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 480px;
}

.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #FFFFFF;
    flex-shrink: 0;
}

.hero-badge-text {
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.92);
}

/* ─── Navigasyon Okları (Desktop & Mobil) ─── */
.hero-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #101112;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.hero-nav-prev {
    left: clamp(16px, 1.8vw, 28px);
}

.hero-nav-next {
    right: clamp(16px, 1.8vw, 28px);
}

.hero-nav-arrow:hover {
    transform: translateY(-50%) scale(1.08);
    background: #B4010F;
    color: #FFFFFF;
    border-color: #B4010F;
    box-shadow: 0 8px 24px rgba(180, 1, 15, 0.4);
}

/* ─── Alt Kontrol Barı (Sayaç & Dots) ─── */
.hero-controls-bar {
    position: absolute;
    bottom: 96px;
    right: clamp(28px, 3.5vw, 56px);
    z-index: 20;
}

.hero-controls-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(16, 17, 18, 0.65);
    backdrop-filter: blur(12px);
    padding: 8px 18px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-slide-counter {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    gap: 4px;
}

.counter-current {
    color: #FFFFFF;
}

.counter-sep {
    color: rgba(255, 255, 255, 0.4);
}

.counter-total {
    color: rgba(255, 255, 255, 0.6);
}

.hero-pagination-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot.is-active {
    width: 24px;
    background: #B4010F;
    box-shadow: 0 0 10px rgba(180, 1, 15, 0.6);
}

/* ─── İlerleme Çizgisi ─── */
.hero-progress-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: #B4010F;
    z-index: 25;
    transition: width linear;
}

/* ==========================================================================
   Mobil & Tablet Hero Lüks Uyarlaması (<= 991px)
   ========================================================================== */
@media (max-width: 991px) {
    .bykadir-hero {
        height: 560px;
        min-height: 520px;
        max-height: 600px;
        padding-top: 0;
        box-sizing: border-box;
        background-color: #6B000A;
    }

    .hero-bg-media {
        background-position: 80% center;
    }

    .hero-bg-overlay {
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.05) 100%);
    }

    .hero-geom-shape-shadow {
        clip-path: polygon(0 0, 63% 0, 48% 100%, 0 100%);
    }

    .hero-geom-shape {
        clip-path: polygon(0 0, 60% 0, 45% 100%, 0 100%);
        background: linear-gradient(145deg,
                #6B000A 0%,
                #74000B 35%,
                #82000C 65%,
                #600008 100%);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 8px 0 24px rgba(0, 0, 0, 0.45);
    }

    .hero-content-container {
        padding: 20px 18px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .hero-text-card {
        max-width: 52%;
        width: 100%;
        padding: 0;
        margin: 0;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-sizing: border-box;
    }

    .hero-eyebrow {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.8px;
        padding: 0;
        border-radius: 0;
        margin-bottom: 8px;
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.95);
        display: block;
    }

    .hero-title {
        font-size: 20px;
        font-weight: 800;
        line-height: 1.22;
        margin-bottom: 8px;
        color: #FFFFFF;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }

    .hero-desc {
        font-size: 12px;
        line-height: 1.38;
        margin-bottom: 14px;
        color: rgba(255, 255, 255, 0.95);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
        max-width: 100%;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
        margin-bottom: 0;
        width: 100%;
    }

    .hero-btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 7px 14px;
        font-size: 11.5px;
        font-weight: 600;
        border-radius: 9999px;
        gap: 6px;
        white-space: nowrap;
        background: linear-gradient(135deg, #B4010F 0%, #8A000A 100%);
        border: 1.5px solid rgba(255, 255, 255, 0.45);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
        max-width: 100%;
    }

    .hero-btn-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 12px;
        font-size: 11px;
        font-weight: 500;
        border-radius: 9999px;
        gap: 6px;
        white-space: nowrap;
        background: rgba(0, 0, 0, 0.38);
        border: 1px solid rgba(255, 255, 255, 0.35);
        max-width: 100%;
    }

    .hero-nav-arrow.hero-nav-next {
        width: 36px;
        height: 36px;
        right: 10px;
        font-size: 16px;
        z-index: 15;
    }

    .hero-controls-bar {
        bottom: 12px;
        right: 14px;
    }

    .hero-controls-inner {
        padding: 4px 10px;
        gap: 8px;
    }

    .hero-slide-counter {
        font-size: 11.5px;
    }

    .hero-dot {
        width: 5px;
        height: 5px;
    }

    .hero-dot.is-active {
        width: 16px;
    }
}

/* Küçük Ekranlı Telefonlar (<= 380px) */
@media (max-width: 380px) {
    .bykadir-hero {
        height: 500px;
        min-height: 460px;
        padding-top: 0;
        box-sizing: border-box;
    }

    .hero-geom-shape-shadow {
        clip-path: polygon(0 0, 66% 0, 50% 100%, 0 100%);
    }

    .hero-geom-shape {
        clip-path: polygon(0 0, 63% 0, 47% 100%, 0 100%);
    }

    .hero-text-card {
        max-width: 55%;
    }

    .hero-eyebrow {
        font-size: 9px;
        margin-bottom: 6px;
    }

    .hero-title {
        font-size: 18.5px;
        margin-bottom: 6px;
    }

    .hero-desc {
        font-size: 11px;
        line-height: 1.35;
        margin-bottom: 12px;
    }

    .hero-actions {
        gap: 6px;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}