/* Festive New Year Styles */

/* Festive Banner */
.festive-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 25%, #6bcf7f 50%, #4d96ff 75%, #9b59b6 100%);
    background-size: 200% 200%;
    animation: festiveGradient 3s ease infinite;
    padding: 12px 20px;
    text-align: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
}

.festive-banner.show {
    transform: translateY(0);
}

.festive-banner .festive-icon {
    font-size: 1.2rem;
    animation: festiveBounce 1s ease infinite;
}

.festive-banner .festive-close {
    position: absolute;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.festive-banner .festive-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes festiveGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes festiveBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Confetti Container */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998; /* Below banner and header */
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff6b6b;
    animation: confettiFall linear forwards;
    border-radius: 2px;
}

.confetti:nth-child(2n) {
    background: #ffd93d;
    width: 8px;
    height: 8px;
}

.confetti:nth-child(3n) {
    background: #6bcf7f;
    width: 12px;
    height: 12px;
}

.confetti:nth-child(4n) {
    background: #4d96ff;
    width: 9px;
    height: 9px;
}

.confetti:nth-child(5n) {
    background: #9b59b6;
    width: 11px;
    height: 11px;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Festive Sparkle Effect */
.festive-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    animation: sparkle 2s ease infinite;
    pointer-events: none;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Festive Glow Effect */
.festive-glow {
    animation: festiveGlow 2s ease-in-out infinite;
}

@keyframes festiveGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.4);
    }
}

/* Adjust header when banner is shown */
body.festive-banner-active .header {
    top: 48px;
}

/* Ensure hero doesn't overlap with header when banner is active */
body.festive-banner-active .hero {
    margin-top: 0;
    padding-top: calc(60px + 48px); /* Base padding + banner height */
    min-height: calc(100vh - 50px + 48px); /* Account for banner height */
}

@media (min-width: 1025px) {
    body.festive-banner-active .hero {
        padding-top: calc(120px + 48px); /* Base padding + banner height */
        min-height: calc(100vh + 48px); /* Account for banner height */
    }
}

@media (max-width: 768px) {
    .festive-banner {
        font-size: 0.85rem;
        padding: 10px 15px;
        flex-wrap: wrap;
    }
    
    .festive-banner .festive-icon {
        font-size: 1rem;
    }
    
    body.festive-banner-active .header {
        top: 60px;
    }
    
    body.festive-banner-active .hero {
        padding-top: calc(60px + 60px);
        min-height: calc(100vh - 50px + 60px); /* Account for banner height */
    }
}

