/* =========================================
   ANATOLIA RESTAURANT - FINAL BANNER CSS
   ========================================= */

.banner-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    /* 4 Resim x 8 Saniye = 32 Saniye */
    animation: slideShow 32s infinite linear;
    will-change: opacity;
}

/* İlk açılışta siyah ekranı engellemek için */
.banner-slide:first-child {
    opacity: 1;
}

/* --- ZAMANLAMALAR (4 RESİM İÇİN) --- */
.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; }

/* --- KUSURSUZ DÖNGÜ (Siyahlıkları Yok Eden Yüzdeler) --- */
@keyframes slideShow {
    0% { opacity: 0; transform: scale(1); }
    /* İlk 1 saniyede resim belirir */
    4% { opacity: 1; }
    /* 8. saniyeye kadar (%25) ekranda kalır */
    25% { opacity: 1; transform: scale(1.05); }
    /* Bir sonraki resim başlarken (%25), bu resim %29'a kadar yavaşça kararır */
    29% { opacity: 0; transform: scale(1.05); }
    /* Döngünün geri kalanında gizli kalır */
    100% { opacity: 0; }
}

/* --- OVERLAY VE İÇERİK --- */
.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.banner-hero-center {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding-bottom: 150px;
}

.hero-title-main {
    font-family: 'Cinzel Decorative', cursive;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.9);
    animation: letter-join 1.5s ease-out both;
}

.hero-reservation-btn {
    padding: 1rem 3rem;
    background-color: rgba(235, 0, 41, 0.85);
    border: 1px solid #EB0029;
    color: #fff !important;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    transition: 0.3s;
}

/* Giriş Efekti */
@keyframes letter-join {
    0% { letter-spacing: 0.5em; opacity: 0; filter: blur(10px); }
    100% { letter-spacing: 0.1em; opacity: 1; filter: blur(0); }
}

/* Mobil Ayarlar */
@media (max-width: 768px) {
    .banner-carousel { height: 85vh; }
    .banner-hero-center { padding-bottom: 60px; }
    .hero-title-main { font-size: 26px; }
}
