/* ===== Christmas Animation (Dec 24-26) ===== */

/* Christmas Canvas */
#christmas-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    display: none;
}

#christmas-canvas.active {
    display: block;
}

/* Christmas Banner */
.christmas-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    display: none;
    background: #b91c1c;
    padding: 6px 0;
    text-align: center;
}

.christmas-banner.active {
    display: block;
}

.christmas-banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.christmas-emoji {
    font-size: 1.2rem;
}

.christmas-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

/* Christmas Lights Bar */
.christmas-lights-bar {
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    z-index: 1001;
    display: none;
    pointer-events: none;
}

.christmas-lights-bar.active {
    display: block;
}

.christmas-lights-bar::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        #1a472a 0%,
        #2d5a3d 20%,
        #1a472a 40%,
        #2d5a3d 60%,
        #1a472a 80%,
        #2d5a3d 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.christmas-lights {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    position: relative;
    top: 7px;
}

.light {
    width: 10px;
    height: 14px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    flex-shrink: 0;
}

.light::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: #2d2d2d;
    border-radius: 2px 2px 0 0;
}

.light-red {
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #e63946);
    box-shadow: 0 0 15px #e63946, 0 0 30px rgba(230, 57, 70, 0.5);
}

.light-yellow {
    background: radial-gradient(circle at 30% 30%, #ffe066, #ffd700);
    box-shadow: 0 0 15px #ffd700, 0 0 30px rgba(255, 215, 0, 0.5);
}

.light-green {
    background: radial-gradient(circle at 30% 30%, #69db7c, #2ecc71);
    box-shadow: 0 0 15px #2ecc71, 0 0 30px rgba(46, 204, 113, 0.5);
}

.light-blue {
    background: radial-gradient(circle at 30% 30%, #74c0fc, #3498db);
    box-shadow: 0 0 15px #3498db, 0 0 30px rgba(52, 152, 219, 0.5);
}

.light-pink {
    background: radial-gradient(circle at 30% 30%, #f783ac, #e91e8c);
    box-shadow: 0 0 15px #e91e8c, 0 0 30px rgba(233, 30, 140, 0.5);
}

/* Blinking effect for lights */
.light-red { animation: blink-light 0.8s ease-in-out infinite; }
.light-yellow { animation: blink-light 0.8s ease-in-out infinite 0.15s; }
.light-green { animation: blink-light 0.8s ease-in-out infinite 0.3s; }
.light-blue { animation: blink-light 0.8s ease-in-out infinite 0.45s; }
.light-pink { animation: blink-light 0.8s ease-in-out infinite 0.6s; }

@keyframes blink-light {
    0%, 100% {
        opacity: 1;
        filter: brightness(1.3);
    }
    50% {
        opacity: 0.3;
        filter: brightness(0.5);
    }
}

/* Adjust positions when Christmas is active */
body.christmas-active .nav {
    top: 56px;
}

body.christmas-active .hero {
    padding-top: 216px;
}

body.christmas-active .articles-carousel {
    top: 146px;
}

/* Responsive Christmas */
@media (max-width: 768px) {
    .christmas-banner {
        padding: 4px 0;
    }

    .christmas-text {
        font-size: 0.75rem;
    }

    .christmas-emoji {
        font-size: 1rem;
    }

    .christmas-banner-content {
        gap: 10px;
    }

    .christmas-lights-bar {
        top: 32px;
    }

    .light {
        width: 8px;
        height: 11px;
    }

    .light::before {
        width: 3px;
        height: 5px;
        top: -4px;
    }

    body.christmas-active .nav {
        top: 46px;
    }

    body.christmas-active .hero {
        padding-top: 176px;
    }

    body.christmas-active .articles-carousel {
        top: 126px;
    }
}

@media (max-width: 480px) {
    .christmas-banner {
        padding: 3px 0;
    }

    .christmas-text {
        font-size: 0.7rem;
    }

    .christmas-emoji {
        font-size: 0.9rem;
    }

    .christmas-lights-bar {
        top: 28px;
    }

    .light {
        width: 6px;
        height: 9px;
    }

    .light::before {
        width: 2px;
        height: 4px;
        top: -3px;
    }

    body.christmas-active .nav {
        top: 40px;
    }

    body.christmas-active .hero {
        padding-top: 160px;
    }

    body.christmas-active .articles-carousel {
        top: 110px;
    }
}
