/**
 * SantaCall - Christmas Magic Effects
 * Animações e efeitos visuais natalinos
 */

/* ===== CORES MÁGICAS ===== */
:root {
    /* Paleta Natalina */
    --christmas-red: #C41E3A;
    --christmas-green: #165B33;
    --christmas-gold: #FFD700;
    --christmas-white: #FFFAFA;
    --magic-purple: #8B008B;
    --ice-blue: #87CEEB;
    --silver: #C0C0C0;
    --amber: #FFBF00;
    
    /* Gradientes Mágicos */
    --gradient-hero: radial-gradient(circle at center, #FFD700 0%, #C41E3A 50%, #4B0082 100%);
    --gradient-section-1: linear-gradient(135deg, #165B33 0%, #FFFAFA 100%);
    --gradient-section-2: linear-gradient(135deg, #C41E3A 0%, #FFC0CB 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,215,0,0.1), rgba(196,30,58,0.1));
}

/* ===== NEVE CAINDO ===== */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: fall linear infinite;
    user-select: none;
}

@keyframes fall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(var(--drift)) rotate(360deg);
        opacity: 0.8;
    }
}

/* Camadas de neve com velocidades diferentes */
.snowflake.slow { animation-duration: 15s; }
.snowflake.medium { animation-duration: 10s; }
.snowflake.fast { animation-duration: 6s; }

/* Tamanhos de flocos */
.snowflake.small { font-size: 0.8em; opacity: 0.6; }
.snowflake.large { font-size: 1.5em; opacity: 0.9; }

/* ===== PARTÍCULAS BRILHANTES ===== */
.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
}

/* ===== LUZES DE NATAL - REMOVIDAS ===== */
/* Luzes piscando foram removidas a pedido do usuário */

/* ===== CONTADOR REGRESSIVO PARA O NATAL ===== */
.christmas-countdown {
    background: linear-gradient(135deg, #C41E3A 0%, #8B008B 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.christmas-countdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.3)"/><circle cx="40" cy="30" r="1.5" fill="rgba(255,255,255,0.2)"/><circle cx="70" cy="20" r="1" fill="rgba(255,255,255,0.4)"/><circle cx="30" cy="60" r="1" fill="rgba(255,255,255,0.3)"/><circle cx="90" cy="50" r="1.5" fill="rgba(255,255,255,0.2)"/><circle cx="50" cy="80" r="1" fill="rgba(255,255,255,0.3)"/></svg>');
    background-size: 200px 200px;
    opacity: 0.5;
    animation: starfield 120s linear infinite;
}

@keyframes starfield {
    0% { background-position: 0 0; }
    100% { background-position: 200px 200px; }
}

.countdown-content {
    position: relative;
    z-index: 1;
}

.countdown-title {
    text-align: center;
    color: #FFD700;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    50% { text-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.6); }
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.countdown-unit {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.countdown-unit:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.4);
}

.countdown-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #FFD700;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    animation: number-flip 0.6s ease;
}

@keyframes number-flip {
    0% { transform: rotateX(0deg); }
    50% { transform: rotateX(90deg); opacity: 0; }
    100% { transform: rotateX(0deg); opacity: 1; }
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFAFA;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== CURSOR TRAIL (DESKTOP) ===== */
.star-trail {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    font-size: 1.5rem;
    color: #FFD700;
    animation: star-fade 1s ease-out forwards;
}

@keyframes star-fade {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) rotate(180deg) translateY(-20px);
    }
}

/* ===== GLOW EFFECTS ===== */
.glow-gold {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5),
                0 0 40px rgba(255, 215, 0, 0.3);
}

.glow-red {
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.5),
                0 0 40px rgba(196, 30, 58, 0.3);
}

.glow-green {
    box-shadow: 0 0 20px rgba(22, 91, 51, 0.5),
                0 0 40px rgba(22, 91, 51, 0.3);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SPARKLE ANIMATION ===== */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    animation: sparkle 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px #FFD700;
}

/* ===== BORDA BRILHANTE ANIMADA ===== */
@keyframes border-glow {
    0%, 100% {
        border-color: rgba(255, 215, 0, 0.5);
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    50% {
        border-color: rgba(255, 215, 0, 1);
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8),
                    0 0 50px rgba(255, 215, 0, 0.4);
    }
}

.magic-border {
    animation: border-glow 2s ease-in-out infinite;
}

/* ===== PULSE ANIMATION ===== */
@keyframes magic-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.pulse-magic {
    animation: magic-pulse 2s ease-in-out infinite;
}

/* ===== FLOAT ANIMATION ===== */
@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-gentle {
    animation: float-gentle 6s ease-in-out infinite;
}

/* ===== SHIMMER EFFECT ===== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.3) 50%,
        transparent 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* ===== ESTRELAS CINTILANTES ===== */
.stars-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px white;
    animation: twinkle-star 3s ease-in-out infinite;
}

@keyframes twinkle-star {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* ===== RIPPLE EFFECT ===== */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* ===== DECORAÇÕES DE NATAL ===== */
.ornament {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C41E3A 0%, #8B008B 100%);
    box-shadow: 0 0 15px rgba(196, 30, 58, 0.6),
                inset -5px -5px 10px rgba(0, 0, 0, 0.3);
    animation: swing 4s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.ornament::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #FFD700;
    border-radius: 50%;
}

/* ===== GUIRLANDA DECORATIVA ===== */
.garland {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        #165B33 0px,
        #165B33 20px,
        #C41E3A 20px,
        #C41E3A 40px,
        #FFD700 40px,
        #FFD700 60px
    );
    opacity: 0.3;
}

/* ===== BACKGROUNDS MÁGICOS ===== */
.magic-hero-bg {
    background: radial-gradient(
        ellipse at top,
        rgba(255, 215, 0, 0.15) 0%,
        rgba(196, 30, 58, 0.1) 50%,
        rgba(75, 0, 130, 0.05) 100%
    );
    position: relative;
}

.magic-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(196, 30, 58, 0.1) 0%, transparent 50%);
    animation: magic-shift 15s ease-in-out infinite;
}

@keyframes magic-shift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ===== CONFETTI EFFECT ===== */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #FFD700;
    top: -10px;
    animation: confetti-fall 5s linear infinite;
    pointer-events: none;
    z-index: 9999;
}

/* ===== EFEITO DE BRILHO NO HOVER ===== */
.magic-card-hover {
    position: relative;
    transition: all 0.3s ease;
}

.magic-card-hover::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #FFD700, 
        #C41E3A, 
        #165B33, 
        #8B008B,
        #FFD700
    );
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradient-rotate 3s linear infinite;
}

.magic-card-hover:hover::before {
    opacity: 1;
}

@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== ÍCONES ANIMADOS ===== */
.animated-icon {
    display: inline-block;
    animation: icon-bounce 2s ease-in-out infinite;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    .snowflake {
        font-size: 0.8em;
    }
    
    .christmas-lights {
        height: 15px;
        padding: 0 1rem;
    }
    
    .light {
        width: 8px;
        height: 8px;
    }
    
    .countdown-title {
        font-size: 2rem;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .countdown-timer {
        gap: 1rem;
    }
    
    .countdown-unit {
        min-width: 90px;
        padding: 1rem 1.5rem;
    }
    
    /* Reduzir partículas em mobile */
    .particles-canvas {
        opacity: 0.5;
    }
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .snowflake,
    .light,
    .countdown-number,
    .star,
    .confetti,
    .ornament,
    .animated-icon {
        animation: none !important;
    }
    
    .magic-card-hover::before {
        animation: none !important;
    }
}

