/*
 * 7daysBroad Christmas — loads after the default theme CSS and style.css.
 * Palette overrides first, then home sections, then shared-page accents.
 * CSS-only decoration: no JS, no external assets.
 */

:root {
    --primary: #c62828;
    --primary-strong: #8e1b1b;
    --secondary: #f2c14e;
    --accent: #ffe8a3;
    --background: #08140f;
    --surface: #10251b;
    --surface-strong: #163325;
    --text: #f7fffb;
    --muted: #c6ded1;
    --line: rgba(242, 193, 78, 0.22);
    --shadow: 0 18px 50px rgba(3, 14, 9, 0.55);
}

body {
    background-color: var(--background);
}

/* Falling snow: two fixed layers, one drifting the other way. */
body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-repeat: repeat;
    will-change: background-position;
}

body::before {
    opacity: 0.55;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.85) 50%, transparent 51%),
        radial-gradient(2px 2px at 140px 80px, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
        radial-gradient(3px 3px at 90px 160px, rgba(255, 255, 255, 0.7) 50%, transparent 51%);
    background-size: 260px 260px, 340px 340px, 460px 460px;
    animation: christmas-snow-fall 18s linear infinite;
}

body::after {
    opacity: 0.3;
    background-image:
        radial-gradient(4px 4px at 60px 120px, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
        radial-gradient(2px 2px at 220px 40px, rgba(255, 255, 255, 0.5) 50%, transparent 51%);
    background-size: 520px 520px, 700px 700px;
    animation: christmas-snow-drift 26s linear infinite reverse;
}

/* Hero: evergreen night, crimson glow and gold bokeh. */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(242, 193, 78, 0.16);
    background:
        radial-gradient(circle at 18% 12%, rgba(242, 193, 78, 0.16), transparent 28%),
        radial-gradient(circle at 82% 8%, rgba(198, 40, 40, 0.28), transparent 30%),
        linear-gradient(135deg, #07130e 0%, #0f2a1d 42%, #3a0d13 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 232, 163, 0.12), transparent 18%),
        radial-gradient(circle at 78% 24%, rgba(198, 40, 40, 0.18), transparent 22%),
        radial-gradient(circle at 55% 78%, rgba(57, 201, 141, 0.1), transparent 20%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
    background-image:
        radial-gradient(circle, rgba(242, 193, 78, 0.55) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(255, 255, 255, 0.4) 0 1.5px, transparent 2.5px);
    background-size: 160px 160px, 120px 120px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
    animation: christmas-twinkle 6s ease-in-out infinite;
}

.hero-particles span {
    background: rgba(242, 193, 78, 0.12);
    filter: blur(20px);
    animation: christmas-float 9s ease-in-out infinite;
}

.hero-particles span:nth-child(2) {
    background: rgba(198, 40, 40, 0.18);
    animation-delay: 1.2s;
}

.hero-particles span:nth-child(3) {
    background: rgba(57, 201, 141, 0.14);
    animation-delay: 2.4s;
}

.hero .eyebrow {
    color: var(--secondary);
}

.hero .eyebrow::before {
    content: "\2726";
    margin-right: 8px;
    color: var(--accent);
}

.title-highlight {
    background: linear-gradient(135deg, #ff6b6b 0%, #f2c14e 45%, #ffe8a3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-text {
    background: linear-gradient(135deg, #ffe8a3 0%, #f2c14e 40%, #7fe0a8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    color: var(--muted);
}

.hero-stat {
    border-color: rgba(242, 193, 78, 0.22);
    background: rgba(8, 20, 15, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255, 232, 163, 0.04), 0 10px 24px rgba(3, 14, 9, 0.35);
}

.hero-stat strong {
    color: var(--accent);
}

.scroll-indicator {
    border-color: rgba(242, 193, 78, 0.35);
    background: rgba(198, 40, 40, 0.12);
    color: var(--accent);
}

/* Primary actions: crimson ribbon with a gold edge. */
.btn-primary {
    border-color: rgba(242, 193, 78, 0.35);
    background: linear-gradient(135deg, #e53935 0%, #c62828 55%, #8e1b1b 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(142, 27, 27, 0.32);
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.btn-secondary {
    border-color: rgba(242, 193, 78, 0.28);
    background: rgba(22, 51, 37, 0.85);
    color: var(--accent);
}

.btn-secondary:hover {
    border-color: rgba(242, 193, 78, 0.5);
    background: rgba(22, 51, 37, 1);
}

.btn-connect {
    background: linear-gradient(135deg, #7fe0a8, #2e7d32);
    color: #04170d;
}

.btn-donate {
    background: linear-gradient(135deg, #f2c14e, #c98a1b);
    color: #211504;
    box-shadow: 0 12px 26px rgba(201, 138, 27, 0.28);
}

/* Server cards: snowy cap + candy-cane edge. */
.servers-section {
    background: linear-gradient(180deg, rgba(8, 20, 15, 0.75), rgba(5, 14, 10, 0.96));
}

.server-card {
    position: relative;
    border-color: rgba(242, 193, 78, 0.24);
    background: rgba(10, 26, 18, 0.92);
}

.server-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    z-index: 1;
    background: linear-gradient(90deg, #c62828 0 16px, #f7fffb 16px 32px, #2e7d32 32px 48px, #f2c14e 48px 64px);
    background-size: 64px 6px;
    opacity: 0.9;
}

.server-card:hover {
    border-color: rgba(242, 193, 78, 0.5);
}

.server-card-header {
    border-bottom-color: rgba(242, 193, 78, 0.18);
    background: linear-gradient(135deg, rgba(16, 37, 27, 1), rgba(58, 13, 19, 1));
}

.server-specs,
.server-actions {
    background: rgba(11, 31, 23, 0.85);
}

.server-specs i {
    color: var(--secondary);
}

.server-badge-easy {
    border-color: rgba(127, 224, 168, 0.28);
    background: rgba(46, 125, 50, 0.16);
    color: #b9f6ca;
}

/* Discord and donate. */
.discord-section {
    background:
        radial-gradient(circle at 12% 10%, rgba(198, 40, 40, 0.22), transparent 30%),
        radial-gradient(circle at 88% 20%, rgba(57, 201, 141, 0.12), transparent 28%),
        #08140f;
}

.discord-widget {
    border-color: rgba(242, 193, 78, 0.22);
}

.donate-section {
    background: linear-gradient(180deg, rgba(57, 201, 141, 0.05), rgba(198, 40, 40, 0.06));
}

.donate-content {
    border-color: rgba(242, 193, 78, 0.24);
    background: rgba(16, 37, 27, 0.94);
}

.donate-methods span {
    border-color: rgba(242, 193, 78, 0.2);
    background: rgba(198, 40, 40, 0.08);
    color: var(--muted);
}

/* Shared pages keep their layout; variables plus a gold heading accent. */
.section-header h2 {
    color: var(--text);
}

.section-header .eyebrow {
    color: var(--secondary);
}

@keyframes christmas-snow-fall {
    from { background-position: 0 0, 0 0, 0 0; }
    to { background-position: 0 520px, 0 680px, 0 920px; }
}

@keyframes christmas-snow-drift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 120px 700px, -80px 1040px; }
}

@keyframes christmas-twinkle {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.7; }
}

@keyframes christmas-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-18px) scale(1.06); }
}

/* Public forum: light skin using the forum's existing variables. */
.forum-page {
    background:
        radial-gradient(circle at 8% 0, rgba(242, 193, 78, 0.1), transparent 25rem),
        radial-gradient(circle at 90% 8%, rgba(198, 40, 40, 0.14), transparent 28rem),
        var(--bg);
}

.forum-header {
    border-bottom-color: rgba(242, 193, 78, 0.18);
    background: rgba(8, 20, 15, 0.92);
}

.forum-nav > a:hover,
.forum-nav-button:hover,
.forum-nav > a[aria-current="page"] {
    background: rgba(198, 40, 40, 0.16);
}

.forum-button {
    border-color: rgba(242, 193, 78, 0.35);
}

.forum-topic-icon,
.forum-category-icon,
.forum-stat-avatar {
    border-color: rgba(242, 193, 78, 0.24);
    background: rgba(242, 193, 78, 0.08);
    color: var(--secondary);
}

.forum-status.is-hidden,
.forum-button-danger {
    border-color: rgba(198, 40, 40, 0.32);
    background: rgba(198, 40, 40, 0.14);
    color: #ffb3a7;
}

.forum-toast {
    border-color: rgba(242, 193, 78, 0.4);
    background: #10251b;
    color: var(--text);
}

.forum-toast strong {
    color: var(--secondary);
}

@media (max-width: 760px) {
    body::before {
        opacity: 0.4;
    }

    body::after {
        opacity: 0.2;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after,
    .hero::after,
    .hero-particles span,
    .scroll-indicator {
        animation: none !important;
    }

    body::after {
        opacity: 0.18;
    }
}
