/* ========== HIỆU ỨNG HOA ANH ĐÀO ========== */
.sakura {
    position: fixed;
    z-index: 9999;
    user-select: none;
    pointer-events: none;
    animation-name: sakura-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes sakura-fall {
    0% {
        opacity: 0;
        transform: translateY(0) rotateZ(0deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotateZ(360deg);
    }
}

.sakura:nth-of-type(odd) {
    animation-name: sakura-fall-swing;
}

@keyframes sakura-fall-swing {
    0% {
        opacity: 0;
        transform: translateY(0) rotateZ(0deg);
    }
    10% {
        opacity: 1;
    }
    25% {
        transform: translateY(25vh) translateX(50px) rotateZ(90deg);
    }
    50% {
        transform: translateY(50vh) translateX(-50px) rotateZ(180deg);
    }
    75% {
        transform: translateY(75vh) translateX(50px) rotateZ(270deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) translateX(-50px) rotateZ(360deg);
    }
}

/* ========== HIỆU ỨNG TUYẾT RƠI ========== */
.snow {
    position: fixed;
    z-index: 9999;
    user-select: none;
    pointer-events: none;
    color: #fff;
    font-size: 1.5em;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation-name: snow-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes snow-fall {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) translateX(100px);
    }
}

/* ========== HIỆU ỨNG LÁ THU RƠI ========== */
.autumn {
    position: fixed;
    z-index: 9999;
    user-select: none;
    pointer-events: none;
    animation-name: autumn-fall;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes autumn-fall {
    0% {
        opacity: 0;
        transform: translateY(0) rotateZ(0deg);
    }
    10% {
        opacity: 1;
    }
    20% {
        transform: translateY(20vh) translateX(-30px) rotateZ(72deg);
    }
    40% {
        transform: translateY(40vh) translateX(30px) rotateZ(144deg);
    }
    60% {
        transform: translateY(60vh) translateX(-30px) rotateZ(216deg);
    }
    80% {
        transform: translateY(80vh) translateX(30px) rotateZ(288deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) translateX(-30px) rotateZ(360deg);
    }
}

/* ========== HIỆU ỨNG LỒNG ĐÈN TRUNG THU ========== */
.lantern {
    position: fixed;
    z-index: 9999;
    user-select: none;
    pointer-events: none;
    animation-name: lantern-float;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    filter: drop-shadow(0 0 10px rgba(255, 200, 0, 0.8));
}

@keyframes lantern-float {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) rotateZ(-5deg);
    }
    10% {
        opacity: 1;
    }
    25% {
        transform: translateY(25vh) translateX(20px) rotateZ(5deg);
    }
    50% {
        transform: translateY(50vh) translateX(-20px) rotateZ(-5deg);
    }
    75% {
        transform: translateY(75vh) translateX(20px) rotateZ(5deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) translateX(-20px) rotateZ(-5deg);
    }
}

/* ========== HIỆU ỨNG HALLOWEEN ========== */
.halloween {
    position: fixed;
    z-index: 9999;
    user-select: none;
    pointer-events: none;
    animation-name: halloween-float;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes halloween-float {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) rotateZ(0deg);
    }
    10% {
        opacity: 1;
    }
    25% {
        transform: translateY(25vh) translateX(-40px) rotateZ(-10deg);
    }
    50% {
        transform: translateY(50vh) translateX(40px) rotateZ(10deg);
    }
    75% {
        transform: translateY(75vh) translateX(-40px) rotateZ(-10deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) translateX(40px) rotateZ(360deg);
    }
}

/* Hiệu ứng nhấp nháy cho Halloween */
.halloween.glow {
    animation: halloween-glow 2s ease-in-out infinite alternate;
}

@keyframes halloween-glow {
    from {
        filter: drop-shadow(0 0 5px rgba(255, 140, 0, 0.8));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(255, 69, 0, 1));
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .sakura,
    .snow,
    .autumn,
    .lantern,
    .halloween {
        font-size: 0.8em;
    }
}
