/* Event Theme Styles */

/* Christmas Theme */
.hero-christmas {
    background: linear-gradient(135deg, #c41e3a 0%, #165b33 50%, #c41e3a 100%);
    position: relative;
}

/* Snowflake Animation */
.snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    top: -10%;
    color: white;
    font-size: 1.5em;
    opacity: 0.8;
    animation: fall linear infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 1s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 8s; animation-delay: 2s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 14s; animation-delay: 0.5s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 11s; animation-delay: 1.5s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 9s; animation-delay: 3s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 13s; animation-delay: 2.5s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 10s; animation-delay: 1s; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 12s; animation-delay: 0s; }
.snowflake:nth-child(10) { left: 15%; animation-duration: 15s; animation-delay: 2s; }

@keyframes fall {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
    }
    100% {
        top: 110%;
        transform: translateX(50px) rotate(360deg);
    }
}

/* Tet (Vietnamese New Year) Theme */
.hero-tet {
    background: linear-gradient(135deg, #dc143c 0%, #ffd700 50%, #dc143c 100%);
    position: relative;
}

/* Fireworks Effect */
.fireworks-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* Women's Day Theme */
.hero-womensday, .hero-vnwomensday {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 50%, #ffb6c1 100%);
    position: relative;
}

/* Flower Animation */
.flowers-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.flower {
    position: absolute;
    top: -10%;
    font-size: 2em;
    opacity: 0.7;
    animation: float linear infinite;
}

.flower:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: 0s; }
.flower:nth-child(2) { left: 25%; animation-duration: 18s; animation-delay: 2s; }
.flower:nth-child(3) { left: 40%; animation-duration: 12s; animation-delay: 1s; }
.flower:nth-child(4) { left: 55%; animation-duration: 16s; animation-delay: 3s; }
.flower:nth-child(5) { left: 70%; animation-duration: 14s; animation-delay: 1.5s; }
.flower:nth-child(6) { left: 85%; animation-duration: 17s; animation-delay: 2.5s; }
.flower:nth-child(7) { left: 15%; animation-duration: 13s; animation-delay: 0.5s; }
.flower:nth-child(8) { left: 60%; animation-duration: 19s; animation-delay: 4s; }

@keyframes float {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(30px) rotate(180deg);
    }
    100% {
        top: 110%;
        transform: translateX(-30px) rotate(360deg);
    }
}

/* Valentine's Day Theme */
.hero-valentine {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 50%, #c71585 100%);
    position: relative;
}

/* Heart Animation */
.hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    bottom: -10%;
    font-size: 2em;
    opacity: 0.7;
    animation: rise linear infinite;
}

.heart:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.heart:nth-child(2) { left: 25%; animation-duration: 15s; animation-delay: 1s; }
.heart:nth-child(3) { left: 40%; animation-duration: 10s; animation-delay: 2s; }
.heart:nth-child(4) { left: 55%; animation-duration: 14s; animation-delay: 0.5s; }
.heart:nth-child(5) { left: 70%; animation-duration: 11s; animation-delay: 1.5s; }
.heart:nth-child(6) { left: 85%; animation-duration: 13s; animation-delay: 2.5s; }
.heart:nth-child(7) { left: 15%; animation-duration: 16s; animation-delay: 3s; }
.heart:nth-child(8) { left: 60%; animation-duration: 9s; animation-delay: 0.8s; }

@keyframes rise {
    0% {
        bottom: -10%;
        transform: translateX(0) rotate(0deg) scale(0.5);
    }
    50% {
        transform: translateX(20px) rotate(180deg) scale(1);
    }
    100% {
        bottom: 110%;
        transform: translateX(-20px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* New Year Theme */
.hero-newyear {
    background: linear-gradient(135deg, #4169e1 0%, #1e90ff 50%, #00bfff 100%);
    position: relative;
}

/* Reunification Day & Labor Day Theme (30/4 - 1/5) */
.hero-reunification {
    background: linear-gradient(135deg, #da251d 0%, #ffcd00 50%, #da251d 100%);
    position: relative;
}

/* National Day Theme */
.hero-nationalday {
    background: linear-gradient(135deg, #da251d 0%, #ffcd00 50%, #da251d 100%);
    position: relative;
}

/* Star Animation */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    font-size: 1.5em;
    opacity: 0;
    animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.star:nth-child(2) { top: 20%; left: 25%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 15%; left: 40%; animation-delay: 1s; }
.star:nth-child(4) { top: 30%; left: 55%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 25%; left: 70%; animation-delay: 2s; }
.star:nth-child(6) { top: 35%; left: 85%; animation-delay: 2.5s; }
.star:nth-child(7) { top: 50%; left: 15%; animation-delay: 0.8s; }
.star:nth-child(8) { top: 45%; left: 30%; animation-delay: 1.3s; }
.star:nth-child(9) { top: 60%; left: 45%; animation-delay: 1.8s; }
.star:nth-child(10) { top: 55%; left: 60%; animation-delay: 2.3s; }
.star:nth-child(11) { top: 70%; left: 75%; animation-delay: 0.3s; }
.star:nth-child(12) { top: 65%; left: 20%; animation-delay: 1.1s; }
.star:nth-child(13) { top: 80%; left: 35%; animation-delay: 1.6s; }
.star:nth-child(14) { top: 75%; left: 50%; animation-delay: 2.1s; }
.star:nth-child(15) { top: 85%; left: 80%; animation-delay: 0.6s; }

@keyframes twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .snowflake, .flower, .heart, .star {
        font-size: 1em;
    }
    
    /* Reduce number of elements on mobile for performance */
    .snowflake:nth-child(n+6),
    .flower:nth-child(n+5),
    .heart:nth-child(n+5),
    .star:nth-child(n+8) {
        display: none;
    }
}

/* Theme-specific text colors and overlays */
.hero-christmas::before,
.hero-tet::before,
.hero-womensday::before,
.hero-vnwomensday::before,
.hero-valentine::before,
.hero-newyear::before,
.hero-reunification::before,
.hero-nationalday::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}
