/* assets/css/animations.css - High-Octane Athletic Animations */

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 85, 0, 0.4), 0 0 30px rgba(255, 85, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 85, 0, 0.8), 0 0 50px rgba(255, 85, 0, 0.4);
    }
}

@keyframes radarPing {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

@keyframes floatSmooth {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(0.5deg);
    }
}

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

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

@keyframes countdownFlip {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes ribbonSlide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0.92);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* Reusable animation utility classes */
.animate-pulse-glow {
    animation: pulseGlow 2.5s infinite ease-in-out;
}

.animate-float {
    animation: floatSmooth 4s infinite ease-in-out;
}

.animate-radar {
    position: relative;
}
.animate-radar::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    border: 2px solid var(--rh-orange);
    animation: radarPing 2s infinite cubic-bezier(0, 0, 0.2, 1);
    pointer-events: none;
}

.animate-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Micro-interaction hover transitions */
.btn-athletic {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-athletic:active {
    transform: scale(0.97);
}

.btn-athletic::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.2) 50%,
        rgba(255, 255, 255, 0) 80%
    );
    transform: rotate(25deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-athletic:hover::after {
    transform: rotate(25deg) translateX(100%);
}
