/* ===================================================================== */
/* ===  EFFECTS.CSS — TÜM SAYFALARDA ORTAK GÖRSEL KATMAN             === */
/* ===  1) Özel imleç (custom cursor) — yalnızca fare/iz sürücülü    === */
/* ===     cihazlarda etkin; dokunmatik cihazlarda tamamen kapalı    === */
/* ===  2) Modern animasyon ve mikro-etkileşim katmanı               === */
/* ===  Bu dosya mevcut sayfa CSS'lerinden SONRA yüklenir ve hiçbir  === */
/* ===  metni/yapıyı değiştirmez; yalnızca görsel iyileştirme yapar. === */
/* ===================================================================== */


/* ################################################################## */
/* #####  1. ÖZEL İMLEÇ — yalnızca ince işaretçili (fare) cihazlar ## */
/* ################################################################## */
@media (hover: hover) and (pointer: fine) {

    /* JS .has-custom-cursor sınıfını eklediğinde varsayılan imleç gizlenir */
    body.has-custom-cursor,
    body.has-custom-cursor * { cursor: none !important; }

    /* Form alanlarında yazı imleci geri gelir (kullanılabilirlik) */
    body.has-custom-cursor input,
    body.has-custom-cursor select,
    body.has-custom-cursor textarea { cursor: auto !important; }

    /* Orta nokta: fareyi birebir takip eden küçük dolu daire */
    .cursor-dot {
        position: fixed; top: 0; left: 0;
        width: 7px; height: 7px;
        background: #e31c24;
        border-radius: 50%;
        pointer-events: none;
        z-index: 99999;
        opacity: 0;
        transition: width 0.25s ease, height 0.25s ease, opacity 0.3s ease, background 0.3s ease;
        will-change: transform;
    }

    /* Dış halka: yumuşak gecikmeyle (trailing) takip eden çember */
    .cursor-ring {
        position: fixed; top: 0; left: 0;
        width: 34px; height: 34px;
        border: 2px solid rgba(227, 28, 36, 0.55);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99998;
        opacity: 0;
        background: rgba(227, 28, 36, 0);
        transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1), height 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                    opacity 0.3s ease, background 0.25s ease, border-color 0.3s ease;
        will-change: transform;
    }

    /* Fare ekrandayken görünür */
    .cursor-dot.on  { opacity: 1; }
    .cursor-ring.on { opacity: 1; }

    /* Etkileşimli öğe üzerinde: halka büyür, hafif dolar (manyetik vurgu) */
    .cursor-dot.cursor-hover  { width: 10px; height: 10px; }
    .cursor-ring.cursor-hover { width: 54px; height: 54px; background: rgba(227, 28, 36, 0.08); border-color: rgba(227, 28, 36, 0.85); }

    /* Tıklama anında halka içeri çöker */
    .cursor-ring.cursor-down { width: 26px; height: 26px; }

    /* Düğün ve kahvaltı sayfalarında imleç tema rengine (altın) döner */
    body.page-wedding .cursor-dot,
    body.page-breakfast .cursor-dot { background: #bb9944; }
    body.page-wedding .cursor-ring,
    body.page-breakfast .cursor-ring { border-color: rgba(187, 153, 68, 0.6); }
    body.page-wedding .cursor-ring.cursor-hover,
    body.page-breakfast .cursor-ring.cursor-hover { background: rgba(187, 153, 68, 0.1); border-color: rgba(187, 153, 68, 0.9); }
}

@media (hover: hover) and (pointer: fine) {

    /* Işıltı parçacığı: fare hareketiyle doğar, büyüyüp sönerek kaybolur */
    .cursor-spark {
        position: fixed; top: -100px; left: -100px;
        width: 6px; height: 6px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(227, 28, 36, 0.9) 0%, rgba(227, 28, 36, 0) 70%);
        pointer-events: none;
        z-index: 99997;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    .cursor-spark.spark-live {
        animation: fxSparkFade 0.7s ease-out forwards;
    }
    @keyframes fxSparkFade {
        0%   { opacity: 0.85; transform: translate(-50%, -50%) scale(calc(var(--spark-scale, 1) * 1)); }
        100% { opacity: 0;    transform: translate(-50%, -50%) scale(calc(var(--spark-scale, 1) * 2.6)); }
    }

    /* Tıklama dalgası: basılan noktada genişleyip kaybolan halka */
    .cursor-ripple {
        position: fixed;
        width: 10px; height: 10px;
        border: 2px solid rgba(227, 28, 36, 0.6);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99997;
        transform: translate(-50%, -50%);
        animation: fxRipple 0.6s ease-out forwards;
    }
    @keyframes fxRipple {
        0%   { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
        100% { opacity: 0;   transform: translate(-50%, -50%) scale(6); }
    }

    /* Altın temalı sayfalarda parçacık ve dalga da temaya uyar */
    body.page-wedding .cursor-spark,
    body.page-breakfast .cursor-spark {
        background: radial-gradient(circle, rgba(187, 153, 68, 0.9) 0%, rgba(187, 153, 68, 0) 70%);
    }
    body.page-wedding .cursor-ripple,
    body.page-breakfast .cursor-ripple { border-color: rgba(187, 153, 68, 0.65); }
}

/* Dokunmatik / kaba işaretçili cihazlarda özel imleç asla görünmez */
@media (hover: none), (pointer: coarse) {
    .cursor-dot, .cursor-ring, .cursor-spark, .cursor-ripple { display: none !important; }
}


/* ################################################################## */
/* #####  1B. KIRIK GÖRSEL — eksik dosyalar boş slot olarak kalır ### */
/* #####  script.js error yakalayıcısı .img-broken sınıfını ekler ### */
/* ################################################################## */

img.img-broken { opacity: 0 !important; }


/* ################################################################## */
/* #####  1C. HERO KAYDIRMA OKU — modern zıplayan çift ok (chevron) # */
/* #####  Transport & wedding: .hero-scroll-arrow (sabit, altta)  ### */
/* #####  Index: .scroll-indicator aynı ok stilini paylaşır       ### */
/* ################################################################## */

.hero-scroll-arrow {
    position: fixed;
    bottom: 26px; left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 10px 14px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
/* Hero geçildiğinde ok yumuşakça kaybolur (JS .hsa-hidden ekler) */
.hero-scroll-arrow.hsa-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Tek chevron: kenarlıklardan oluşan 45° döndürülmüş kare köşesi */
.hsa-chevron {
    display: block;
    width: 16px; height: 16px;
    border-right: 3px solid rgba(255, 255, 255, 0.9);
    border-bottom: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 1px;
    transform: rotate(45deg);
    margin: -7px 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
    animation: fxChevronPulse 1.9s ease-in-out infinite;
}
.hsa-chevron:nth-child(2) { animation-delay: 0.22s; }

/* Sıralı belirme + zıplama: oklar yukarıdan aşağı dalga gibi akar */
@keyframes fxChevronPulse {
    0%   { opacity: 0;   transform: rotate(45deg) translate(-6px, -6px); }
    35%  { opacity: 1; }
    65%  { opacity: 0.9; transform: rotate(45deg) translate(0, 0); }
    100% { opacity: 0;   transform: rotate(45deg) translate(5px, 5px); }
}

/* Düğün sayfası kaydırma oku: imzalanmış altın renk */
body.page-wedding .hsa-chevron,
body.page-breakfast .hsa-chevron {
    border-right-color: rgba(187, 153, 68, 0.95);
    border-bottom-color: rgba(187, 153, 68, 0.95);
    filter: drop-shadow(0 2px 6px rgba(187, 153, 68, 0.6));
}

/* Turizm sayfası kaydırma oku: imzalanmış kırmızı renk */
body.page-transport .hsa-chevron,
body.page-restarea .hsa-chevron {
    border-right-color: rgba(227, 28, 36, 0.95);
    border-bottom-color: rgba(227, 28, 36, 0.95);
    filter: drop-shadow(0 2px 6px rgba(227, 28, 36, 0.6));
}


/* ################################################################## */
/* #####  2. NAVBAR — kaydırınca buzlu cam (glassmorphism) zemin  ### */
/* ################################################################## */

/* Açık temalı sayfalar: yarı saydam beyaz + blur */
.navbar-home.scrolled {
    background: rgba(247, 247, 247, 0.82);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
}

/* Kahvaltı sayfası koyu yeşil temasını korur (buzlu koyu cam) */
body.page-breakfast .navbar-home.scrolled {
    background: rgba(25, 62, 6, 0.82);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
}

/* Mobil yan menü paneli de buzlu cam olur (yalnızca mobil düzende panel vardır) */
@media (max-width: 992px) {
    /* Panel artık "right" yerine "transform" ile açılıp kapanır. Bu sayede parmakla
       sürüklerken translateX değerini her karede güncelleyip paneli 1:1 takip ettirebiliriz
       (transform GPU hızlandırmalıdır, yeniden yerleşim/reflow tetiklemez).
       Kapalı durum: translateX(100%) → kendi genişliği kadar sağa, ekran dışı.
       Açık durum (.active): translateX(0). */
    .nav-links {
        right: 0;
        left: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
        background: rgba(247, 247, 247, 0.92);
        -webkit-backdrop-filter: blur(16px) saturate(150%);
        backdrop-filter: blur(16px) saturate(150%);
        will-change: transform;
    }
    .nav-links.active {
        transform: translateX(0);
    }
    body.page-breakfast .nav-links {
        background: rgba(25, 62, 6, 0.94);
    }
    /* "Hizmetlerimiz" alt menüsü: kendi zemini olmasın; panelin buzlu cam zemini
       içinden görünsün. Böylece alt menü ile ana panel tek, bütünleşik bir yüzey
       gibi görünür (her temada panelle aynı renk/saydamlık). */
    .dropdown-menu {
        background: transparent;
    }
}


/* ################################################################## */
/* #####  3. BUTON MİKRO-ETKİLEŞİMLERİ — parlama süpürmesi (sheen) ## */
/* ################################################################## */

.btn-hero, .btn-action, .btn-quote, .btn-submit, .whatsapp-cta-btn, .rs-btn, .bf-social-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.btn-hero::before, .btn-action::before, .btn-quote::before, .btn-submit::before,
.whatsapp-cta-btn::before, .rs-btn::before, .bf-social-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
    pointer-events: none;
}
.btn-hero:hover::before, .btn-action:hover::before, .btn-quote:hover::before,
.btn-submit:hover::before, .whatsapp-cta-btn:hover::before, .rs-btn:hover::before,
.bf-social-btn:hover::before {
    left: 130%;
}

/* Ana eylem butonlarında yumuşak nabız (pulse) parlaması */
@keyframes fxPulseRed {
    0%, 100% { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(227, 28, 36, 0.45); }
    50%      { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 0 12px rgba(227, 28, 36, 0); }
}
@keyframes fxPulseGold {
    0%, 100% { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(187, 153, 68, 0.5); }
    50%      { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 0 12px rgba(187, 153, 68, 0); }
}
@keyframes fxPulseGreen {
    0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.45); }
    50%      { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0); }
}
.home-hero .btn-hero { animation: fxPulseRed 2.8s ease-in-out infinite; }
.btn-reservation { animation: fxPulseGold 2.8s ease-in-out infinite; }
.whatsapp-cta-btn, .btn-hero-whatsapp { animation: fxPulseGreen 2.8s ease-in-out infinite; }

/* Header (hero) butonları — kahvaltı sayfasındaki nabız animasyonu TÜM
   sayfaların başlık butonlarına uygulanır (masaüstü + mobil).
   Renk, butonun kendi temasına göre seçilir. */
.page-hero .btn-hero { animation: fxPulseRed 2.8s ease-in-out infinite; }
.page-hero .btn-reservation { animation: fxPulseGold 2.8s ease-in-out infinite; }
.page-hero .btn-hero-whatsapp { animation: fxPulseGreen 2.8s ease-in-out infinite; }
.page-hero .rs-btn-call,
.page-hero .rs-btn-wa { animation: fxPulseGreen 2.8s ease-in-out infinite; }


/* ################################################################## */
/* #####  4. KART GİRİŞ ANİMASYONLARI — derinlikli, yaylı belirme ### */
/* ################################################################## */

/* Görünmeden önce: hafif aşağıda ve %2 küçük (derinlik hissi) */
.company-card, .ref-item, .fleet-card, .t-feature-item,
.pricing-card, .info-tile, .bf-event-card, .scroll-reveal {
    transform: translateY(34px) scale(0.975);
}
.sr-auto { transform: translateY(24px) scale(0.99); }

/* Görünür olduktan sonra hover geçişleri yaylı cubic-bezier ile hızlanır */
.company-card.visible, .fleet-card.visible, .ref-item.visible,
.pricing-card.visible, .info-tile.visible, .bf-event-card.visible {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s ease;
}

/* Kart içi görsellerde yumuşak yakınlaşma (micro-zoom) */
.card-img, .fleet-img { transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.fleet-card:hover .fleet-img { transform: scale(1.06); }
.neden-img, .atmos-img-left, .atmos-img-right, .atmos-img-third {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
.t-feature-item:hover .neden-img { transform: scale(1.04); }
.atmos-img-left:hover, .atmos-img-right:hover, .atmos-img-third:hover { transform: scale(1.02); }


/* ################################################################## */
/* #####  5. BÖLÜM BAŞLIKLARI — alt çizgi büyüme animasyonu       ### */
/* ################################################################## */

h2.section-title { position: relative; padding-bottom: 14px; }
h2.section-title::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 0;
    width: 64px; height: 4px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.85;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.8s 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
h2.section-title.visible::after { transform: translateX(-50%) scaleX(1); }


/* ################################################################## */
/* #####  5B. BAŞLIK İKİ RENK AYRIMI — tüm sayfa header başlıkları ## */
/* #####  Yapı: <h1><span class="header-title-part1">..</span>     ## */
/* #####        <span class="header-title-part2">..</span></h1>    ## */
/* #####  Renkler geçici (placeholder); müşteri sonra değiştirecek ## */
/* ################################################################## */

.page-hero .header-title-part1,
.home-hero .header-title-part1,
.coming-soon-content .header-title-part1 { color: #f7f7f7; }

.page-hero .header-title-part2,
.home-hero .header-title-part2,
.coming-soon-content .header-title-part2 { color: #e31c24; }

/* Altın temalı sayfalar (düğün + kahvaltı): ikinci parça altın */
body.page-wedding .page-hero .header-title-part2,
body.page-breakfast .page-hero .header-title-part2 { color: #bb9944; }


/* ################################################################## */
/* #####  6. ANA SAYFA SLIDER — sinematik Ken Burns yakınlaşması  ### */
/* ################################################################## */

.home-hero .slide {
    transition: opacity 1s ease-in-out, transform 7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
}
.home-hero .slide.active { transform: scale(1.045); }


/* ################################################################## */
/* #####  7. GLASSMORPHISM — koyu zeminli kartlarda buzlu cam     ### */
/* ################################################################## */

body.page-breakfast .pricing-card,
body.page-breakfast .info-tile,
body.page-breakfast .bf-event-card,
body.page-breakfast .intro-badge,
body.page-breakfast .breakfast-why-besyildiz .t-feature-item {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}


/* ################################################################## */
/* #####  8. YÜZEN (FLOAT) EFEKT — dikkat çekici sabit öğeler     ### */
/* ################################################################## */

@keyframes fxFloatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}


/* ################################################################## */
/* #####  9. ERİŞİLEBİLİRLİK — hareket azaltma tercihi            ### */
/* ################################################################## */

@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;
    }
    .cursor-dot, .cursor-ring, .cursor-spark, .cursor-ripple { display: none !important; }
    .hsa-chevron { animation: none !important; opacity: 0.9; }
}
