/* Software Combos - holiday designs. Each applies only while <body> has its
 * season-* class (inc/seasons.php decides which, by date), so the normal design
 * in style.css is untouched the rest of the year. A design just swaps the
 * variables style.css is built on:
 *   --red*  buy buttons, prices, hero slash, featured strip
 *   --blue* hero, headings, normal buttons, footer
 *   --deal / --deal-ink  the highlight colour and the text that sits on it
 *   --page  page background   --pattern  hero/band/footer texture
 *   --stripes  thin accent lines   --glyph / --glyphs  the holiday symbol      */

body[class*="season-"]{--glyphs:"";}
body[class*="season-"] .topbar::before,body[class*="season-"] .topbar::after{content:var(--glyphs);color:var(--deal);opacity:.9}
body[class*="season-"] .topbar b.code{background:var(--deal);color:var(--deal-ink);padding:1px 7px;border-radius:5px;letter-spacing:.06em}
body[class*="season-"] .trust li::before{content:var(--glyph);color:var(--deal)}
body[class*="season-"] .eyebrow::before{content:var(--glyph)}

/* holiday ribbon on the hero price tag */
.season-sticker{display:none}
body[class*="season-"] .season-sticker{display:block;position:absolute;top:-16px;left:50%;z-index:3;transform:translateX(-50%) rotate(-3deg);white-space:nowrap;
  background:var(--deal);color:var(--deal-ink);font-family:var(--head);font-weight:700;text-transform:uppercase;letter-spacing:.06em;font-size:1.15rem;
  padding:7px 18px;border-radius:8px;box-shadow:0 8px 18px rgba(0,0,0,.3)}
body[class*="season-"] .season-sticker span::before{content:var(--glyph)}
@media (max-width:1000px){body[class*="season-"] .season-sticker{top:-12px;font-size:1rem}}

/* ---------- Christmas: red and pine green, candy-cane lines, falling snow ---------- */
body.season-christmas{
  --red:#c8102e;--red-2:#9e0c24;--red-3:#730818;
  --blue:#0e5a34;--blue-2:#0a4627;--blue-3:#06301a;--blue-hi:#1f8a4c;
  --deal:#f6c945;--deal-ink:#3b2a00;--page:#f6f3ee;
  --glyph:"\2744  ";--glyphs:" \2744 \2745 \2744 ";
  --stripes:repeating-linear-gradient(135deg,#c8102e 0 10px,#fff 10px 20px);
  --pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.14' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M16 7v18M7 16h18M10 10l12 12M22 10L10 22'/%3E%3Cpath d='M48 39v18M39 48h18M42 42l12 12M54 42L42 54'/%3E%3C/g%3E%3C/svg%3E") 0 0/64px 64px;
}
body.season-christmas .hero{
  background:radial-gradient(circle,rgba(255,255,255,.85) 1.6px,transparent 2.2px) 0 0/90px 90px,
             radial-gradient(circle,rgba(255,255,255,.6) 1px,transparent 1.6px) 20px 30px/55px 55px,
             var(--pattern),linear-gradient(115deg,var(--blue) 0%,var(--blue-2) 58%,var(--blue-3) 100%);
  animation:sc-snow 16s linear infinite}
@keyframes sc-snow{to{background-position:30px 180px,20px 140px,0 0,0 0}}

/* ---------- New Year: midnight and gold, confetti ---------- */
body.season-new-year{
  --red:#946a0c;--red-2:#7a5608;--red-3:#5a3f05;
  --blue:#24145c;--blue-2:#1a0f45;--blue-3:#0e0827;--blue-hi:#5b3fc4;
  --deal:#ffd65a;--deal-ink:#2a1c00;--page:#f3f1f8;
  --glyph:"\2726  ";--glyphs:" \2726 \2727 \2726 ";
  --stripes:linear-gradient(90deg,#ffd65a 0 60%,#fff 60% 70%,#b8891a 70%);
  --pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cg fill-opacity='.4'%3E%3Crect x='8' y='10' width='4' height='9' rx='1' fill='%23fff' transform='rotate(25 10 14)'/%3E%3Crect x='44' y='6' width='4' height='9' rx='1' fill='%23ffd65a' transform='rotate(-30 46 10)'/%3E%3Crect x='30' y='40' width='4' height='9' rx='1' fill='%23fff' transform='rotate(60 32 44)'/%3E%3Crect x='56' y='50' width='4' height='9' rx='1' fill='%23ffd65a' transform='rotate(10 58 54)'/%3E%3Ccircle cx='20' cy='56' r='2.2' fill='%23fff'/%3E%3Ccircle cx='60' cy='28' r='2.2' fill='%23ffd65a'/%3E%3C/g%3E%3Cpath d='M38 18l1.4 4 4 1.4-4 1.4-1.4 4-1.4-4-4-1.4 4-1.4z' fill='%23fff' fill-opacity='.5'/%3E%3C/svg%3E") 0 0/70px 70px;
}

/* ---------- Valentine's: rose and plum, hearts ---------- */
body.season-valentines{
  --red:#d81b60;--red-2:#ad1457;--red-3:#7d0e3a;
  --blue:#5c1745;--blue-2:#481135;--blue-3:#2e0a22;--blue-hi:#9c2b72;
  --deal:#ffc2d8;--deal-ink:#5c1745;--page:#fbf2f5;
  --glyph:"\2665  ";--glyphs:" \2665 \2665 \2665 ";
  --stripes:repeating-linear-gradient(90deg,#d81b60 0 16px,#ffc2d8 16px 32px);
  --pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='%23fff' fill-opacity='.14'%3E%3Cpath d='M15 24s-9-5.5-9-11a4.5 4.5 0 0 1 9-1.5 4.5 4.5 0 0 1 9 1.5c0 5.5-9 11-9 11z'/%3E%3Cpath d='M45 54s-6-3.7-6-7.3a3 3 0 0 1 6-1 3 3 0 0 1 6 1c0 3.6-6 7.3-6 7.3z'/%3E%3C/g%3E%3C/svg%3E") 0 0/60px 60px;
}

/* ---------- St Patrick's: emerald and gold, shamrocks ---------- */
body.season-st-patricks{
  --red:#159447;--red-2:#0f7638;--red-3:#0a5428;
  --blue:#0e3d26;--blue-2:#0a2f1d;--blue-3:#061e12;--blue-hi:#1a7a4a;
  --deal:#ffd23f;--deal-ink:#3a2a00;--page:#f1f7f2;
  --glyph:"\2618  ";--glyphs:" \2618 \2618 \2618 ";
  --stripes:linear-gradient(90deg,#159447 0 33.3%,#fff 33.3% 66.6%,#f08a24 66.6%);
  --pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='%23fff' fill-opacity='.12'%3E%3Ccircle cx='16' cy='11' r='5'/%3E%3Ccircle cx='10.5' cy='17.5' r='5'/%3E%3Ccircle cx='21.5' cy='17.5' r='5'/%3E%3Ccircle cx='48' cy='43' r='3.4'/%3E%3Ccircle cx='44.3' cy='47.5' r='3.4'/%3E%3Ccircle cx='51.7' cy='47.5' r='3.4'/%3E%3C/g%3E%3Cpath d='M16 19q1 6 4 9M48 49q.7 4 2.7 6' stroke='%23fff' stroke-opacity='.12' stroke-width='2' fill='none'/%3E%3C/svg%3E") 0 0/64px 64px;
}

/* ---------- Easter: lilac and spring green, pastel eggs ---------- */
body.season-easter{
  --red:#7a4cc2;--red-2:#6339a6;--red-3:#47287a;
  --blue:#17694f;--blue-2:#11523e;--blue-3:#0a3829;--blue-hi:#24966f;
  --deal:#ffe27a;--deal-ink:#3a2c00;--page:#f6f3fb;
  --glyph:"\273F  ";--glyphs:" \273F \273F \273F ";
  --stripes:linear-gradient(90deg,#b79ce6 0 25%,#8fd3b6 25% 50%,#ffe27a 50% 75%,#f7a8c4 75%);
  --pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cg fill-opacity='.2'%3E%3Cellipse cx='16' cy='18' rx='6' ry='8' fill='%23fff'/%3E%3Cellipse cx='52' cy='50' rx='5' ry='6.6' fill='%23ffe27a'/%3E%3C/g%3E%3Cpath d='M10.5 17h11M10.8 21h10.4' stroke='%23fff' stroke-opacity='.25' stroke-width='1.4'/%3E%3Cg fill='%23fff' fill-opacity='.2'%3E%3Ccircle cx='52' cy='16' r='2'/%3E%3Ccircle cx='55' cy='19' r='2'/%3E%3Ccircle cx='49' cy='19' r='2'/%3E%3Ccircle cx='52' cy='22' r='2'/%3E%3C/g%3E%3C/svg%3E") 0 0/72px 72px;
}

/* ---------- 4th of July: the normal colours with fireworks and stars ---------- */
body.season-july-4th{
  --glyph:"\2605  ";--glyphs:" \2605 \2605 \2605 ";
  --stripes:repeating-linear-gradient(90deg,#d7192e 0 16px,#fff 16px 32px);
  --pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cg stroke-linecap='round' stroke-width='1.8' fill='none'%3E%3Cpath d='M22 6v7M22 31v7M6 22h7M31 22h7M11 11l5 5M28 28l5 5M33 11l-5 5M11 33l5-5' stroke='%23fff' stroke-opacity='.25'/%3E%3Cpath d='M66 52v5M66 71v5M54 64h5M73 64h5M58 56l3.5 3.5M70.5 68.5L74 72M74 56l-3.5 3.5M58 72l3.5-3.5' stroke='%23ff8fa0' stroke-opacity='.4'/%3E%3C/g%3E%3Ccircle cx='70' cy='18' r='1.8' fill='%23fff' fill-opacity='.3'/%3E%3Ccircle cx='18' cy='70' r='1.8' fill='%23fff' fill-opacity='.3'/%3E%3C/svg%3E") 0 0/90px 90px;
}

/* ---------- Halloween: pumpkin orange and night purple, bats ---------- */
body.season-halloween{
  --red:#e0620d;--red-2:#b84f08;--red-3:#863905;
  --blue:#2b1d3a;--blue-2:#1f142b;--blue-3:#120b1a;--blue-hi:#6a44a0;
  --deal:#a3e635;--deal-ink:#1a2600;--page:#f5f1f7;
  --glyph:"\2620  ";--glyphs:" \2620 \2620 \2620 ";
  --stripes:repeating-linear-gradient(135deg,#ff8a1f 0 10px,#1a1022 10px 20px);
  --pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M6 20c4-.5 6-4 6-4 1.5 2.4 4 2.6 4 2.6l1.6-2.6 1.6 2.6s2.5-.2 4-2.6c0 0 2 3.5 6 4-3.5.6-5 3.4-5 3.4-1.6-1.6-4-1.2-6.6 1.4-2.6-2.6-5-3-6.6-1.4 0 0-1.5-2.8-5-3.4z' fill='%23fff' fill-opacity='.16'/%3E%3Cellipse cx='56' cy='58' rx='8' ry='6.5' fill='%23ff8a1f' fill-opacity='.28'/%3E%3Cpath d='M56 51.5v-3' stroke='%23a3e635' stroke-opacity='.35' stroke-width='2'/%3E%3Ccircle cx='62' cy='16' r='1.6' fill='%23fff' fill-opacity='.3'/%3E%3C/svg%3E") 0 0/80px 80px;
}

/* ---------- Thanksgiving & Black Friday: black and amber, autumn leaves ---------- */
body.season-thanksgiving{
  --red:#d9480f;--red-2:#b33a0b;--red-3:#7f2907;
  --blue:#1a1613;--blue-2:#120f0d;--blue-3:#080605;--blue-hi:#5a4636;
  --deal:#ffb000;--deal-ink:#2a1a00;--page:#f6f2ec;
  --glyph:"\2726  ";--glyphs:" \2726 \2726 \2726 ";
  --stripes:linear-gradient(90deg,#ffb000 0 50%,#d9480f 50% 80%,#7a3b12 80%);
  --pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='76'%3E%3Cg fill-opacity='.26'%3E%3Cpath d='M18 6c7 5 7 14 0 21-7-7-7-16 0-21z' fill='%23ffb000' transform='rotate(-25 18 16)'/%3E%3Cpath d='M56 44c6 4 6 12 0 18-6-6-6-14 0-18z' fill='%23d9480f' transform='rotate(30 56 53)'/%3E%3C/g%3E%3Ccircle cx='58' cy='14' r='1.8' fill='%23fff' fill-opacity='.22'/%3E%3C/svg%3E") 0 0/76px 76px;
}

@media (prefers-reduced-motion:reduce){body.season-christmas .hero{animation:none}}
