/* ==============================================================
   seasonal.css — Christmas lights + snow toggle button
   ============================================================== */

/* ---------- Christmas lights ---------- */
.xmas-lights {
    position: absolute;          /* change to fixed to keep them on screen when scrolling */
    top: -8px;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
    pointer-events: none;        /* clicks pass straight through to your menu */
    z-index: 9999;
}
.xmas-lights li {
    position: relative;
    display: inline-block;
    width: 12px;
    height: 28px;
    margin: 20px 15px 0;
    border-radius: 50%;
    background: #00f7a5;
    box-shadow: 0 4px 24px 3px #00f7a5;
    animation: xmas-green 2s infinite both;
}
/* bulb cap */
.xmas-lights li::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 1px;
    width: 10px;
    height: 9px;
    background: #222;            /* use a lighter colour on a dark header */
    border-radius: 3px;
}
/* wire looping to the next bulb */
.xmas-lights li::after {
    content: "";
    position: absolute;
    top: -14px;
    left: 9px;
    width: 52px;
    height: 19px;
    border-bottom: 2px solid #222;
    border-radius: 50%;
}
.xmas-lights li:last-child::after { display: none; }

.xmas-lights li:nth-child(2n+1) {
    background: #ff2b2b;
    box-shadow: 0 4px 24px 3px #ff2b2b;
    animation: xmas-red 1.6s infinite both;
}
.xmas-lights li:nth-child(4n+2) {
    background: #ffd400;
    box-shadow: 0 4px 24px 3px #ffd400;
    animation: xmas-yellow 2.4s infinite both;
}
.xmas-lights li:nth-child(5n) {
    background: #2b8cff;
    box-shadow: 0 4px 24px 3px #2b8cff;
    animation: xmas-blue 2.8s infinite both;
}

@keyframes xmas-green  { 50% { background: rgba(0,247,165,.3);  box-shadow: 0 4px 24px 3px rgba(0,247,165,.15); } }
@keyframes xmas-red    { 50% { background: rgba(255,43,43,.3);  box-shadow: 0 4px 24px 3px rgba(255,43,43,.15); } }
@keyframes xmas-yellow { 50% { background: rgba(255,212,0,.3);  box-shadow: 0 4px 24px 3px rgba(255,212,0,.15); } }
@keyframes xmas-blue   { 50% { background: rgba(43,140,255,.3); box-shadow: 0 4px 24px 3px rgba(43,140,255,.15); } }

/* ---------- Snow on/off button ---------- */
.snow-toggle {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 10000;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 22px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    transition: opacity .2s, transform .2s;
}
.snow-toggle:hover { transform: scale(1.08); }
.snow-toggle:focus-visible { outline: 3px solid #ffd400; outline-offset: 2px; }

/* "off" state: faded with a red line through it */
.snow-toggle.is-off { opacity: .6; }
.snow-toggle.is-off::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    height: 3px;
    margin-top: -1.5px;
    background: #ff2b2b;
    border-radius: 2px;
    transform: rotate(-45deg);
}

/* ---------- Respect visitors who've turned off animations ---------- */
@media (prefers-reduced-motion: reduce) {
    .xmas-lights li { animation: none; }
}
