/* New Year Theme Styles */
/* Automatically activated from December 27 until January 1 */

/* Fireworks Animation Container */
.fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: visible !important;
}

/* Firework Launch Point */
.firework-launch {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #FFD700;
    z-index: 10000;
}

/* Firework Particle - Individual spark that explodes outward */
.firework-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    left: 0;
    top: 0;
    box-shadow: 0 0 6px currentColor;
}

/* Firework Explosion Container - Groups particles together */
.firework-explosion {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

/* Firework Launch Animation - Goes up then explodes */
@keyframes fireworkLaunch {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(var(--launch-height)) scale(1);
        opacity: 1;
    }
    51% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* Firework Particle Explosion - Particles spread in all directions */
@keyframes particleExplode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--particle-x), var(--particle-y)) scale(0);
        opacity: 0;
    }
}

/* Firework Glow Effect */
@keyframes fireworkGlow {
    0%, 100% {
        box-shadow: 0 0 5px currentColor,
                    0 0 10px currentColor,
                    0 0 15px currentColor;
    }
    50% {
        box-shadow: 0 0 10px currentColor,
                    0 0 20px currentColor,
                    0 0 30px currentColor,
                    0 0 40px currentColor;
    }
}

.firework-particle {
    animation: particleExplode var(--particle-duration) ease-out forwards;
    animation-delay: var(--particle-delay);
}

/* New Year Icon Styles */
.newyear-icon {
    display: inline-block;
    font-size: 1.2em;
    animation: newyearPulse 2s ease-in-out infinite;
    margin-left: 8px;
    vertical-align: middle;
}

.newyear-icon-small {
    font-size: 0.9em;
    margin-left: 6px;
}

/* New Year Pulse Animation */
@keyframes newyearPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

/* New Year Theme Colors */
.newyear-theme .decoration-icon {
    color: #FFD700 !important;
}

.newyear-theme .decoration-line {
    background: linear-gradient(90deg, transparent, #FFD700, #FF6B6B, #FFD700, transparent) !important;
}

.newyear-theme .login-content {
    border-top: 3px solid #FFD700;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
}

/* Navbar New Year Theme - Keep green like Christmas */
.newyear-theme .main-menu {
    background: linear-gradient(135deg, #1a4d2e 0%, #2d7a4f 50%, #3d8b61 100%) !important;
    position: relative;
    overflow: visible !important;
}

.newyear-theme .main-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FF6B6B, #4ECDC4, #FFD700);
    animation: newyearShimmer 2s ease-in-out infinite;
}

@keyframes newyearShimmer {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* New Year Icons for Brand Title */
.newyear-icon-brand {
    display: inline-block;
    font-size: 1.2em;
    animation: newyearPulse 2s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.newyear-theme .brand-title .newyear-icon {
    margin-left: 8px;
}

/* Mobile Header New Year Theme - Keep green */
.newyear-theme .header {
    background: linear-gradient(135deg, #1a4d2e 0%, #2d7a4f 100%) !important;
    position: relative;
}

.newyear-theme .header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #FF6B6B, #4ECDC4, #FFD700);
    animation: newyearShimmer 2s ease-in-out infinite;
}

.newyear-theme .header-title {
    position: relative;
}

.newyear-theme .header-title::after {
    content: '🎆';
    position: absolute;
    top: -8px;
    right: -20px;
    font-size: 0.7em;
    animation: newyearPulse 2s ease-in-out infinite;
}

/* New Year accents - Keep dark green */
.newyear-theme .top-bar {
    background: linear-gradient(135deg, #0a2d15 0%, #1a4d2e 100%);
}

/* Top-bar Fireworks Container */
.newyear-theme .top-bar {
    position: relative;
    overflow: visible !important;
}

.topbar-fireworks-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 1002;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .newyear-icon {
        font-size: 1em;
        margin-left: 6px;
    }
}
