/* ============================================
   BANDITOS SOCIAL CASINO — ANIMATIONS.CSS
   Keyframes, transitions, and ambient effects
   ============================================ */

/* ── KEYFRAMES ── */

@keyframes dustFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) translateX(80px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes winPulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
        border-color: rgba(212, 175, 55, 0.6);
    }
    50% {
        box-shadow: 0 0 28px rgba(212, 175, 55, 0.7);
        border-color: rgba(212, 175, 55, 1);
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes reelSpin {
    0% { transform: translateY(0); }
    25% { transform: translateY(-10px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(8px); }
    100% { transform: translateY(0); }
}

@keyframes goldShimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

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

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    }
}

@keyframes overlaySlide {
    from {
        right: -100%;
    }
    to {
        right: 0;
    }
}

/* ── SCROLL ANIMATIONS ── */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays */
[data-delay="0"] { transition-delay: 0ms; }
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="150"] { transition-delay: 150ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }

/* ── AMBIENT ANIMATIONS ── */

/* Hero slot frame float */
.hero-slot-frame {
    animation: floatUp 4s ease-in-out infinite;
}

/* Game container border pulse */
.game-container {
    animation: borderGlow 4s ease-in-out infinite;
}

/* Logo shimmer */
.logo-text {
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
}

/* Win row reel pulse */
.win-row .reel-cell:nth-child(1) {
    animation-delay: 0s;
}
.win-row .reel-cell:nth-child(2) {
    animation-delay: 0.2s;
}
.win-row .reel-cell:nth-child(3) {
    animation-delay: 0.4s;
}

/* ── HOVER MICRO-INTERACTIONS ── */

.feature-card,
.testimonial-card,
.value-card,
.principle-card,
.resource-card,
.rules-block {
    will-change: transform;
}

/* ── BUTTON RIPPLE EFFECT ── */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.btn:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
}

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

    .fade-in-up,
    .fade-in-right,
    .fade-in-left {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-slot-frame {
        animation: none;
    }

    .game-container {
        animation: none;
    }
}