/**
 * ANIMATIONS - SkalRO
 * Animações fluidas e épicas para o tema Viking
 */

/* =============================================
   ANIMAÇÕES DE ENTRADA
   ============================================= */

   @keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

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

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

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

/* =============================================
   ANIMAÇÕES DE PULSO E BRILHO
   ============================================= */

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(212, 175, 55, 0.5),
            0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(212, 175, 55, 0.8),
            0 0 30px rgba(212, 175, 55, 0.5),
            0 0 40px rgba(212, 175, 55, 0.3);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* =============================================
   ANIMAÇÕES DE LOADING
   ============================================= */

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* =============================================
   ANIMAÇÕES DE CONTADOR
   ============================================= */

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes numberPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: var(--viking-gold-light);
    }
    100% {
        transform: scale(1);
    }
}

/* =============================================
   ANIMAÇÕES DE FOGO/BRASAS
   ============================================= */

@keyframes flicker {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    25% {
        opacity: 0.9;
        filter: brightness(1.1);
    }
    50% {
        opacity: 0.95;
        filter: brightness(0.95);
    }
    75% {
        opacity: 0.92;
        filter: brightness(1.05);
    }
}

@keyframes ember {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(var(--drift));
        opacity: 0;
    }
}

@keyframes fireGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(212, 175, 55, 0.4),
            0 0 40px rgba(212, 175, 55, 0.2);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(212, 175, 55, 0.6),
            0 0 60px rgba(212, 175, 55, 0.3),
            0 0 80px rgba(212, 175, 55, 0.1);
    }
}

/* =============================================
   CLASSES DE ANIMAÇÃO
   ============================================= */

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.6s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease forwards;
}

.animate-slideUp {
    animation: slideUp 0.6s ease forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.5s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease infinite;
}

.animate-pulseGlow {
    animation: pulseGlow 2s ease infinite;
}

.animate-glow {
    animation: glow 2s ease infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-bounce {
    animation: bounce 1s ease infinite;
}

.animate-flicker {
    animation: flicker 3s ease infinite;
}

/* =============================================
   DELAYS PARA ANIMAÇÕES EM SEQUÊNCIA
   ============================================= */

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

/* =============================================
   TRANSIÇÕES SUAVES
   ============================================= */

.transition-all {
    transition: all 0.3s ease;
}

.transition-fast {
    transition: all 0.2s ease;
}

.transition-slow {
    transition: all 0.5s ease;
}

/* =============================================
   HOVER EFFECTS
   ============================================= */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    border-color: var(--viking-gold-light);
}

/* =============================================
   LOADING SPINNER
   ============================================= */

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top-color: var(--viking-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner-large {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

/* =============================================
   LOADING DOTS
   ============================================= */

.loading-dots::after {
    content: '.';
    animation: dots 1.5s steps(3, end) infinite;
}

/* =============================================
   PREFERENCES DE MOVIMENTO REDUZIDO
   ============================================= */

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

