/* ═══════════════════════════════════════════════════════
   AŞK-I TURKUAZ — HERO BANNER
   Dinamik banner tipleri (tour / normal / image) + swiper
   style.css'deki .hero-section / .hero-grid / .hero-content
   stillerini KORUR, sadece yeni eklenen yapılara stil verir.
   ═══════════════════════════════════════════════════════ */

/* Slide container — her slide bir hero "view"ı oluşturur */
.hero-slide {
    width: 100%;
    display: flex;
    align-items: center;
    min-height: inherit;
}

/* ═══════════════════════════════════════
   AKILLI BAŞLIK FONT BOYUTU
   Karakter sayısına göre otomatik scale
   (PHP tarafında hero-title--short/medium/long class'ı eklenir)
   ═══════════════════════════════════════ */

.hero-title {
    line-height: 1.08;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.hero-title--short {
    font-size: clamp(2.4rem, 5.2vw, 4.2rem);
}

.hero-title--medium {
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    line-height: 1.1;
}

.hero-title--long {
    font-size: clamp(1.55rem, 3vw, 2.4rem);
    line-height: 1.15;
}

/* line-accent (italic) — başlık ile dengeli kalsın */
.hero-title--medium .line-accent,
.hero-title--long .line-accent {
    font-size: .88em;
}

/* Hero desc — okunaklı, 3 satırla sınırlı (taşma engeli) */
.hero-slide .hero-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 540px;
}

.hero-multi .hero-slide {
    min-height: 70vh;
}

/* Swiper slide'ları arası geçiş için mevcut padding'i slide'a taşı */
.hero-multi .hero-slide .hero-grid {
    width: 100%;
}

/* Tour/Normal slide'larında .hero-grid zaten style.css'ten stil alıyor */

/* ═══════════════════════════════════════
   TYPE: IMAGE (Tam Görsel)
   ═══════════════════════════════════════ */
.hero-image-full {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-full img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-image-full::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 35, .55) 0%, rgba(10, 22, 35, .2) 50%, rgba(10, 22, 35, .65) 100%);
    z-index: 2;
}

.hero-image-overlay {
    position: relative;
    z-index: 3;
    color: #fff;
    text-align: left;
    max-width: 640px;
}

.hero-image-overlay .hero-title {
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-image-overlay .hero-desc {
    color: rgba(255, 255, 255, .9);
    margin-bottom: 1.5rem;
    max-width: 540px;
}

.hero-image-overlay .hero-actions {
    margin-top: 1.5rem;
}

/* ═══════════════════════════════════════
   SWIPER (çoklu banner)
   ═══════════════════════════════════════ */
.hero-multi {
    padding: 0 !important;
    overflow: hidden !important;
}

.hero-swiper {
    width: 100%;
    min-height: 70vh;
}

.hero-swiper .swiper-slide {
    min-height: 70vh;
    display: flex;
    align-items: center;
    /* Background chain — kenarlık rounded'ı korumak için slide arka planını aç */
    background: linear-gradient(170deg, var(--dark-hero) 0%, #162032 40%, #1a3040 100%);
}

/* tam-görsel tipindeyken arka planı slide değil görsel belirlesin */
.hero-swiper .swiper-slide:has(.hero-type-image) {
    background: transparent;
}

/* Pagination — slayt üzerinde alt merkez (arrow yok, sade dots)
   z-index çok yüksek: float-card, image overlay, tüm slide içeriğinin üstünde.
   Alt arama çubuğunun üstünde kalacak şekilde yukarı kaydırıldı. */
.hero-swiper-controls {
    position: absolute;
    bottom: 4.5rem;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .6rem;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-swiper-controls { bottom: 3rem; }
}

.hero-swiper-controls > * { pointer-events: auto; }

.hero-swiper-pagination {
    position: static !important;
    width: auto !important;
    display: flex;
    gap: .5rem;
    padding: .5rem .85rem;
    background: rgba(10, 22, 35, .55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}

/* Hover durumunda duraklatma göstergesi (pause icon) */
.hero-pause-hint {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .8rem;
    background: rgba(10, 22, 35, .55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .9);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s, transform .25s;
    pointer-events: none;
}

.hero-swiper.is-paused .hero-pause-hint {
    opacity: 1;
    transform: translateY(0);
}

.hero-pause-hint i {
    font-size: .7rem;
    color: var(--teal, #14b8a6);
}

/* Aktif dot'un içindeki progress bar — otomatik ilerleme göstergesi */
.hero-swiper-pagination .swiper-pagination-bullet-active {
    position: relative;
    overflow: hidden;
}

.hero-swiper-pagination .swiper-pagination-bullet-active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .45);
    transform-origin: left center;
    animation: heroProgress 6s linear forwards;
}

/* Pause'de animasyon dursun */
.hero-swiper.is-paused .hero-swiper-pagination .swiper-pagination-bullet-active::after {
    animation-play-state: paused;
}

@keyframes heroProgress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.hero-swiper-pagination .swiper-pagination-bullet {
    width: 28px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .35);
    opacity: 1;
    transition: all .35s cubic-bezier(.16, 1, .3, 1);
    margin: 0 !important;
    cursor: pointer;
}

.hero-swiper-pagination .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, .55);
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--teal, #14b8a6);
    width: 44px;
}

/* Hover-only davranış: dots default'ta gizli, slider'a hover'lanınca (is-paused) görünür.
   Mobilde hover yok — orada her zaman görünür kalır. */
@media (hover: hover) {
    .hero-swiper-pagination {
        opacity: 0;
        transform: translateY(8px);
        transition: opacity .25s ease, transform .25s ease;
        pointer-events: none;
    }

    .hero-swiper.is-paused .hero-swiper-pagination {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* ═══════════════════════════════════════
   RESPONSIVE — MOBILE BANNER REFINEMENTS
   Masaüstü görünümü aynen korunur, sadece ≤768px altı için tasarım.
   ═══════════════════════════════════════ */

/* ─────── ≤768px ─────── */
@media (max-width: 768px) {
    /* Section — kompakt kenarlık, nefes alan padding */
    .hero-section {
        padding: 28px 0 28px;
        border-radius: 22px;
        width: 100%;
        margin: 8px 0 18px;
    }

    /* Pause-hint mobilde (hover yok) — flex layout'ta yer kaplamasın,
       yoksa dots pagination sola kayıyor */
    .hero-pause-hint {
        display: none !important;
    }

    /* Grid — iç boşlukları ve yatay hizalama */
    .hero-slide .hero-grid {
        gap: 1.25rem;
        padding: 0 1rem;
        max-width: 100%;
    }

    .hero-slide .hero-content {
        gap: .9rem;
        width: 100%;
    }

    /* Eyebrow — ortalı, kompakt */
    .hero-slide .hero-eyebrow {
        margin: 0 auto;
        font-size: .68rem;
        padding: .32rem .85rem .32rem .5rem;
    }

    /* Başlık — akıllı font sınıflarını mobilde kap */
    .hero-slide .hero-title {
        line-height: 1.12;
        letter-spacing: -.3px;
    }
    .hero-slide .hero-title--short  { font-size: clamp(1.75rem, 6.8vw, 2.3rem) !important; }
    .hero-slide .hero-title--medium { font-size: clamp(1.5rem, 6vw, 2.05rem) !important; line-height: 1.15; }
    .hero-slide .hero-title--long   { font-size: clamp(1.3rem, 5.2vw, 1.8rem) !important; line-height: 1.2; }

    /* Açıklama — genişlik 100, 3 satır clamp zaten var */
    .hero-slide .hero-desc {
        font-size: .88rem;
        line-height: 1.55;
        max-width: 100%;
        margin: 0 auto;
        -webkit-line-clamp: 3;
    }

    /* Aksiyonlar — ortalı, düzgün dokunma hedefi */
    .hero-slide .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
        margin: .25rem auto 0;
        gap: .55rem;
    }

    .hero-slide .hero-actions .btn-primary,
    .hero-slide .hero-actions .btn-ghost {
        width: 100%;
        justify-content: center;
        padding: .85rem 1rem;
        font-size: .88rem;
        min-height: 46px;
    }

    /* İstatistikler — taşmayan tek satır, sabit 3 kolon */
    .hero-slide .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .5rem;
        width: 100%;
        max-width: 440px;
        margin: .5rem auto 0;
        padding: .9rem .25rem 0;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    .hero-slide .hero-stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-width: 0;
        padding: 0 .15rem;
    }

    .hero-slide .hero-stat-item .val {
        font-size: clamp(.88rem, 3.4vw, 1.05rem);
        font-weight: 700;
        line-height: 1.15;
        white-space: nowrap;
        letter-spacing: -.01em;
    }

    .hero-slide .hero-stat-item .lbl {
        font-size: .58rem;
        letter-spacing: .6px;
        line-height: 1.3;
        margin-top: .15rem;
        white-space: nowrap;
    }

    /* Görsel — orantılı yükseklik */
    .hero-slide .hero-visual {
        margin-top: .25rem;
        width: 100%;
    }

    .hero-slide .hero-img-wrap {
        border-radius: 18px;
        margin: 0 auto;
        max-width: 560px;
    }

    .hero-slide .hero-img-wrap img {
        height: clamp(190px, 40vw, 260px);
    }

    /* IMAGE tipi banner için */
    .hero-image-full {
        min-height: 52vh;
    }
    .hero-image-overlay {
        padding: 0 1rem;
        text-align: center;
        max-width: 100%;
    }
    .hero-image-overlay .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.3rem);
    }
    .hero-image-overlay .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin: 1.25rem auto 0;
    }

    /* Swiper çoklu banner */
    .hero-swiper,
    .hero-swiper .swiper-slide,
    .hero-multi .hero-slide {
        min-height: auto;
    }

    /* Multi-banner: section'ın padding: 0 olması yüzünden slide içinde boşluk verilir.
       Tour/normal slide'larda padding ile dots için gutter yaratılır.
       Image tipi slide'da image tüm alanı kaplaması için padding KALDIRILIR. */
    .hero-multi .swiper-slide {
        padding-top: 28px;
        padding-bottom: 3rem;
    }

    .hero-multi .swiper-slide:has(.hero-type-image) {
        padding: 0;
    }

    .hero-multi .hero-type-image {
        width: 100%;
    }

    .hero-swiper-controls {
        bottom: .75rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-swiper-pagination {
        padding: .4rem .7rem;
    }

    .hero-swiper-pagination .swiper-pagination-bullet { width: 22px; height: 3.5px; }
    .hero-swiper-pagination .swiper-pagination-bullet-active { width: 32px; }
}

/* ─────── ≤560px ─────── */
@media (max-width: 560px) {
    .hero-section {
        padding: 24px 0 24px;
        border-radius: 18px;
        margin: 6px auto 14px;
    }

    .hero-slide .hero-grid { gap: 1rem; padding: 0 .9rem; }
    .hero-slide .hero-content { gap: .75rem; }

    .hero-slide .hero-title--short  { font-size: clamp(1.55rem, 7vw, 2rem) !important; }
    .hero-slide .hero-title--medium { font-size: clamp(1.35rem, 6.4vw, 1.8rem) !important; }
    .hero-slide .hero-title--long   { font-size: clamp(1.2rem, 5.4vw, 1.6rem) !important; }

    .hero-slide .hero-desc { font-size: .85rem; -webkit-line-clamp: 3; }

    .hero-slide .hero-stats {
        gap: .35rem;
        padding-top: .75rem;
    }
    .hero-slide .hero-stat-item .val { font-size: clamp(.82rem, 3.2vw, .98rem); }
    .hero-slide .hero-stat-item .lbl { font-size: .54rem; letter-spacing: .5px; }

    .hero-slide .hero-img-wrap img {
        height: clamp(170px, 38vw, 220px);
    }

    .hero-image-full { min-height: 44vh; }
    .hero-swiper-controls { bottom: .6rem; }

    .hero-multi .swiper-slide { padding-top: 24px; padding-bottom: 2.75rem; }
    .hero-multi .swiper-slide:has(.hero-type-image) { padding: 0; }
}

/* ─────── ≤400px (çok küçük ekran) ─────── */
@media (max-width: 400px) {
    .hero-section {
        padding: 20px 0 20px;
        border-radius: 16px;
    }

    .hero-slide .hero-stats { gap: .25rem; padding-top: .65rem; }
    .hero-slide .hero-stat-item { padding: 0 .1rem; }
    .hero-slide .hero-stat-item .val { font-size: .82rem; }
    .hero-slide .hero-stat-item .lbl { font-size: .5rem; letter-spacing: .3px; }

    .hero-slide .hero-img-wrap img { height: 170px; }

    .hero-slide .hero-actions .btn-primary,
    .hero-slide .hero-actions .btn-ghost {
        padding: .75rem .85rem;
        font-size: .84rem;
    }
}
