/*
 * KILLORIA BATTLE - Animations Stylesheet
 * Custom CSS animations and hardware-accelerated transitions
 */

/* ==========================================
   BUTTON & LINK GLOWS
   ========================================== */
@keyframes primary-glow-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(139, 92, 246, 0.7), 0 0 15px rgba(0, 216, 255, 0.4);
    }
    100% {
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    }
}

.btn-primary.glow-loop {
    animation: primary-glow-pulse 3s infinite ease-in-out;
}

@keyframes pulse-accent-glow {
    0% {
        box-shadow: 0 0 10px rgba(0, 216, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 216, 255, 0.6);
        border-color: rgba(0, 216, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 10px rgba(0, 216, 255, 0.2);
    }
}

.glow-accent-loop {
    animation: pulse-accent-glow 2.5s infinite ease-in-out;
}

/* ==========================================
   INTERSECTION OBSERVER REVEAL EFFECTS
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* Sequential delays for child reveals */
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ==========================================
   MICRO-INTERACTIONS & FLOATS
   ========================================== */
/* Floating visual elements (e.g. Hero Image, Badges) */
@keyframes float-slow {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0px);
    }
}

.float-slow {
    animation: float-slow 6s infinite ease-in-out;
}

@keyframes float-medium {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(1deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.float-medium {
    animation: float-medium 4.5s infinite ease-in-out;
}

/* Glass card active hover shimmer effect */
.glass-panel {
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}

.glass-panel:hover::before {
    left: 150%;
}

/* ==========================================
   BUTTON RIPPLE EFFECT
   ========================================== */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-effect 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
