/* 64ch Christmas theme — loaded only when switched on in Manage → Settings */

/* Dark green / berry red palette. ":root:root" beats the normal light and dark theme colours. */
:root:root {
    --color-primary-hue: 150;
    --color-primary-saturation: 28%;
    --color-primary-lightness: 30%;
    --color-secondary-hue: 355;
    --color-secondary-saturation: 80%;
    --color-secondary-lightness: 68%;
    --color-text-hue: 40;
    --color-text-saturation: 45%;
    --color-text-lightness: 92%;
    --lightness-multiplier: -1;
    --xmas-red: #e4473f;
    --xmas-cream: #f3e4c8;
}

/* The festive pattern behind everything */
html {
    background-color: #2f3130;
}
body {
    background: #333 url("../img/christmas-bg.webp") repeat;
    background-size: 1156px auto;
    background-attachment: fixed;
}

/* Keep text that sits directly on the pattern readable */
#header h1 a,
#header h2,
.front-page h1,
.front-page h2,
#content > h2,
.header-nav,
.no-content {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.6);
}
#header,
.header-nav,
.front-page.info header,
.front-page .about {
    border-radius: 6px;
}
.front-page .about,
.no-content {
    background: rgba(30, 36, 33, 0.82);
    padding: 8px 16px;
    border-radius: 6px;
}

/* Cards get a berry-red top edge, like a ribbon */
.card {
    border-top-color: var(--xmas-red);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Candy-cane stripe across the top of the page */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    z-index: 1000;
    pointer-events: none;
    background: repeating-linear-gradient(-45deg, var(--xmas-red) 0 12px, var(--xmas-cream) 12px 24px);
}

/* Gentle falling snow (two layers of dots drifting down) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
        radial-gradient(2px 2px at 90px 140px, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
        radial-gradient(3px 3px at 160px 80px, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
        radial-gradient(2px 2px at 230px 200px, rgba(255, 255, 255, 0.85) 50%, transparent 51%),
        radial-gradient(3px 3px at 60px 230px, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
        radial-gradient(2px 2px at 280px 20px, rgba(255, 255, 255, 0.75) 50%, transparent 51%);
    background-size: 300px 260px;
    animation: xmas-snow 18s linear infinite;
    opacity: 0.7;
}
@keyframes xmas-snow {
    from { background-position: 0 0; }
    to   { background-position: 60px 260px; }
}
@media (prefers-reduced-motion: reduce) {
    body::before { animation: none; }
}

/* Gold and Get Gold buttons stay gold; everything else gets the berry accent */
button:not(.text-button):not(.gold-button),
.button:not(.gold-button),
input[type="submit"] {
    border: 1px solid rgba(228, 71, 63, 0.45);
}
