/**
 * ANIMACOES COMEMORATIVAS - CSS Completo
 * Estilos para todas as animacoes sazonais
 * Responsivo e otimizado para performance
 */

/* =====================================================
   VARIAVEIS
   ===================================================== */
:root {
    --anim-cor1: #FF6B00;
    --anim-cor2: #FFFFFF;
    --anim-cor3: #00FF00;
}

/* =====================================================
   CONTAINER PRINCIPAL
   ===================================================== */
.animacao-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.animacao-container.apenas-topo {
    height: 50vh;
}

.animacao-container.laterais {
    width: 100%;
}

/* =====================================================
   OVERLAY DE TEMA
   ===================================================== */
.tema-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.12;
    transition: opacity 1s ease;
}

/* Temas de Cores */
.tema-copa {
    background: linear-gradient(135deg, rgba(0, 128, 0, 0.4) 0%, rgba(255, 215, 0, 0.4) 50%, rgba(0, 128, 0, 0.4) 100%);
}

.tema-brasil {
    background: linear-gradient(135deg, rgba(0, 155, 59, 0.4) 0%, rgba(255, 223, 0, 0.4) 50%, rgba(0, 39, 118, 0.3) 100%);
}

.tema-natal {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.3) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(0, 128, 0, 0.3) 100%);
}

.tema-anonovo {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(255, 215, 0, 0.4) 100%);
}

.tema-carnaval {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.3) 0%, rgba(255, 215, 0, 0.3) 33%, rgba(0, 255, 0, 0.3) 66%, rgba(0, 191, 255, 0.3) 100%);
}

.tema-pascoa {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3) 0%, rgba(255, 215, 0, 0.3) 50%, rgba(135, 206, 235, 0.3) 100%);
}

.tema-halloween {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(128, 0, 128, 0.3) 100%);
}

.tema-namorados {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.3) 0%, rgba(255, 105, 180, 0.3) 50%, rgba(255, 182, 193, 0.3) 100%);
}

.tema-blackfriday {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(255, 215, 0, 0.3) 100%);
}

/* =====================================================
   ANIMACOES KEYFRAMES
   ===================================================== */

/* Confetti */
@keyframes confetti-fall {
    0% {
        transform: translateY(-10px) rotateZ(0deg) rotateY(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotateZ(720deg) rotateY(360deg);
        opacity: 0;
    }
}

/* Fogos de Artificio */
@keyframes particle-burst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Neve */
@keyframes snowfall {
    0% {
        transform: translateY(-10px) translateX(0) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(50vh) translateX(var(--drift, 20px)) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(calc(var(--drift, 20px) * -1)) rotate(360deg);
        opacity: 0;
    }
}

/* Coracoes Flutuando */
@keyframes heart-float {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-50vh) scale(1.2) rotate(15deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(0.8) rotate(-15deg);
        opacity: 0;
    }
}

/* Bolas Caindo */
@keyframes ball-fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Estrelas Caindo */
@keyframes star-fall {
    0% {
        transform: translateY(-10px) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Estrelas Brilhando */
@keyframes star-twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Folhas Caindo */
@keyframes leaf-fall {
    0% {
        transform: translateY(-10px) translateX(0) rotateZ(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(var(--drift, 50px)) rotateZ(360deg);
        opacity: 0;
    }
}

/* Baloes Subindo */
@keyframes balloon-rise {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh) translateX(var(--drift, 30px)) rotate(var(--rotate, 10deg));
        opacity: 0;
    }
}

/* Dinheiro Caindo */
@keyframes money-fall {
    0% {
        transform: translateY(-10px) rotateX(0deg) rotateY(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotateX(720deg) rotateY(360deg);
        opacity: 0;
    }
}

/* Halloween - Voando */
@keyframes halloween-fly {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(-50px);
        opacity: 0;
    }
}

/* Particulas Flutuantes */
@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.5;
    }
    25% {
        transform: translateY(-30px) translateX(15px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-15px) translateX(-15px);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-45px) translateX(10px);
        opacity: 0.8;
    }
}

/* Gradiente Animado */
@keyframes gradiente-mover {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Pulse */
@keyframes pulse {
    0%, 100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.25;
    }
}

/* =====================================================
   ELEMENTOS
   ===================================================== */
.confetti-piece {
    position: fixed;
    pointer-events: none;
}

.firework-particle {
    position: fixed;
    pointer-events: none;
    box-shadow: 0 0 6px currentColor;
}

.snowflake,
.heart,
.star,
.leaf,
.balloon,
.money,
.soccer-ball,
.emoji-element {
    position: fixed;
    pointer-events: none;
    user-select: none;
}

.particle {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
}

/* =====================================================
   RESPONSIVO
   ===================================================== */
@media (max-width: 768px) {
    .emoji-element {
        font-size: 1.2rem !important;
    }
    
    .confetti-piece {
        width: 5px !important;
        height: 5px !important;
    }
    
    .firework-particle {
        width: 4px !important;
        height: 4px !important;
    }
    
    .particle {
        width: 4px !important;
        height: 4px !important;
    }
}

@media (max-width: 480px) {
    .emoji-element {
        font-size: 1rem !important;
    }
    
    .confetti-piece {
        width: 4px !important;
        height: 4px !important;
    }
}

/* =====================================================
   ACESSIBILIDADE
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    .animacao-container *,
    .tema-overlay {
        animation: none !important;
        transition: none !important;
    }
    
    .animacao-container {
        display: none !important;
    }
    
    .tema-overlay {
        display: none !important;
    }
}

/* =====================================================
   UTILITARIOS
   ===================================================== */
.animacao-fadeout {
    animation: fadeout 1s ease forwards !important;
}

@keyframes fadeout {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
