/* =========================================
   BANNER BÖLÜMÜ STİLLERİ (FINAL & OPTİMİZE)
   ========================================= */

/* 1. Banner İskeleti */
.banner-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000; /* Resimler yüklenirken zemin siyah kalsın */
}

/* Arka Plan Resim Ayarları */
.banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0; /* Hepsi gizli başlar, animasyonla açılır */

    /* HESAPLAMA: 6 Resim x 8 Saniye = 48 Saniye Döngü */
    animation: slideShow 48s infinite;
}

/* --- RESİM ZAMANLAMALARI (GECİKMELER) --- */
/* Her resim 8 saniye arayla devreye girer */
.banner-slide:nth-child(1) { animation-delay: 0s; }
.banner-slide:nth-child(2) { animation-delay: 8s; }
.banner-slide:nth-child(3) { animation-delay: 16s; }
.banner-slide:nth-child(4) { animation-delay: 24s; }
.banner-slide:nth-child(5) { animation-delay: 32s; }
.banner-slide:nth-child(6) { animation-delay: 40s; }

/* Siyah Perde (Overlay) - %25 Opaklık (Aydınlık) */
.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.20);
    z-index: 1;
}

/* 2. İçerik Hizalama (Yazı ve Buton) */
.banner-hero-center {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;

    /* İçeriği en alta yasla */
    justify-content: flex-end;

    align-items: center;
    text-align: center;
    padding: 0 1.5rem;

    /* Masaüstünde alttan boşluk (Yeşil kare hizası) */
    padding-bottom: 150px;
}

/* 3. Ana Başlık Stili */
.hero-title-main {
    font-family: 'Cinzel Decorative', cursive;
    font-weight: 700;

    /* Masaüstü boyut ayarı */
    font-size: clamp(2.2rem, 4vw, 3.2rem);

    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 2rem;

    /* Işıltılı Gölge */
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.7),
    0 0 18px rgba(255, 255, 255, 0.65),
    0 12px 26px rgba(0, 0, 0, 0.9);

    /* Sinematik Giriş Animasyonu */
    animation: letter-join 1.5s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

/* 4. BUTON STİLİ (KIRMIZI ŞEFFAF / RED GLASS EFFECT) */
.hero-reservation-btn {
    padding: 0.9rem 2.6rem;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 6px;

    /* ŞEFFAFLIK AYARI: %65 Kırmızı */
    background-color: rgba(235, 0, 41, 0.65);

    /* Kenarlık: %80 Kırmızı */
    border: 1px solid rgba(235, 0, 41, 0.8);

    color: #ffffff !important;
    backdrop-filter: blur(4px); /* Buzlu cam etkisi */

    /* Animasyonlar */
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease 1s backwards;
}

/* Mouse ile üzerine gelince (Hover) - Tam Kırmızı */
.hero-reservation-btn:hover {
    background-color: #EB0029;
    border-color: #EB0029;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(235, 0, 41, 0.3);
}

.hero-reservation-btn i {
    transition: margin-left 0.3s;
}

.hero-reservation-btn:hover i {
    margin-left: 15px;
}

/* =========================================
   ANİMASYONLAR (KEYFRAMES - DÜZELTİLDİ)
   ========================================= */

/* SLIDER MANTIĞI (6 Resim İçin Döngü):
   0% - 4%   : Giriş (Fade In)
   4% - 17%  : Ekranda Kalma
   17% - 22% : Çıkış (Fade Out)
   22% - 100%: Bekleme (Gizli)
*/
@keyframes slideShow {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    4% {
        opacity: 1;
        transform: scale(1);
    }
    17% {
        opacity: 1;
        transform: scale(1.10); /* Hafif zoom */
    }
    22% {
        opacity: 0;
        transform: scale(1.10);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* Başlık Harf Birleşme */
@keyframes letter-join {
    0% {
        letter-spacing: 0.8em;
        opacity: 0;
        filter: blur(12px);
        transform: translateZ(-100px);
    }
    40% { opacity: 0.6; }
    100% {
        letter-spacing: 0.15em;
        opacity: 1;
        filter: blur(0);
        transform: translateZ(0);
    }
}

/* Buton Alttan Gelme */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   MOBİL UYUMLULUK (Telefon Ayarları)
   ========================================= */
@media (max-width: 768px) {

    /* 1. Banner Yüksekliği */
    .banner-carousel {
        height: 85vh;
    }

    /* 2. İçerik Konumu (Mobilde biraz daha aşağıda) */
    .banner-hero-center {
        padding-bottom: 40px;
    }

    /* 3. BAŞLIK AYARI (İnce ve Okunaklı) */
    .hero-title-main {
        font-size: 28px !important;
        font-weight: 500 !important;
        letter-spacing: 1px !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
    }

    /* 4. BUTON AYARI (Mobil) */
    .hero-reservation-btn {
        padding: 10px 24px !important;
        font-size: 11px !important;
        letter-spacing: 0.5px !important;
        line-height: 1;

        /* Mobilde de aynı Kırmızı Şeffaflık */
        background-color: rgba(235, 0, 41, 0.30) !important;
        border: 1px solid rgba(235, 0, 41, 0.8) !important;
    }

    .hero-reservation-btn i {
        font-size: 10px !important;
        margin-left: 4px !important;
    }
}
