/* ========================================================
   TerraGourmet - Sayfa Geçiş Animasyonları & Mikro Efektler
   ======================================================== */

/* ========================================================
   ÖZEL SAYFA GEÇİŞ PERDESİ (GOURMET FLUID WIPE)
   ======================================================== */
.page-transition-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

.curtain-layer-back,
.curtain-layer-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(100%);
    transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
}

.curtain-layer-back {
    background: #245A36; /* Orta yeşil ara katman */
    transition-delay: 0.05s;
}

.curtain-layer-front {
    background: #184126; /* Ana derin botanik yeşili */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.curtain-logo-badge {
    opacity: 0;
    transform: scale(0.7) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.curtain-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #E7A753 0%, #C58B38 100%);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(197, 139, 56, 0.4);
    animation: emblemPulse 1.8s ease-in-out infinite alternate;
}

.curtain-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFF;
    letter-spacing: 0.02em;
}

.curtain-loader-line {
    width: 120px;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.curtain-loader-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #E7A753;
    animation: loaderSlide 1.2s infinite ease-in-out;
}

/* Geçiş Başlangıcı (Yukarı Çıkış) */
.page-transition-curtain.active-in {
    visibility: visible;
    pointer-events: all;
}

.page-transition-curtain.active-in .curtain-layer-back,
.page-transition-curtain.active-in .curtain-layer-front {
    transform: translateY(0%);
}

.page-transition-curtain.active-in .curtain-logo-badge {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition-delay: 0.3s;
}

/* Geçiş Bitişi (Yukarıdan Sıyrılarak Kayboluş) */
.page-transition-curtain.active-out .curtain-layer-back,
.page-transition-curtain.active-out .curtain-layer-front {
    transform: translateY(-100%);
}

.page-transition-curtain.active-out .curtain-logo-badge {
    opacity: 0;
    transform: scale(1.1) translateY(-20px);
}

/* ========================================================
   KEYFRAME ANİMASYONLARI
   ======================================================== */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes floatSlow {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-12px) rotate(2deg);
    }
}

@keyframes emblemPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(197, 139, 56, 0.4);
    }
    100% {
        transform: scale(1.08);
        box-shadow: 0 14px 40px rgba(197, 139, 56, 0.6);
    }
}

@keyframes loaderSlide {
    0% {
        left: -100%;
    }
    50% {
        left: 0%;
    }
    100% {
        left: 100%;
    }
}

/* Scroll ile Açılma Animasyonları (Reveal) */
.reveal-item {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Yumuşak Pulse Rozet Animasyonu */
.pulse-badge {
    animation: floatSlow 4s ease-in-out infinite alternate;
}
