/* =============================================
   DAVRAZ KAYAK MERKEZİ - ANİMASYONLAR
   ============================================= */

/* =============================================
   SCROLL ANİMASYONLARI (Intersection Observer)
   ============================================= */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0) scale(1) !important;
}

/* Fade Up */
[data-animate="fade-up"] {
    transform: translateY(40px);
}

/* Fade Down */
[data-animate="fade-down"] {
    transform: translateY(-40px);
}

/* Fade Left */
[data-animate="fade-left"] {
    transform: translateX(-40px);
}

/* Fade Right */
[data-animate="fade-right"] {
    transform: translateX(40px);
}

/* Scale Up */
[data-animate="scale-up"] {
    transform: scale(0.9);
}

/* Fade In */
[data-animate="fade-in"] {
    transform: none;
}

/* Gecikmeli animasyonlar */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }
[data-delay="700"] { transition-delay: 0.7s; }
[data-delay="800"] { transition-delay: 0.8s; }

/* =============================================
   PARALLAX
   ============================================= */
.parallax-bg {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* =============================================
   SAYAÇ ANİMASYONU
   ============================================= */
.counter-animate {
    display: inline-block;
}

/* =============================================
   HOVER ANİMASYONLARI
   ============================================= */

/* Kart hover shimmer efekti */
.shimmer-hover {
    position: relative;
    overflow: hidden;
}

.shimmer-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.shimmer-hover:hover::before {
    left: 150%;
}

/* Glow efekti */
.glow-hover {
    transition: box-shadow var(--transition-base);
}

.glow-hover:hover {
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.15);
}

/* =============================================
   PULSE ANİMASYONU (Canlı Yayın)
   ============================================= */
.pulse {
    position: relative;
}

.pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #e74c3c;
    border-radius: 50%;
    animation: pulse-animation 2s ease-in-out infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* =============================================
   KAR YAĞIŞI ANİMASYONU (İsteğe bağlı)
   ============================================= */
.snowfall {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1em;
    animation: snowfall-fall linear infinite;
    user-select: none;
}

@keyframes snowfall-fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0.2;
    }
}

/* =============================================
   SKELETON LOADING
   ============================================= */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-bg-card) 25%,
        rgba(255, 255, 255, 0.05) 50%,
        var(--color-bg-card) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =============================================
   PAGE TRANSITION
   ============================================= */
.page-transition {
    animation: pageIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }

    .hero-title .line span {
        transform: none;
        animation: none;
    }
}
