/* ============================================
   TEMA DE NATAL - BACKGROUND
   Elementos visuais natalinos no fundo
   ============================================ */

body {
    position: relative;
    overflow-x: hidden;
}

/* Fundo com gradiente natalino */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(200, 16, 46, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(34, 139, 34, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, #0A0A0A 0%, #0F0F0F 50%, #0A0A0A 100%);
    z-index: -2;
    pointer-events: none;
}

/* Padrão de textura natalina */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 215, 0, 0.01) 2px,
            rgba(255, 215, 0, 0.01) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(34, 139, 34, 0.01) 2px,
            rgba(34, 139, 34, 0.01) 4px
        );
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

/* Flocos de neve animados */
@keyframes snowflake-fall {
    0% {
        transform: translateY(-100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes snowflake-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Container para flocos de neve */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    animation: snowflake-fall linear infinite, snowflake-rotate linear infinite;
    pointer-events: none;
}

/* Criar múltiplos flocos de neve com diferentes tamanhos e velocidades */
.snowflake:nth-child(1) {
    left: 10%;
    animation-duration: 10s;
    animation-delay: 0s;
    font-size: 0.8em;
}

.snowflake:nth-child(2) {
    left: 20%;
    animation-duration: 12s;
    animation-delay: 1s;
    font-size: 1em;
}

.snowflake:nth-child(3) {
    left: 30%;
    animation-duration: 14s;
    animation-delay: 2s;
    font-size: 0.9em;
}

.snowflake:nth-child(4) {
    left: 40%;
    animation-duration: 11s;
    animation-delay: 0.5s;
    font-size: 1.1em;
}

.snowflake:nth-child(5) {
    left: 50%;
    animation-duration: 13s;
    animation-delay: 1.5s;
    font-size: 0.85em;
}

.snowflake:nth-child(6) {
    left: 60%;
    animation-duration: 15s;
    animation-delay: 2.5s;
    font-size: 1.05em;
}

.snowflake:nth-child(7) {
    left: 70%;
    animation-duration: 10s;
    animation-delay: 0.8s;
    font-size: 0.95em;
}

.snowflake:nth-child(8) {
    left: 80%;
    animation-duration: 12s;
    animation-delay: 1.8s;
    font-size: 1.15em;
}

.snowflake:nth-child(9) {
    left: 90%;
    animation-duration: 14s;
    animation-delay: 3s;
    font-size: 0.9em;
}

.snowflake:nth-child(10) {
    left: 15%;
    animation-duration: 11s;
    animation-delay: 2.2s;
    font-size: 1em;
}

.snowflake:nth-child(11) {
    left: 25%;
    animation-duration: 13s;
    animation-delay: 0.3s;
    font-size: 0.88em;
}

.snowflake:nth-child(12) {
    left: 35%;
    animation-duration: 15s;
    animation-delay: 1.7s;
    font-size: 1.12em;
}

.snowflake:nth-child(13) {
    left: 45%;
    animation-duration: 10s;
    animation-delay: 2.8s;
    font-size: 0.92em;
}

.snowflake:nth-child(14) {
    left: 55%;
    animation-duration: 12s;
    animation-delay: 0.6s;
    font-size: 1.08em;
}

.snowflake:nth-child(15) {
    left: 65%;
    animation-duration: 14s;
    animation-delay: 1.9s;
    font-size: 0.87em;
}

/* Estrelas brilhantes no fundo */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 215, 0, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
    animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.star:nth-child(2) { top: 20%; left: 80%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 30%; left: 40%; animation-delay: 1s; }
.star:nth-child(4) { top: 40%; left: 60%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 50%; left: 15%; animation-delay: 2s; }
.star:nth-child(6) { top: 60%; left: 75%; animation-delay: 2.5s; }
.star:nth-child(7) { top: 70%; left: 35%; animation-delay: 0.3s; }
.star:nth-child(8) { top: 80%; left: 55%; animation-delay: 0.8s; }
.star:nth-child(9) { top: 15%; left: 70%; animation-delay: 1.2s; }
.star:nth-child(10) { top: 25%; left: 30%; animation-delay: 1.8s; }
.star:nth-child(11) { top: 45%; left: 85%; animation-delay: 2.2s; }
.star:nth-child(12) { top: 65%; left: 25%; animation-delay: 0.7s; }

/* Brilhos dourados sutis */
@keyframes golden-shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

.golden-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.03) 25%,
        rgba(255, 215, 0, 0.06) 50%,
        rgba(255, 215, 0, 0.03) 75%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: golden-shimmer 15s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Garantir que conteúdo fique acima dos elementos de fundo */
main,
[class*="main"],
[class*="Main"],
.container,
[class*="container"],
header,
[class*="header"],
[class*="Header"] {
    position: relative;
    z-index: 10;
}

/* Responsividade - reduzir flocos em mobile */
@media (max-width: 768px) {
    .snowflake:nth-child(n+8) {
        display: none;
    }
    
    .star:nth-child(n+7) {
        display: none;
    }
}

/* Opção para desabilitar animações para usuários que preferem reduzir movimento */
@media (prefers-reduced-motion: reduce) {
    .snowflake,
    .star,
    .golden-glow {
        animation: none !important;
    }
    
    .snowflake {
        opacity: 0.3;
    }
}

