/* 🎃 Halloween Updated - Images & GIFs Decorations 🎃 */
/* Magnífica Fantasias - Halloween Decorations with Real Images */

/* Container para elementos flutuantes com imagens */
.halloween-float-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

/* 🦇 GIFs de morcegos substituindo CSS */
.bat-gif {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: floatImage 20s infinite linear;
    z-index: 1000;
}

.bat-gif-1 {
    width: 60px;
    height: 40px;
    background-image: url('../img/morcego.png');
    top: 15%;
    animation-delay: 0s;
}

.bat-gif-2 {
    width: 50px;
    height: 35px;
    background-image: url('../img/fantasma.png');
    top: 45%;
    animation-delay: 5s;
    animation-duration: 18s;
}

.bat-gif-3 {
    width: 55px;
    height: 38px;
    background-image: url('../img/fantasma.png');
    top: 75%;
    animation-delay: 10s;
    animation-duration: 12s;
}

/* 🎃 Abóboras flutuantes */
.pumpkin-gif {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: floatImage 22s infinite linear;
    z-index: 1001;
}

.pumpkin-gif-1 {
    width: 50px;
    height: 50px;
    background-image: url('../img/fantasma.png');
    top: 25%;
    animation-delay: 2s;
}

.pumpkin-gif-2 {
    width: 45px;
    height: 45px;
    background-image: url('../img/morcego.png');
    top: 65%;
    animation-delay: 7s;
    animation-duration: 25s;
}

/* 👻 Fantasmas com GIFs */
.ghost-gif {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: floatImage 25s infinite ease-in-out;
    z-index: 1002;
}

.ghost-gif-1 {
    width: 40px;
    height: 50px;
    background-image: url('../img/fantasma.png');
    top: 35%;
    animation-delay: 3s;
}

.ghost-gif-2 {
    width: 35px;
    height: 45px;
    background-image: url('../img/morcego.png');
    top: 55%;
    animation-delay: 8s;
    animation-duration: 28s;
}

/* Animação de flutuação para imagens/GIFs */
@keyframes floatImage {
    0% {
        left: -100px;
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
    }
    10% {
        opacity: 1;
        transform: scale(1) rotate(5deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    50% {
        transform: scale(0.9) rotate(10deg);
    }
    75% {
        transform: scale(1.05) rotate(-2deg);
    }
    90% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        left: 110%;
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
    }
}

/* 🌙 Lua decorativa */
.halloween-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: 998;
}

@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 névoa */
.halloween-fog {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.02) 25%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.02) 75%,
        transparent 100%
    );
    animation: fogMove 10s infinite ease-in-out;
    z-index: 997;
}

@keyframes fogMove {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

/* Ocultar morcegos antigos */
.bat {
    display: none !important;
}

/* Mostrar novas imagens/GIFs */
.bat-gif,
.pumpkin-gif,
.ghost-gif {
    display: block !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .bat-gif,
    .pumpkin-gif,
    .ghost-gif {
        transform: scale(0.7);
    }
}

@media (max-width: 480px) {
    .bat-gif,
    .pumpkin-gif,
    .ghost-gif {
        transform: scale(0.5);
    }
}
