/**
 * Styles pour les décorations Halloween - Version Lottie uniquement
 * Éléments : Chauve-souris, Citrouilles, Toiles d'araignées
 */

/* Conteneur principal */
#halloween-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* ========================================
   TOILES D'ARAIGNÉES LOTTIE
   ======================================== */
.halloween-spiderweb-lottie {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.4;
    pointer-events: none;
}

/* ========================================
   CHAUVE-SOURIS LOTTIE
   ======================================== */
#halloween-bats-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.halloween-bat-lottie {
    position: absolute;
    width: 35px;
    height: 35px;
    opacity: 0;
    animation: bat-fly-smooth 35s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bat-fly-smooth {
    0% {
        transform: translate(-80px, 0) scale(0.7);
        opacity: 0;
    }
    3% {
        opacity: 0.7;
    }
    50% {
        transform: translate(50vw, 0) scale(1);
        opacity: 0.8;
    }
    97% {
        opacity: 0.7;
    }
    100% {
        transform: translate(calc(100vw + 80px), 0) scale(0.7);
        opacity: 0;
    }
}

/* ========================================
   CITROUILLES LOTTIE
   ======================================== */
#halloween-pumpkins-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.halloween-pumpkin-lottie {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0;
    animation: pumpkin-appear 3s ease-in-out forwards;
    pointer-events: none;
}

@keyframes pumpkin-appear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    20% {
        opacity: 0.8;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

/* ========================================
   INTENSITÉ DES ANIMATIONS
   ======================================== */
body.halloween-intensity-low .halloween-bat-lottie {
    animation-duration: 50s;
    width: 30px;
    height: 30px;
}

body.halloween-intensity-high .halloween-bat-lottie {
    animation-duration: 25s;
    width: 40px;
    height: 40px;
}

body.halloween-intensity-low .halloween-pumpkin-lottie {
    width: 50px;
    height: 50px;
}

body.halloween-intensity-high .halloween-pumpkin-lottie {
    width: 70px;
    height: 70px;
}

body.halloween-intensity-low .halloween-spiderweb-lottie {
    width: 60px;
    height: 60px;
    opacity: 0.3;
}

body.halloween-intensity-high .halloween-spiderweb-lottie {
    width: 100px;
    height: 100px;
    opacity: 0.5;
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .halloween-spiderweb-lottie {
        width: 60px;
        height: 60px;
        opacity: 0.3;
    }

    .halloween-bat-lottie {
        width: 25px;
        height: 25px;
    }

    .halloween-pumpkin-lottie {
        width: 45px;
        height: 45px;
    }
}
