/* ========================================
   FESTIVAL EFFECTS - Hiệu Ứng Lễ Hội Việt Nam
   Beautiful seasonal visual effects
   ======================================== */

/* Container for all festival effects */
.festival-effects-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

/* ========================================
   💕 VALENTINE - Trái Tim (14/02)
   ======================================== */

.heart {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
}

.heart::before {
    content: '❤';
    display: block;
    font-size: inherit;
    line-height: 1;
    filter: drop-shadow(0 0 8px currentColor);
}

.heart.size-s {
    font-size: 14px;
}

.heart.size-m {
    font-size: 20px;
}

.heart.size-l {
    font-size: 28px;
}

/* Heart color variations */
.heart.pink {
    color: #ff6b9d;
}

.heart.red {
    color: #ff3366;
}

.heart.light {
    color: #ffb6c1;
}

/* Sparkle heart */
.heart.sparkle::after {
    content: '✨';
    position: absolute;
    font-size: 50%;
    top: -30%;
    right: -20%;
    animation: sparkle 1s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* ========================================
   🌷 WOMEN'S DAY - Hoa Hồng (08/03)
   ======================================== */

.rose-petal {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
    border-radius: 100% 0 100% 0;
    transform-origin: center center;
}

.rose-petal.size-s {
    width: 12px;
    height: 16px;
}

.rose-petal.size-m {
    width: 16px;
    height: 22px;
}

.rose-petal.size-l {
    width: 22px;
    height: 30px;
}

/* Rose petal colors */
.rose-petal.pink {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 50%, #db7093 100%);
    box-shadow:
        0 2px 8px rgba(255, 105, 180, 0.4),
        inset 2px 2px 4px rgba(255, 255, 255, 0.3);
}

.rose-petal.red {
    background: linear-gradient(135deg, #ff4757 0%, #c0392b 50%, #a93226 100%);
    box-shadow:
        0 2px 8px rgba(255, 71, 87, 0.4),
        inset 2px 2px 4px rgba(255, 255, 255, 0.2);
}

.rose-petal.coral {
    background: linear-gradient(135deg, #ff7675 0%, #ff6b81 50%, #ee5a5a 100%);
    box-shadow:
        0 2px 8px rgba(255, 118, 117, 0.4),
        inset 2px 2px 4px rgba(255, 255, 255, 0.3);
}

/* ========================================
   🏮 MID-AUTUMN - Đèn Lồng (Trung Thu)
   ======================================== */

.lantern {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
}

.lantern::before {
    content: '🏮';
    display: block;
    font-size: inherit;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(255, 150, 0, 0.8));
}

.lantern.size-s {
    font-size: 20px;
}

.lantern.size-m {
    font-size: 28px;
}

.lantern.size-l {
    font-size: 38px;
}

/* Moon and stars for mid-autumn */
.moon-star {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
}

.moon-star::before {
    content: '⭐';
    display: block;
    font-size: inherit;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9));
}

.moon-star.size-s {
    font-size: 10px;
}

.moon-star.size-m {
    font-size: 14px;
}

.moon-star.size-l {
    font-size: 18px;
}

.moon-star.twinkle {
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

/* ========================================
   🎃 HALLOWEEN - Ma Quỷ (31/10)
   ======================================== */

.pumpkin {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
}

.pumpkin::before {
    content: '🎃';
    display: block;
    font-size: inherit;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(255, 100, 0, 0.7));
}

.pumpkin.size-s {
    font-size: 18px;
}

.pumpkin.size-m {
    font-size: 26px;
}

.pumpkin.size-l {
    font-size: 36px;
}

.bat {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
}

.bat::before {
    content: '🦇';
    display: block;
    font-size: inherit;
    line-height: 1;
    filter: drop-shadow(0 0 4px rgba(75, 0, 130, 0.8));
}

.bat.size-s {
    font-size: 16px;
}

.bat.size-m {
    font-size: 22px;
}

.bat.size-l {
    font-size: 30px;
}

.ghost {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
}

.ghost::before {
    content: '👻';
    display: block;
    font-size: inherit;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.ghost.size-s {
    font-size: 18px;
}

.ghost.size-m {
    font-size: 26px;
}

.ghost.size-l {
    font-size: 34px;
}

.ghost.float {
    animation: ghostFloat 3s ease-in-out infinite;
}

@keyframes ghostFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ========================================
   🎆 NEW YEAR - Pháo Hoa (01/01)
   ======================================== */

.confetti {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
    border-radius: 2px;
}

.confetti.size-s {
    width: 6px;
    height: 10px;
}

.confetti.size-m {
    width: 8px;
    height: 14px;
}

.confetti.size-l {
    width: 10px;
    height: 18px;
}

/* Confetti colors - rainbow */
.confetti.red {
    background: linear-gradient(135deg, #ff4757, #ff3838);
}

.confetti.orange {
    background: linear-gradient(135deg, #ffa502, #ff7f50);
}

.confetti.yellow {
    background: linear-gradient(135deg, #ffd700, #ffec8b);
}

.confetti.green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.confetti.blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.confetti.purple {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.confetti.pink {
    background: linear-gradient(135deg, #e91e8c, #ff6b9d);
}

.confetti.gold {
    background: linear-gradient(135deg, #ffd700, #f0c000);
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

/* Sparkle star for new year */
.sparkle-star {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
}

.sparkle-star::before {
    content: '✨';
    display: block;
    font-size: inherit;
    line-height: 1;
}

.sparkle-star.size-s {
    font-size: 12px;
}

.sparkle-star.size-m {
    font-size: 18px;
}

.sparkle-star.size-l {
    font-size: 24px;
}

.sparkle-star.burst {
    animation: burst 0.5s ease-out forwards;
}

@keyframes burst {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}



/* ========================================
   MOBILE OPTIMIZATION
   ======================================== */

@media (max-width: 768px) {

    .heart::before,
    .lantern::before,
    .pumpkin::before,
    .bat::before,
    .ghost::before,
    .moon-star::before {
        filter: none;
    }

    .rose-petal {
        box-shadow: none;
    }

    .confetti {
        transform: scale(0.8);
    }
}

/* Disable for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .festival-effects-container {
        display: none;
    }
}