/* ============================================================
   Realms Code Cowboy — CHRISTMAS THEME (seasonal)
   Everything is scoped under body.christmas.
   ON:  <body class="christmas">  + the stylesheet link in _Layout
   OFF: remove the class. One word. The whole theme sleeps.
   Same town as the Halloween and Thanksgiving streets,
   re-dressed for Christmas — snow, wreaths, and warm windows.
   ============================================================ */

body.christmas {
    background: #0d1b2e url('/media/christmas_street.jpg') center center / cover fixed no-repeat;
    color: #eef4fb;
}

/* Frosted winter-glass panel behind page content, so text stays
   readable over the street scene (homepage AND Privacy page). */
body.christmas main .container {
    background: rgba(10, 22, 40, 0.78);
    border-radius: 18px;
    padding: 1.5rem 1.75rem 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Cards keep their own light backgrounds — lit shop windows. */
body.christmas .card {
    background-color: rgba(255, 255, 255, 0.97);
}

/* Top nav goes deep winter blue. */
body.christmas header .navbar {
    background-color: rgba(10, 22, 40, 0.88) !important;
}
body.christmas .navbar-light .navbar-brand,
body.christmas .navbar-light .navbar-nav .nav-link {
    color: #eef4fb !important;
}
body.christmas .navbar-light .navbar-toggler {
    border-color: rgba(238, 244, 251, 0.5);
}

/* Links & quiet text on the winter glass. */
body.christmas a { color: #f6c453; }
body.christmas .card a, body.christmas a.btn { color: inherit; }
body.christmas .text-muted { color: #c3d2e2 !important; }
body.christmas footer { color: #c3d2e2; }

/* ---------- Falling snow (same div as Halloween/Thanksgiving) ----------
   The div still holds leaf glyphs in the markup; this theme hides
   them and draws a snowflake in their place, so the switch stays
   one word in the body class — no markup edit needed. */
.leaves { display: none; }
body.christmas .leaves {
    display: block;
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1020;
}
body.christmas .leaves span {
    position: absolute;
    top: -8vh;
    font-size: 0;
    animation-name: snow-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
body.christmas .leaves span::before {
    content: "❄";
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    opacity: 0.95;
}
body.christmas .leaves span:nth-child(1)  { left: 4%;  animation-duration: 13s; animation-delay: -2s; }
body.christmas .leaves span:nth-child(1)::before  { font-size: 20px; }
body.christmas .leaves span:nth-child(2)  { left: 14%; animation-duration: 17s; animation-delay: -9s; }
body.christmas .leaves span:nth-child(2)::before  { font-size: 28px; }
body.christmas .leaves span:nth-child(3)  { left: 24%; animation-duration: 11s; animation-delay: -5s; }
body.christmas .leaves span:nth-child(3)::before  { font-size: 16px; }
body.christmas .leaves span:nth-child(4)  { left: 36%; animation-duration: 15s; animation-delay: -12s; }
body.christmas .leaves span:nth-child(4)::before  { font-size: 24px; }
body.christmas .leaves span:nth-child(5)  { left: 47%; animation-duration: 12s; animation-delay: -7s; }
body.christmas .leaves span:nth-child(5)::before  { font-size: 18px; }
body.christmas .leaves span:nth-child(6)  { left: 58%; animation-duration: 18s; animation-delay: -3s; }
body.christmas .leaves span:nth-child(6)::before  { font-size: 26px; }
body.christmas .leaves span:nth-child(7)  { left: 68%; animation-duration: 10s; animation-delay: -10s; }
body.christmas .leaves span:nth-child(7)::before  { font-size: 15px; }
body.christmas .leaves span:nth-child(8)  { left: 78%; animation-duration: 14s; animation-delay: -6s; }
body.christmas .leaves span:nth-child(8)::before  { font-size: 22px; }
body.christmas .leaves span:nth-child(9)  { left: 87%; animation-duration: 16s; animation-delay: -13s; }
body.christmas .leaves span:nth-child(9)::before  { font-size: 19px; }
body.christmas .leaves span:nth-child(10) { left: 95%; animation-duration: 12s; animation-delay: -4s; }
body.christmas .leaves span:nth-child(10)::before { font-size: 25px; }

@keyframes snow-fall {
    0%   { transform: translate3d(0, -8vh, 0) rotate(0deg); }
    25%  { transform: translate3d(2vw, 25vh, 0) rotate(90deg); }
    50%  { transform: translate3d(-1.5vw, 55vh, 0) rotate(180deg); }
    75%  { transform: translate3d(1.5vw, 80vh, 0) rotate(270deg); }
    100% { transform: translate3d(-1vw, 108vh, 0) rotate(360deg); }
}

/* Phones: fixed backgrounds stutter on mobile Safari/Chrome. */
@media (max-width: 768px) {
    body.christmas { background-attachment: scroll; }
}

/* Respect visitors who prefer calm screens. */
@media (prefers-reduced-motion: reduce) {
    body.christmas .leaves { display: none; }
}
