/*
 * Seasonal and holiday palettes. "classic" is defined in tokens.css; the palettes below override only colours.
 * Each palette has a light variant (default) and a dark variant ([data-theme="dark"]).
 * Selected via [data-palette] on <html>, set by js/theme.js.
 */

/*
 * Dark mode for seasonal palettes: one shared neutral graphite base, so the page stays calm
 * and every accent reads well. Each season below only changes its accent colours.
 */
:root[data-palette]:not([data-palette="classic"])[data-theme="dark"] {
    --color-bg: #0e1014;
    --color-surface: #161a20;
    --color-surface-2: #1d222a;
    --color-border: #2a313b;
    --color-text: #e7eaee;
    --color-text-muted: #9ba3ae;
}

/* ---------- Autumn: burnt orange, olive, warm cream ---------- */
:root[data-palette="autumn"]:not([data-theme="dark"]) {
    --color-bg: #fbf6ef;
    --color-surface: #ffffff;
    --color-surface-2: #f5ebdd;
    --color-border: #ead9c3;
    --color-text: #2b1d12;
    --color-text-muted: #6e5844;
    --color-accent: #b4531b;
    --color-accent-strong: #8f3f12;
    --color-highlight: #5f6d1f;
    --gradient-hero: linear-gradient(135deg, #c2571a 0%, #8a6d1f 100%);
}

:root[data-palette="autumn"][data-theme="dark"] {
    --color-accent: #f39b5f;
    --color-accent-strong: #a94716;
    --color-highlight: #e6c06a;
    --gradient-hero: linear-gradient(135deg, #f39b5f 0%, #e6c06a 100%);
}

/* ---------- Winter: ice blue, frost ---------- */
:root[data-palette="winter"]:not([data-theme="dark"]) {
    --color-bg: #f3f7fb;
    --color-surface: #ffffff;
    --color-surface-2: #e8f0f8;
    --color-border: #d3e0ec;
    --color-text: #0f1d2b;
    --color-text-muted: #4f6275;
    --color-accent: #1d6fb8;
    --color-accent-strong: #155a96;
    --color-highlight: #0e7490;
    --gradient-hero: linear-gradient(135deg, #1d6fb8 0%, #0e7490 100%);
}

:root[data-palette="winter"][data-theme="dark"] {
    --color-accent: #8ec9f2;
    --color-accent-strong: #22639f;
    --color-highlight: #d3eaff;
    --gradient-hero: linear-gradient(135deg, #8ec9f2 0%, #d3eaff 100%);
}

/* ---------- Spring: fresh green, blossom pink ---------- */
:root[data-palette="spring"]:not([data-theme="dark"]) {
    --color-bg: #f7fbf5;
    --color-surface: #ffffff;
    --color-surface-2: #eaf5e6;
    --color-border: #d6e9cf;
    --color-text: #16241a;
    --color-text-muted: #55695a;
    --color-accent: #2f855a;
    --color-accent-strong: #276749;
    --color-highlight: #be185d;
    --gradient-hero: linear-gradient(135deg, #2f855a 0%, #db2777 100%);
}

:root[data-palette="spring"][data-theme="dark"] {
    --color-accent: #5fd39a;
    --color-accent-strong: #1f7a4f;
    --color-highlight: #f4a6c8;
    --gradient-hero: linear-gradient(135deg, #5fd39a 0%, #f4a6c8 100%);
}

/* ---------- Summer: sea teal, sunshine amber ---------- */
:root[data-palette="summer"]:not([data-theme="dark"]) {
    --color-bg: #fffbf2;
    --color-surface: #ffffff;
    --color-surface-2: #fef3d7;
    --color-border: #f6e2b0;
    --color-text: #1f1a0e;
    --color-text-muted: #6b5d3e;
    --color-accent: #0e7490;
    --color-accent-strong: #0b5e75;
    --color-highlight: #b45309;
    --gradient-hero: linear-gradient(135deg, #f59e0b 0%, #0e7490 100%);
}

:root[data-palette="summer"][data-theme="dark"] {
    --color-accent: #f5c451;
    --color-accent-strong: #0f6e85;
    --color-highlight: #5fd4c8;
    --gradient-hero: linear-gradient(135deg, #f5c451 0%, #5fd4c8 100%);
}

/* =====================  Holidays (chosen by date in "Seasonal" mode)  ===================== */

/* ---------- Christmas: festive red, pine green, gold ---------- */
:root[data-palette="christmas"]:not([data-theme="dark"]) {
    --color-bg: #fbf8f3;
    --color-surface: #ffffff;
    --color-surface-2: #f2ece2;
    --color-border: #e5dccd;
    --color-text: #1a1f1a;
    --color-text-muted: #5a625a;
    --color-accent: #b91c1c;
    --color-accent-strong: #991b1b;
    --color-highlight: #15803d;
    --gradient-hero: linear-gradient(135deg, #b91c1c 0%, #15803d 100%);
}

:root[data-palette="christmas"][data-theme="dark"] {
    --color-accent: #f87171;
    --color-accent-strong: #b91c1c;
    --color-highlight: #fcd34d;
    --gradient-hero: linear-gradient(135deg, #f87171 0%, #fcd34d 100%);
}

/* ---------- New Year: champagne gold, midnight blue ---------- */
:root[data-palette="newyear"]:not([data-theme="dark"]) {
    --color-bg: #fbf9f3;
    --color-surface: #ffffff;
    --color-surface-2: #f4efe0;
    --color-border: #e7dfc6;
    --color-text: #1a1a2e;
    --color-text-muted: #5b5a70;
    --color-accent: #946200;
    --color-accent-strong: #7a5200;
    --color-highlight: #1e3a8a;
    --gradient-hero: linear-gradient(135deg, #b8860b 0%, #1e3a8a 100%);
}

:root[data-palette="newyear"][data-theme="dark"] {
    --color-accent: #f5c95c;
    --color-accent-strong: #7a5200;
    --color-highlight: #c7d2fe;
    --gradient-hero: linear-gradient(135deg, #f5c95c 0%, #c7d2fe 100%);
}
