/* ==========================================================================
   DmPlay - Animations & Micro-Interactions
   ========================================================================== */

/* Shimmer / Glow Effects */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 69, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 69, 0, 0.75);
    }
}

.pulse-glow {
    animation: pulseGlow 2.5s infinite;
}

/* Button Light Sweep Effect */
.btn-primary,
.btn-gold {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-gold::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 80%
    );
    transform: rotate(30deg) translateY(-100%);
    animation: sweep 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes sweep {
    0% {
        transform: rotate(30deg) translateY(-120%);
    }
    30%, 100% {
        transform: rotate(30deg) translateY(120%);
    }
}

/* Float / Levitation Animation */
@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.floating-anim {
    animation: floating 4s ease-in-out infinite;
}

/* Live Badge Ping */
@keyframes pingDot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(0, 230, 118, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}

.hero-pill .dot {
    animation: pingDot 2s infinite;
}

/* Win Counter Flash */
@keyframes winFlash {
    0% { opacity: 0.3; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.flash-number {
    animation: winFlash 0.5s ease-out;
}
