/* ============================================
   WINTER EFFECTS - Snowflakes & Garland
   JS-based snowflakes (CSS only for garland)
   ============================================ */

/* ========== SNOWFLAKES CONTAINER ========== */
.snowflakes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* JS-animated snowflake (minimal styling, animation via JS) */
.snowflake {
    position: absolute;
    color: #fff;
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
    pointer-events: none;
    user-select: none;
}

/* ========== GARLAND ========== */
.garland-container {
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 12px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    pointer-events: none;
    z-index: 101;
    overflow: hidden;
}

.garland-light {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: garlandGlow 2s ease-in-out infinite;
}

.garland-light:nth-child(5n+1) {
    background: #ff4444;
    box-shadow: 0 0 6px 2px rgba(255, 68, 68, 0.6);
    animation-delay: 0s;
}

.garland-light:nth-child(5n+2) {
    background: #ffdd44;
    box-shadow: 0 0 6px 2px rgba(255, 221, 68, 0.6);
    animation-delay: 0.4s;
}

.garland-light:nth-child(5n+3) {
    background: #44ff44;
    box-shadow: 0 0 6px 2px rgba(68, 255, 68, 0.6);
    animation-delay: 0.8s;
}

.garland-light:nth-child(5n+4) {
    background: #44aaff;
    box-shadow: 0 0 6px 2px rgba(68, 170, 255, 0.6);
    animation-delay: 1.2s;
}

.garland-light:nth-child(5n) {
    background: #ff44ff;
    box-shadow: 0 0 6px 2px rgba(255, 68, 255, 0.6);
    animation-delay: 1.6s;
}

@keyframes garlandGlow {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ========== HIDE WHEN DISABLED ========== */
html:not(.winter-effects-enabled) .snowflakes-container,
html:not(.winter-effects-enabled) .garland-container,
body:not(.winter-effects-enabled) .snowflakes-container,
body:not(.winter-effects-enabled) .garland-container {
    display: none !important;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    .garland-light {
        animation: none !important;
    }

    .snowflakes-container {
        display: none !important;
    }
}