/**
 * MuSyphid Template 8 - MU LEGACY 99B
 * Animaciones personalizadas
 */

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel,
.content-area,
.sidebar {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Pulse Glow */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(212,175,55,0.3);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 25px rgba(212,175,55,0.5);
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Border Glow Animation */
@keyframes borderGlow {
    0%, 100% {
        border-color: var(--gold);
        box-shadow: 0 0 5px rgba(212,175,55,0.1);
    }
    50% {
        border-color: var(--gold-light);
        box-shadow: 0 0 15px rgba(212,175,55,0.3);
    }
}

/* Button Shine Effect */
@keyframes buttonShine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.btn::before {
    animation: buttonShine 2s infinite;
}

/* Progress Bar Animation */
@keyframes progressFill {
    from {
        width: 0%;
    }
}

.online-bar {
    animation: progressFill 1.5s ease-out;
}

/* Panel Hover Lift */
.panel:hover,
.sidebar:hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth Page Transitions */
body {
    transition: opacity 0.3s ease;
}

/* Stat Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: countUp 0.6s ease-out;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Navbar Hover Effect */
.nav-center .ms-navbar li a {
    transition: all 0.3s ease;
}

.nav-center .ms-navbar li a::after {
    transition: all 0.3s ease;
}

/* Hero Section Animation */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content {
    animation: heroFadeIn 1s ease-out;
}

/* Ticker Animation */
@keyframes tickerSlide {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Hover Effects */
.sidebar-banner img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glitch Effect for Title */
@keyframes glitch {
    0%, 100% {
        text-shadow: 0 0 20px rgba(212,175,55,0.5);
    }
    25% {
        text-shadow: -2px 0 var(--green), 2px 0 var(--brown);
    }
    50% {
        text-shadow: 2px 0 var(--green), -2px 0 var(--brown);
    }
    75% {
        text-shadow: -2px 0 var(--brown), 2px 0 var(--green);
    }
}

.hero-title:hover {
    animation: glitch 0.3s ease-in-out;
}

/* Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Stagger Animation */
@keyframes staggerIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Skeleton */
@keyframes skeleton {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

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

.stat-icon {
    animation: float 3s ease-in-out infinite;
}

/* Glow Pulse */
@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 5px currentColor);
    }
    50% {
        filter: drop-shadow(0 0 15px currentColor);
    }
}

.online-icon {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Scale Animation */
@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Slide In */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.sidebar-left {
    animation: slideInLeft 0.6s ease-out;
    animation-fill-mode: both;
}

.sidebar-right {
    animation: slideInRight 0.6s ease-out;
    animation-fill-mode: both;
}
