/* ===== Seasonal themes (admin: /admin/theme). Colors only — layout untouched. =====
   Single source of truth, shared by crochetrunner.online AND shop.crochetrunner.online.
   The active theme id comes from <html data-season="..."> (shop reads it from /api/public/season). */
/* ----- Christmas family: every id starting with "christmas". Dark, festive, red + green + gold.
   Each theme sets its colors plus --xmas-* decoration vars; the shared rules below use them.
   [data-xmas-vars="id"] lets the admin theme picker render a mini preview with the same vars. ----- */
html[data-season="christmas"], [data-xmas-vars="christmas"] {
  /* Evergreen Fair Isle */
  --background: 150 38% 10%; --foreground: 42 45% 93%;
  --card: 150 32% 14%; --card-foreground: 42 45% 93%;
  --popover: 150 32% 14%; --popover-foreground: 42 45% 93%;
  --primary: 356 74% 48%; --primary-foreground: 0 0% 100%;
  --secondary: 150 28% 20%; --secondary-foreground: 44 75% 82%;
  --accent: 150 26% 22%; --accent-foreground: 44 80% 78%;
  --muted: 150 24% 17%; --muted-foreground: 42 25% 78%;
  --border: 44 35% 28%; --input: 44 35% 28%; --ring: 44 75% 55%;
  --chart-1: 356 74% 52%; --chart-2: 145 50% 40%; --chart-3: 44 75% 55%;
  --xmas-banner-bg: #9e1b2a; --xmas-gold: #e6c063; --xmas-footer-bg: #0b2416;
  --xmas-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14' viewBox='0 0 24 14'%3E%3Crect width='24' height='14' fill='%23B3121F'/%3E%3Cpath d='M0 1l6 3 6-3 6 3 6-3M0 13l6-3 6 3 6-3 6 3' fill='none' stroke='%23D4A537' stroke-width='1.6'/%3E%3Cpath d='M12 3.5l3.5 3.5-3.5 3.5L8.5 7z' fill='%23238046'/%3E%3Ccircle cx='12' cy='7' r='1.1' fill='%23F4EAD2'/%3E%3Ccircle cx='0' cy='7' r='1.1' fill='%23F4EAD2'/%3E%3Ccircle cx='24' cy='7' r='1.1' fill='%23F4EAD2'/%3E%3C/svg%3E");
  --xmas-band-h: 14px;
}
html[data-season="christmas-cranberry"], [data-xmas-vars="christmas-cranberry"] {
  /* Cranberry Sweater */
  --background: 352 48% 12%; --foreground: 40 45% 93%;
  --card: 352 40% 16%; --card-foreground: 40 45% 93%;
  --popover: 352 40% 16%; --popover-foreground: 40 45% 93%;
  --primary: 145 52% 34%; --primary-foreground: 0 0% 100%;
  --secondary: 352 35% 21%; --secondary-foreground: 44 75% 82%;
  --accent: 352 32% 23%; --accent-foreground: 44 80% 78%;
  --muted: 352 30% 18%; --muted-foreground: 35 25% 80%;
  --border: 44 35% 30%; --input: 44 35% 30%; --ring: 44 75% 55%;
  --chart-1: 145 52% 40%; --chart-2: 356 70% 55%; --chart-3: 44 75% 55%;
  --xmas-banner-bg: #17502f; --xmas-gold: #e6c063; --xmas-footer-bg: #250a10;
  --xmas-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='0 0 20 14'%3E%3Crect width='20' height='14' fill='%239E1B2A'/%3E%3Cpath d='M10 3l4 5h-2.5l3 3.5h-9l3-3.5H6z' fill='%232E8B4E'/%3E%3Ccircle cx='10' cy='2.4' r='1' fill='%23E2B84A'/%3E%3Cpath d='M0 .8h20M0 13.2h20' stroke='%23E2B84A' stroke-width='1.4' stroke-dasharray='2 1.5'/%3E%3C/svg%3E");
  --xmas-band-h: 14px;
}
html[data-season="christmas-fireside"], [data-xmas-vars="christmas-fireside"] {
  /* Fireside Cable Knit */
  --background: 22 32% 10%; --foreground: 38 45% 92%;
  --card: 22 27% 14%; --card-foreground: 38 45% 92%;
  --popover: 22 27% 14%; --popover-foreground: 38 45% 92%;
  --primary: 356 72% 46%; --primary-foreground: 0 0% 100%;
  --secondary: 150 30% 18%; --secondary-foreground: 44 75% 82%;
  --accent: 22 24% 20%; --accent-foreground: 44 80% 78%;
  --muted: 22 22% 16%; --muted-foreground: 35 25% 78%;
  --border: 40 35% 27%; --input: 40 35% 27%; --ring: 44 75% 55%;
  --chart-1: 356 72% 52%; --chart-2: 145 50% 40%; --chart-3: 44 75% 55%;
  --xmas-banner-bg: #8f1520; --xmas-gold: #e6c063; --xmas-footer-bg: #1a0f09;
  --xmas-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='14' viewBox='0 0 12 14'%3E%3Crect width='12' height='7' fill='%23A3161F'/%3E%3Crect y='7' width='12' height='7' fill='%231D5E37'/%3E%3Cpath d='M1 1.5l5 4 5-4M1 8.5l5 4 5-4' fill='none' stroke='%23F4EAD2' stroke-opacity='.5' stroke-width='1.4'/%3E%3Cpath d='M0 7h12' stroke='%23D4A537' stroke-width='1.2'/%3E%3C/svg%3E");
  --xmas-band-h: 14px;
}
html[data-season="christmas-midnight"], [data-xmas-vars="christmas-midnight"] {
  /* Midnight Snowfall */
  --background: 160 42% 7%; --foreground: 200 20% 94%;
  --card: 160 35% 11%; --card-foreground: 200 20% 94%;
  --popover: 160 35% 11%; --popover-foreground: 200 20% 94%;
  --primary: 356 74% 48%; --primary-foreground: 0 0% 100%;
  --secondary: 160 30% 16%; --secondary-foreground: 44 75% 82%;
  --accent: 160 28% 18%; --accent-foreground: 44 80% 78%;
  --muted: 160 28% 13%; --muted-foreground: 190 15% 78%;
  --border: 44 30% 26%; --input: 44 30% 26%; --ring: 44 75% 55%;
  --chart-1: 356 74% 52%; --chart-2: 145 50% 40%; --chart-3: 44 75% 55%;
  --xmas-banner-bg: linear-gradient(90deg, #8f1520, #5a1220 50%, #17502f); --xmas-gold: #f0cf76; --xmas-footer-bg: #04140e;
  --xmas-band: linear-gradient(90deg, #b88a2a, #f2d27a 50%, #b88a2a); --xmas-band-h: 3px;
  --xmas-header-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='56' viewBox='0 0 80 56'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.5' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M14 16h12M17 10.8l6 10.4M17 21.2l6-10.4'/%3E%3Cpath d='M56 36h8M58 32.5l4 7M58 39.5l4-7'/%3E%3C/g%3E%3Cg fill='%23D4A537' fill-opacity='.7'%3E%3Ccircle cx='44' cy='12' r='1.2'/%3E%3Ccircle cx='8' cy='44' r='1'/%3E%3Ccircle cx='72' cy='14' r='.9'/%3E%3C/g%3E%3C/svg%3E");
  --xmas-body-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120' viewBox='0 0 160 120'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.10' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M24 26h14M27.5 20l7 12M27.5 32l7-12'/%3E%3Cpath d='M112 84h10M114.5 79.7l5 8.6M114.5 88.3l5-8.6'/%3E%3C/g%3E%3Cg fill='%23FFFFFF' fill-opacity='.12'%3E%3Ccircle cx='90' cy='20' r='1.5'/%3E%3Ccircle cx='50' cy='96' r='1.2'/%3E%3Ccircle cx='142' cy='40' r='1'/%3E%3C/g%3E%3C/svg%3E");
}
html[data-season="christmas-gold"], [data-xmas-vars="christmas-gold"] {
  /* Golden Elegance */
  --background: 30 10% 8%; --foreground: 40 35% 92%;
  --card: 30 8% 12%; --card-foreground: 40 35% 92%;
  --popover: 30 8% 12%; --popover-foreground: 40 35% 92%;
  --primary: 43 72% 52%; --primary-foreground: 30 35% 10%;
  --secondary: 356 40% 20%; --secondary-foreground: 44 75% 85%;
  --accent: 150 30% 17%; --accent-foreground: 44 80% 80%;
  --muted: 30 8% 15%; --muted-foreground: 38 18% 76%;
  --border: 43 40% 28%; --input: 43 40% 28%; --ring: 43 72% 52%;
  --chart-1: 43 72% 55%; --chart-2: 356 65% 50%; --chart-3: 145 45% 40%;
  --xmas-banner-bg: #0f3d24; --xmas-gold: #f0cf76; --xmas-footer-bg: #0c0a08;
  --xmas-band: linear-gradient(180deg, #b3121f 0 50%, #1d5e37 50% 100%); --xmas-band-h: 4px;
  --xmas-header-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='56' viewBox='0 0 80 56'%3E%3Cg fill='none' stroke='%23D4A537' stroke-opacity='.55' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M14 16h12M17 10.8l6 10.4M17 21.2l6-10.4'/%3E%3Cpath d='M56 36h8M58 32.5l4 7M58 39.5l4-7'/%3E%3C/g%3E%3Cg fill='%23FFFFFF' fill-opacity='.35'%3E%3Ccircle cx='44' cy='12' r='1.2'/%3E%3Ccircle cx='8' cy='44' r='1'/%3E%3Ccircle cx='72' cy='14' r='.9'/%3E%3C/g%3E%3C/svg%3E");
}
html[data-season="christmas-holly"], [data-xmas-vars="christmas-holly"] {
  /* Holly & Snow */
  --background: 356 48% 13%; --foreground: 40 45% 94%;
  --card: 356 40% 17%; --card-foreground: 40 45% 94%;
  --popover: 356 40% 17%; --popover-foreground: 40 45% 94%;
  --primary: 145 52% 34%; --primary-foreground: 0 0% 100%;
  --secondary: 150 30% 18%; --secondary-foreground: 44 75% 82%;
  --accent: 356 32% 22%; --accent-foreground: 44 80% 78%;
  --muted: 356 30% 18%; --muted-foreground: 35 25% 80%;
  --border: 44 35% 30%; --input: 44 35% 30%; --ring: 44 75% 55%;
  --chart-1: 145 52% 40%; --chart-2: 356 70% 55%; --chart-3: 44 75% 55%;
  --xmas-banner-bg: #0f3d24; --xmas-gold: #f0cf76; --xmas-footer-bg: #2a080d;
  --xmas-band: linear-gradient(90deg, #b88a2a, #f2d27a 50%, #b88a2a); --xmas-band-h: 3px;
  --xmas-header-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='56' viewBox='0 0 80 56'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.5' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M14 16h12M17 10.8l6 10.4M17 21.2l6-10.4'/%3E%3Cpath d='M56 36h8M58 32.5l4 7M58 39.5l4-7'/%3E%3C/g%3E%3Cg fill='%23D4A537' fill-opacity='.7'%3E%3Ccircle cx='44' cy='12' r='1.2'/%3E%3Ccircle cx='8' cy='44' r='1'/%3E%3Ccircle cx='72' cy='14' r='.9'/%3E%3C/g%3E%3C/svg%3E");
}

/* Shared Christmas decorations */
.xmas-banner { display: none; }
html[data-season^="christmas"] .xmas-banner,
[data-xmas-vars] .xmas-banner {
  display: block;
  background: var(--xmas-banner-bg);
  color: var(--xmas-gold);
}
html[data-season^="christmas"] body { background-image: var(--xmas-body-pattern, none); }
html[data-season^="christmas"] header.site-header {
  background-image: var(--xmas-header-pattern, none);
  border-bottom-color: transparent;
}
html[data-season^="christmas"] header.site-header::after,
[data-xmas-vars] .xmas-mock-band {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: var(--xmas-band-h, 12px);
  background-image: var(--xmas-band, none);
  background-repeat: repeat-x;
  background-size: auto 100%;
  pointer-events: none;
}
[data-xmas-vars] .xmas-mock-band { position: static; display: block; }
[data-xmas-vars] .xmas-mock-header { background-image: var(--xmas-header-pattern, none); }
html[data-season^="christmas"] footer.site-footer {
  background-color: var(--xmas-footer-bg);
  background-image: var(--xmas-band, none), var(--xmas-header-pattern, none);
  background-size: auto var(--xmas-band-h, 12px), auto;
  background-repeat: repeat-x, repeat;
  background-position: top left, center;
  border-top-color: transparent;
}
html[data-season="christmas-gold"] .signup-banner-bar .text-primary { color: hsl(30 35% 12%); }
html[data-season="winter"] {
  --background: 210 30% 98%;
  --card: 210 30% 99.5%;
  --popover: 210 30% 99.5%;
  --primary: 210 50% 37%;
  --secondary: 205 40% 92%;
  --secondary-foreground: 210 35% 25%;
  --accent: 200 45% 88%;
  --accent-foreground: 210 40% 22%;
  --muted: 210 20% 94%;
  --border: 210 20% 88%;
  --input: 210 20% 88%;
  --ring: 210 50% 37%;
}
html.dark[data-season="winter"] {
  --background: 215 25% 10%;
  --card: 215 22% 13%;
  --popover: 215 22% 13%;
  --primary: 205 60% 60%;
  --secondary: 215 18% 20%;
  --accent: 210 25% 22%;
  --accent-foreground: 205 40% 85%;
  --border: 215 15% 22%;
  --input: 215 15% 22%;
  --ring: 205 60% 60%;
}

html[data-season="valentines"] {
  --background: 345 40% 98%;
  --card: 345 40% 99.5%;
  --popover: 345 40% 99.5%;
  --primary: 340 57% 45%;
  --secondary: 345 60% 92%;
  --secondary-foreground: 340 35% 28%;
  --accent: 350 65% 88%;
  --accent-foreground: 340 40% 25%;
  --muted: 345 20% 94%;
  --border: 345 20% 89%;
  --input: 345 20% 89%;
  --ring: 340 57% 45%;
}
html.dark[data-season="valentines"] {
  --primary: 340 65% 62%;
  --accent: 340 25% 22%;
  --ring: 340 65% 62%;
}

html[data-season="spring"] {
  --background: 80 25% 97%;
  --card: 80 25% 99%;
  --popover: 80 25% 99%;
  --primary: 130 25% 38%;
  --secondary: 270 35% 93%;
  --secondary-foreground: 270 25% 30%;
  --accent: 270 40% 89%;
  --accent-foreground: 270 30% 25%;
  --muted: 80 15% 93%;
  --border: 80 15% 87%;
  --input: 80 15% 87%;
  --ring: 130 25% 38%;
}
html.dark[data-season="spring"] {
  --primary: 130 30% 55%;
  --accent: 270 20% 22%;
  --ring: 130 30% 55%;
}

html[data-season="summer"] {
  --background: 40 100% 98%;
  --card: 40 100% 99.5%;
  --popover: 40 100% 99.5%;
  --primary: 11 62% 45%;
  --secondary: 45 85% 89%;
  --secondary-foreground: 30 50% 25%;
  --accent: 45 90% 82%;
  --accent-foreground: 30 55% 22%;
  --muted: 40 30% 93%;
  --border: 40 30% 87%;
  --input: 40 30% 87%;
  --ring: 11 62% 45%;
}
html.dark[data-season="summer"] {
  --primary: 11 70% 58%;
  --accent: 40 30% 22%;
  --ring: 11 70% 58%;
}

html[data-season="autumn"] {
  --background: 38 40% 97%;
  --card: 38 40% 99%;
  --popover: 38 40% 99%;
  --primary: 26 80% 39%;
  --secondary: 40 65% 88%;
  --secondary-foreground: 30 45% 25%;
  --accent: 38 70% 83%;
  --accent-foreground: 25 50% 22%;
  --muted: 38 20% 92%;
  --border: 38 20% 86%;
  --input: 38 20% 86%;
  --ring: 26 80% 39%;
}
html.dark[data-season="autumn"] {
  --primary: 28 75% 55%;
  --accent: 30 30% 22%;
  --ring: 28 75% 55%;
}
