/* DP Hero Slider — v1.7.0
   - Yükseklik: CSS variable (--hs-slide-height) → cache bağımsız çalışır
   - Ken Burns: .dp-hs-bg ayrı katman, .dp-hs-kb sınıfıyla aktif
   - Dots/Arrows: span+div, tema button CSS çakışması yok
*/

/* ══════════════════════════════════════════════
   DEFAULTS — Elementor paneli {{WRAPPER}} üzerinde override eder
══════════════════════════════════════════════ */
.elementor-widget-dp_hero_slider {
    --hs-slide-height:      90vh;
    --hs-eyebrow-color:     #C9A84C;
    --hs-h1-color:          #ffffff;
    --hs-h2-color:          #C9A84C;
    --hs-desc-color:        rgba(255,255,255,0.78);
    --hs-btn-color:         #C9A84C;
    --hs-btn-hover-bg:      #C9A84C;
    --hs-btn-hover-text:    #111111;
    --hs-feat-bg:           rgba(0,0,0,0.52);
    --hs-feat-border:       rgba(201,168,76,0.25);
    --hs-feat-icon-color:   #C9A84C;
    --hs-feat-icon-border:  rgba(201,168,76,0.35);
    --hs-feat-icon-size:    14px;
    --hs-feat-icon-box:     32px;
    --hs-feat-title-color:  #ffffff;
    --hs-feat-desc-color:   rgba(255,255,255,0.58);
    --hs-dot-color:         rgba(255,255,255,0.40);
    --hs-dot-active-color:  #C9A84C;
    --hs-arrow-color:       #C9A84C;
    --hs-arrow-bg:          rgba(0,0,0,0.55);
    --hs-arrow-hover-bg:    #C9A84C;
    --hs-arrow-hover-text:  #111111;
    --hs-kb-duration:       10s;
    --hs-kb-scale:          112%;
}

/* Mobil default: tam ekran — Elementor'da override edilebilir */
@media (max-width: 767px) {
    .elementor-widget-dp_hero_slider {
        --hs-slide-height: 100vh; /* Elementor mobil kontrolü bu değeri ezer */
    }
}

/* ── Wrapper ─────────────────────────────────── */
.dp-hs-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #0d0d0b;
    font-family: 'Poppins', sans-serif;
    user-select: none;
}

/* ── Track ───────────────────────────────────── */
.dp-hs-track { position: relative; display: block; width: 100%; }

/* ── Slide ───────────────────────────────────── */
.dp-hs-slide {
    position: absolute;
    inset: 0 0 auto 0;
    width: 100%;
    /* YÜKSEKLİK — CSS variable, Elementor paneli burayı değiştirir */
    min-height: var(--hs-slide-height, 90vh);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.85s ease;
}
.dp-hs-slide:first-child { position: relative; }
.dp-hs-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* ══════════════════════════════════════════════
   KEN BURNS — .dp-hs-bg ayrı katman
   .dp-hs-kb sınıfı yoksa sadece statik bg
══════════════════════════════════════════════ */
.dp-hs-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right; /* masaüstü: görsel sağda görünsün */
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1);
    transition: none;
}

/* Ken Burns AÇIK → aktif slide'da zoom animasyonu */
.dp-hs-kb .dp-hs-slide.active .dp-hs-bg {
    animation: dpKenBurns var(--hs-kb-duration, 10s) ease-in-out forwards;
}

@keyframes dpKenBurns {
    0%   {
        transform: scale(1) translate(0%, 0%);
    }
    100% {
        transform: scale(calc(var(--hs-kb-scale, 112%) / 100))
                   translate(-1.5%, -1%);
    }
}

/* ── Overlay ─────────────────────────────────── */
.dp-hs-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10,10,8,0.93) 0%,
        rgba(10,10,8,0.72) 38%,
        rgba(10,10,8,0.28) 62%,
        rgba(10,10,8,0.06) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* ── Body ────────────────────────────────────── */
.dp-hs-body {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
}
.dp-hs-content {
    max-width: 520px;
    padding: 56px 64px 40px 64px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ── Eyebrow ─────────────────────────────────── */
.dp-hs-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--hs-eyebrow-color);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    line-height: 1;
}
.dp-hs-eyebrow i, .dp-hs-eyebrow svg { font-size: 13px; }

/* ── Heading ─────────────────────────────────── */
.dp-hs-heading {
    margin: 0;
    line-height: 1.08;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 600;
}
.dp-hs-heading-white {
    display: block;
    color: var(--hs-h1-color);
    font-size: clamp(2.4rem, 4.2vw, 4rem);
    font-style: normal;
}
.dp-hs-heading-gold {
    display: block;
    color: var(--hs-h2-color);
    font-size: clamp(2.4rem, 4.2vw, 4rem);
    font-style: italic;
}

/* ── Description ─────────────────────────────── */
.dp-hs-description {
    color: var(--hs-desc-color);
    font-size: 14px;
    line-height: 1.75;
    margin: 0;
    max-width: 380px;
}

/* ── CTA Button (<a> tag) ────────────────────── */
.dp-hs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--hs-btn-color);
    border: 1.5px solid var(--hs-btn-color);
    background: transparent;
    padding: 13px 28px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .3s, color .3s, border-color .3s;
    width: fit-content;
    margin-top: 4px;
    cursor: pointer;
    border-radius: 0 !important;
    min-height: unset !important;
}
.dp-hs-btn:hover {
    background: var(--hs-btn-hover-bg);
    color: var(--hs-btn-hover-text);
    border-color: var(--hs-btn-hover-bg);
    border-radius: 0 !important;
}
.dp-hs-btn-arrow { width: 16px; height: 16px; flex-shrink: 0; transition: transform .3s; }
.dp-hs-btn:hover .dp-hs-btn-arrow { transform: translateX(4px); }

/* ══════════════════════════════════════════════
   FEATURES BAR
══════════════════════════════════════════════ */
.dp-hs-features {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    width: fit-content;
    max-width: 62%;
    background: var(--hs-feat-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--hs-feat-border);
}
.dp-hs-feat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-right: 1px solid rgba(255,255,255,0.10);
    flex-shrink: 0;
}
.dp-hs-feat-item:last-child { border-right: none; }
.dp-hs-feat-icon {
    color: var(--hs-feat-icon-color);
    width:  var(--hs-feat-icon-box, 32px);
    height: var(--hs-feat-icon-box, 32px);
    min-width: var(--hs-feat-icon-box, 32px);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--hs-feat-icon-border);
    border-radius: 50%;
    flex-shrink: 0;
    transition: width .2s, height .2s;
}
.dp-hs-feat-icon i   { font-size: var(--hs-feat-icon-size, 14px) !important; line-height: 1; }
.dp-hs-feat-icon svg { width: var(--hs-feat-icon-size, 14px); height: var(--hs-feat-icon-size, 14px); }
.dp-hs-feat-text { display: flex; flex-direction: column; gap: 2px; }
.dp-hs-feat-title { color: var(--hs-feat-title-color); font-size: 12px; font-weight: 600; white-space: nowrap; }
.dp-hs-feat-desc  { color: var(--hs-feat-desc-color);  font-size: 11px; white-space: nowrap; }

/* ══════════════════════════════════════════════
   DOTS — <span>, tema button CSS yok
══════════════════════════════════════════════ */
.dp-hs-dots {
    position: absolute;
    bottom: 22px;
    left: 64px;          /* içerik sol padding ile hizalı */
    transform: none;     /* ortada değil, solda */
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    background: rgba(0,0,0,0.40);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 100px;
    padding: 6px 12px;
    white-space: nowrap;
}
.dp-hs-dot {
    display: inline-block;
    width: 20px;
    height: 7px;
    border-radius: 100px;
    background: rgba(255,255,255,0.40);
    cursor: pointer;
    transition: width .35s cubic-bezier(.4,0,.2,1), background .35s;
    flex-shrink: 0;
    outline: none;
}
.dp-hs-dot.active { width: 32px; background: var(--hs-dot-active-color); }
.dp-hs-dot:focus-visible { outline: 2px solid var(--hs-dot-active-color); }

/* ══════════════════════════════════════════════
   OKLAR — <div>, tema button CSS yok
══════════════════════════════════════════════ */
.dp-hs-arrows {
    position: absolute;
    bottom: 0; right: 0;
    z-index: 10;
    display: flex;
}
.dp-hs-arrow {
    width: 52px; height: 52px;
    background: var(--hs-arrow-bg, rgba(0,0,0,0.55));
    border-left: 1px solid rgba(255,255,255,0.10);
    color: var(--hs-arrow-color, #C9A84C);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .25s, color .25s;
}
.dp-hs-arrow:first-child { border-left: none; }
.dp-hs-arrow svg { width: 18px; height: 18px; overflow: visible; }
.dp-hs-arrow svg path { stroke: var(--hs-arrow-color, #C9A84C); transition: stroke .25s; }
.dp-hs-arrow:hover { background: var(--hs-arrow-hover-bg, #C9A84C); color: var(--hs-arrow-hover-text, #111); }
.dp-hs-arrow:hover svg path { stroke: var(--hs-arrow-hover-text, #111); }

/* ══════════════════════════════════════════════
   TABLET
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .dp-hs-content { max-width: 70%; padding: 44px 40px 32px 40px; }
    .dp-hs-features { max-width: 80%; }
    .dp-hs-feat-item { padding: 12px 20px; }
}

/* ══════════════════════════════════════════════
   MOBİL — tam ekran, overlay değişir, features absolute
══════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* Mobil arka plan ortala — .dp-hs-bg'ye uygulanır (slide'da bg yok artık) */
    .dp-hs-bg {
        background-position: center center;
    }

    /* Ken Burns mobilde de çalışır — ek bir şey gerekmez */

    /* Overlay: yukarıdan aşağıya */
    .dp-hs-overlay {
        background: linear-gradient(
            to bottom,
            rgba(10,10,8,0.28) 0%,
            rgba(10,10,8,0.68) 50%,
            rgba(10,10,8,0.97) 100%
        ) !important;
    }

    .dp-hs-body { align-items: flex-end !important; }
    .dp-hs-content {
        max-width: 100% !important;
        padding: 24px 24px 94px 24px !important;
        gap: 14px;
    }
    .dp-hs-heading-white,
    .dp-hs-heading-gold { font-size: clamp(1.85rem, 8.5vw, 2.6rem) !important; }
    .dp-hs-description { font-size: 13px; max-width: 100%; }

    /* Features absolute — slide yüksekliğini etkilemez */
    .dp-hs-features {
        position: absolute !important;
        bottom: 0 !important; left: 0 !important;
        width: 100% !important; max-width: 100% !important;
        z-index: 3;
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .dp-hs-features::-webkit-scrollbar { display: none; }
    .dp-hs-feat-item { flex: 1; min-width: 105px; justify-content: center; padding: 11px 12px !important; }
    .dp-hs-feat-title, .dp-hs-feat-desc { white-space: normal !important; }

    /* Dots: koyu pill container, beyaz pasif, altın aktif — mobilde ortada */
    .dp-hs-dots {
        bottom: 58px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: rgba(10,10,8,0.68) !important;
        border-radius: 100px !important;
        padding: 7px 14px !important;
        gap: 6px !important;
    }
    .dp-hs-dot {
        width: 22px !important; height: 7px !important;
        background: rgba(255,255,255,0.50) !important;
        border-radius: 100px !important;
    }
    .dp-hs-dot.active { width: 34px !important; background: var(--hs-dot-active-color) !important; }

    /* Arrows: daire, sol/sağ ortada */
    .dp-hs-arrows {
        position: absolute !important;
        bottom: auto !important; right: auto !important;
        top: 42% !important; left: 0 !important;
        width: 100% !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        justify-content: space-between !important;
        pointer-events: none !important;
        background: transparent !important;
    }
    .dp-hs-arrow {
        pointer-events: auto !important;
        width: 42px !important; height: 42px !important;
        background: rgba(0,0,0,0.48) !important;
        border: 1.5px solid rgba(201,168,76,0.55) !important;
        border-left: 1.5px solid rgba(201,168,76,0.55) !important;
        border-radius: 50% !important;
        color: #C9A84C !important;
        margin: 0 14px !important;
    }
    .dp-hs-arrow svg { width: 20px !important; height: 20px !important; }
    .dp-hs-arrow svg path { stroke: #C9A84C !important; }
    .dp-hs-arrow:hover { background: rgba(201,168,76,0.90) !important; }
    .dp-hs-arrow:hover svg path { stroke: #111 !important; }
}

/* Editör */
.elementor-editor-active .dp-hs-features { position: relative !important; }
