/* 🎄 Christmas Decorations - Based on Halloween Structure 🎄 */
/* Magnífica Fantasias - Christmas Decorations with Balls and Snow */

/* Container para elementos flutuantes com imagens */
.christmas-float-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Reduced height to be visible only above menu and logo */
    pointer-events: none;
    z-index: 13000; /* Increased z-index to be above moon */
    overflow: visible; /* Allow balls to be visible */
}

/* 🎄 Bolas de Natal penduradas */
.christmas-ball {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    animation: christmasLight 2s infinite ease-in-out;
    z-index: 1000;
}

.christmas-ball:before {
    content: "";
    position: absolute;
    width: 1px;
    background: #AAAAAA;
    left: 50%;
    top: -100px;
    height: 100px;
    transform: translateX(-50%);
}

.christmas-ball-1 {
    background: radial-gradient(circle at 30% 30%, #ff0000, #800000);
    left: 10%;
    top: 20px;
    animation-delay: 0s;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.christmas-ball-2 {
    background: radial-gradient(circle at 30% 30%, #00ff00, #008000);
    left: 25%;
    top: 40px;
    animation-delay: 0.5s;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.christmas-ball-3 {
    background: radial-gradient(circle at 30% 30%, #0000ff, #000080);
    left: 40%;
    top: 15px;
    animation-delay: 1s;
    box-shadow: 0 0 10px rgba(0, 0, 255, 0.5);
}

.christmas-ball-4 {
    background: radial-gradient(circle at 30% 30%, #ffff00, #808000);
    right: 25%;
    top: 35px;
    animation-delay: 1.5s;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.christmas-ball-5 {
    background: radial-gradient(circle at 30% 30%, #ff00ff, #800080);
    right: 10%;
    top: 25px;
    animation-delay: 2s;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.christmas-ball-6 {
    background: radial-gradient(circle at 30% 30%, #ff8000, #804000);
    left: 60%;
    top: 35px;
    animation-delay: 2.5s;
    box-shadow: 0 0 10px rgba(255, 128, 0, 0.5);
}

.christmas-ball-7 {
    background: radial-gradient(circle at 30% 30%, #00ffff, #008080);
    right: 50%;
    top: 25px;
    animation-delay: 3s;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.christmas-ball-8 {
    background: radial-gradient(circle at 30% 30%, #c0c0c0, #808080);
    left: 80%;
    top: 45px;
    animation-delay: 3.5s;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

/* Animação de luzes de natal */
@keyframes christmasLight {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px currentColor;
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
        box-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
    }
}

/* 🌙 Lua decorativa (mantida igual) */
.christmas-moon {
    position: absolute;
    top: 20px;
    right: 50px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #f5f5dc 0%, #e6e6fa 50%, #d3d3d3 100%);
    border-radius: 50%;
    box-shadow:
        0 0 20px rgba(245, 245, 220, 0.5),
        0 0 40px rgba(245, 245, 220, 0.3);
    animation: moonGlow 4s infinite ease-in-out;
    z-index: 996; /* Lower z-index to be below balls */
}

@keyframes moonGlow {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(245, 245, 220, 0.5),
            0 0 40px rgba(245, 245, 220, 0.3);
    }
    50% {
        box-shadow:
            0 0 30px rgba(245, 245, 220, 0.8),
            0 0 60px rgba(245, 245, 220, 0.5);
    }
}

/* ❄️ Efeito de neve caindo */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    color: #ffffff;
    font-size: 14px;
    user-select: none;
    animation: snowfall linear infinite;
}

.snowflake:nth-child(odd) {
    animation-duration: 10s;
}

.snowflake:nth-child(even) {
    animation-duration: 15s;
}

.snowflake:nth-child(3n) {
    animation-duration: 12s;
}

.snowflake:nth-child(4n) {
    animation-duration: 18s;
}

.snowflake:nth-child(5n) {
    animation-duration: 14s;
}

@keyframes snowfall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Ocultar elementos antigos de Halloween */
.bat-gif,
.pumpkin-gif,
.ghost-gif,
.spider {
    display: none !important;
}

/* Mostrar novas bolas de Natal */
.christmas-ball {
    display: block !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .christmas-ball {
        transform: scale(0.7);
    }
    .snowflake {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .christmas-ball {
        transform: scale(0.5);
    }
    .snowflake {
        font-size: 8px;
    }
}
