/* =============================================================================
   New Year's Theme - Active December 28 - January 5
   ============================================================================= */

/* ========== CONFETTI ========== */
.confetti {
    position: fixed;
    top: -10px;
    font-size: 1.2em;
    opacity: 0.9;
    pointer-events: none;
    z-index: 9998;
    animation: fall-confetti linear infinite;
}

@keyframes fall-confetti {
    to {
        transform: translateY(100vh) rotate(720deg);
    }
}

/* ========== SPARKLE LIGHTS ========== */
.sparkle-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 9999;
    display: flex;
    justify-content: space-around;
    align-items: center;
    pointer-events: none;
}

.sparkle {
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 15px #ffd700;
    animation: twinkle-gold 2s ease-in-out infinite;
}

.sparkle:nth-child(even) {
    background: #c0c0c0;
    box-shadow: 0 0 15px #c0c0c0;
    animation: twinkle-silver 2.5s ease-in-out infinite;
}

@keyframes twinkle-gold {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); }
}

@keyframes twinkle-silver {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ========== FIREWORKS ========== */
.firework {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
}

.firework-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    animation: firework-burst 1.5s ease-out forwards;
}

@keyframes firework-burst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

/* ========== CHAMPAGNE GLASSES ========== */
.champagne-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-size: 80px;
    animation: toast-clink 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

@keyframes toast-clink {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* ========== CELEBRATION BANNER ========== */
.newyear-banner {
    position: fixed;
    top: 60px;
    right: -90px;
    background: linear-gradient(135deg, #ffd700 0%, #c0c0c0 100%);
    color: #000;
    padding: 10px 100px;
    transform: rotate(45deg);
    z-index: 9997;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* ========== STARS BACKGROUND ========== */
.stars-newyear {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star-newyear {
    position: absolute;
    background: #ffd700;
    border-radius: 50%;
    animation: sparkle-star 2s ease-in-out infinite;
}

@keyframes sparkle-star {
    0%, 100% { opacity: 0.2; transform: scale(0.8); box-shadow: 0 0 5px #ffd700; }
    50% { opacity: 0.9; transform: scale(1.5); box-shadow: 0 0 15px #ffd700; }
}

/* ========== FESTIVE NAVBAR ENHANCEMENT ========== */
body.newyear-theme .navbar {
    border-bottom: 3px solid #ffd700 !important;
}

body.newyear-theme .navbar::after {
    content: '🥂 ✨ 🎆 ⭐ 🎊 ✨ 🥂';
    position: absolute;
    bottom: -20px;
    left: 50%transform: translateX(-50%);
    background: #1a1a1a;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ========== CARD DECORATIONS ========== */
.sparkle-decoration {
    position: absolute;
    color: rgba(255, 215, 0, 0.4);
    font-size: 20px;
    animation: rotate-sparkle 15s linear infinite;
}

@keyframes rotate-sparkle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Add festive glow to cards and buttons */
body.newyear-theme .card:hover,
body.newyear-theme .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4) !important;
}

/* ========== CELEBRATION GREETING ========== */
.newyear-greeting {
    text-align: center;
    margin: 20px auto;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(192, 192, 192, 0.1) 100%);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-width: 800px;
}

.newyear-greeting h2 {
    color: #ffd700;
    font-size: 1.8em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.newyear-greeting p {
    color: #e0e0e0;
    font-size: 1.1em;
    line-height: 1.6;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    .champagne-toast {
        font-size: 50px;
        bottom: 10px;
        right: 10px;
    }

    .newyear-banner {
        font-size: 12px;
        padding: 8px 80px;
    }

    .newyear-greeting {
        margin: 10px;
        padding: 15px;
    }

    .newyear-greeting h2 {
        font-size: 1.4em;
    }

    .newyear-greeting p {
        font-size: 0.95em;
    }
}
