/*
  seasons.css — FESTIVAL LOOKS for a restaurant's own website (FastPOS).
  ───────────────────────────────────────────────────────────────────────────
  seasons.js puts <html data-season="<look>"> on the page during a festival
  week (the restaurant ticks its festivals in FastPOS → Settings → Website).
  This file gives each look:

    --season-ribbon / --season-ribbon-ink   the greeting ribbon: dark, light text
    --season-accent    a bright festive colour (dark text reads on it)
    --season-hero      a light festive background (dark text reads on it)
    --season-stripe    a thin festive stripe
    --season-motif     the decoration repeated along the ribbon (inline SVG)

  The ribbon is styled here. EVERYTHING ELSE IS YOUR SITE'S CHOICE: in your
  own stylesheet, say where the festival colours go, e.g.

    :root[data-season] { --hero: var(--season-hero); --accent-2: var(--season-accent); }

  so the brand, the logo and your buttons stay yours. Status colours (errors,
  the veg mark) should never take a festival colour.

  Add a festival: copy a block below, change the key and the colours, and add
  the same key to FastPOS (calendars/seasons.py, LOOKS).
*/

/* ── the greeting ribbon ─────────────────────────────────────────────────── */
.season-ribbon {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 6px 48px; text-align: center;
  background: var(--season-motif) center / auto 32px repeat-x, var(--season-ribbon, #1F1A10);
  color: var(--season-ribbon-ink, #FFFFFF);
  font: 600 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.season-ribbon::after {                     /* the festive stripe along the bottom */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--season-stripe);
}
.season-greeting {                          /* a calm plate behind the words, over the decoration */
  display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--season-ribbon, #1F1A10);
  box-shadow: 0 0 0 6px var(--season-ribbon, #1F1A10);
}
.season-close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--season-ribbon, #1F1A10); box-shadow: 0 0 0 4px var(--season-ribbon, #1F1A10), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  color: inherit; font: 700 20px/1 system-ui, sans-serif;
}
.season-close:hover { box-shadow: 0 0 0 4px var(--season-ribbon, #1F1A10), inset 0 0 0 2px rgba(255, 255, 255, 0.7); }
.season-close:focus-visible { outline: 3px solid var(--season-accent, #FFD54A); outline-offset: 2px; }
@media (max-width: 480px) {
  .season-ribbon { font-size: 14px; padding: 6px 44px 8px 12px; }
}
@media print { .season-ribbon { display: none; } }

/* ── the looks ───────────────────────────────────────────────────────────── */
/* Diwali — diyas on deep maroon, marigold and gold */
[data-season="diwali"] {
  --season-ribbon: #4A0E1E; --season-ribbon-ink: #FFE7A8;
  --season-accent: #FFB627;
  --season-hero: linear-gradient(115deg, #FFE08A 0%, #FFC24B 45%, #FF9F43 100%);
  --season-stripe: linear-gradient(90deg, #FFB627, #E8590C 25%, #C2185B 50%, #E8590C 75%, #FFB627);
  --season-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32' viewBox='0 0 64 32'%3E %3Cpath d='M18 19h28c0 7-6 10-14 10s-14-3-14-10z' fill='%23F28C28'/%3E %3Cpath d='M17 19h30' stroke='%23FFD54A' stroke-width='2.4' stroke-linecap='round'/%3E %3Cpath d='M32 4c3.5 4.5 4.5 8 0 12.5c-4.5-4.5-3.5-8 0-12.5z' fill='%23FFD54A'/%3E %3Cpath d='M32 9c1.6 2.2 2 4.3 0 6.4c-2-2.1-1.6-4.2 0-6.4z' fill='%23F28C28'/%3E %3Ccircle cx='7' cy='9' r='1.6' fill='%23FFD54A'/%3E%3Ccircle cx='56' cy='14' r='1.3' fill='%23FFD54A'/%3E %3Ccircle cx='10' cy='24' r='1' fill='%23F7A8C4'/%3E%3Ccircle cx='54' cy='26' r='1.1' fill='%23F7A8C4'/%3E%3C/svg%3E");
}

/* Christmas & New Year — lights on pine green, red and gold */
[data-season="christmas"] {
  --season-ribbon: #0F3D2E; --season-ribbon-ink: #FFF1D6;
  --season-accent: #F2C14E;
  --season-hero: linear-gradient(115deg, #FDF0D5 0%, #F7E2B6 50%, #F3D2A2 100%);
  --season-stripe: repeating-linear-gradient(90deg, #C62828 0 24px, #F2C14E 24px 32px, #2E7D32 32px 56px, #F2C14E 56px 64px);
  --season-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='32' viewBox='0 0 72 32'%3E %3Cpath d='M0 7 Q18 17 36 7 T72 7' stroke='%239DB89A' stroke-width='1.4' fill='none'/%3E %3Crect x='9.5' y='9' width='5' height='3' rx='1' fill='%23C8D5B9'/%3E%3Cellipse cx='12' cy='17' rx='4.2' ry='6' fill='%23F2554A'/%3E %3Crect x='33.5' y='6' width='5' height='3' rx='1' fill='%23C8D5B9'/%3E%3Cellipse cx='36' cy='14' rx='4.2' ry='6' fill='%23F2C14E'/%3E %3Crect x='57.5' y='9' width='5' height='3' rx='1' fill='%23C8D5B9'/%3E%3Cellipse cx='60' cy='17' rx='4.2' ry='6' fill='%237CCB7A'/%3E%3C/svg%3E");
}

/* Holi / Gaura Purnima — colour on indigo */
[data-season="holi"] {
  --season-ribbon: #3B1C6E; --season-ribbon-ink: #FFFFFF;
  --season-accent: #FF9AC9;
  --season-hero: linear-gradient(115deg, #FFE27A 0%, #FFB8D4 35%, #ADEDCD 68%, #ABDBFF 100%);
  --season-stripe: linear-gradient(90deg, #FF5DA2, #FFD23F 25%, #3DDC97 50%, #4CC9F0 75%, #9B5DE5);
  --season-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32' viewBox='0 0 64 32'%3E %3Ccircle cx='8' cy='10' r='5' fill='%23FF5DA2'/%3E%3Ccircle cx='22' cy='22' r='3.5' fill='%23FFD23F'/%3E %3Ccircle cx='34' cy='9' r='4' fill='%233DDC97'/%3E%3Ccircle cx='47' cy='21' r='5.5' fill='%234CC9F0'/%3E %3Ccircle cx='58' cy='8' r='3' fill='%23FF8C42'/%3E%3Ccircle cx='15' cy='27' r='1.6' fill='%23C77DFF'/%3E %3Ccircle cx='40' cy='28' r='1.8' fill='%23FF5DA2'/%3E%3Ccircle cx='28' cy='3' r='1.4' fill='%23FFD23F'/%3E%3C/svg%3E");
}

/* Janmashtami — peacock feather on midnight blue */
[data-season="janmashtami"] {
  --season-ribbon: #0B3A5B; --season-ribbon-ink: #F9E7B0;
  --season-accent: #F2C94C;
  --season-hero: linear-gradient(115deg, #D3F1EB 0%, #AEE3DA 45%, #F8DD8A 100%);
  --season-stripe: linear-gradient(90deg, #1F4FA8, #1BA6A6 33%, #2E9E6A 66%, #F2C94C);
  --season-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='32' viewBox='0 0 60 32'%3E %3Cpath d='M10 30 L44 4' stroke='%23C9A227' stroke-width='1.4'/%3E %3Cellipse cx='36' cy='10' rx='12' ry='7' transform='rotate(-37 36 10)' fill='%232E9E6A'/%3E %3Cellipse cx='37' cy='9.5' rx='8' ry='5' transform='rotate(-37 37 9.5)' fill='%231BA6A6'/%3E %3Cellipse cx='38' cy='9' rx='4.6' ry='3.2' transform='rotate(-37 38 9)' fill='%23F2C94C'/%3E %3Cellipse cx='38.4' cy='8.8' rx='2.6' ry='1.9' transform='rotate(-37 38.4 8.8)' fill='%231F4FA8'/%3E%3C/svg%3E");
}

/* Ganesh Chaturthi — marigold and modak on red */
[data-season="ganesh-chaturthi"] {
  --season-ribbon: #7A1010; --season-ribbon-ink: #FFE8B0;
  --season-accent: #F6A623;
  --season-hero: linear-gradient(115deg, #FFE7A3 0%, #FFC870 50%, #FFAD78 100%);
  --season-stripe: repeating-linear-gradient(90deg, #B71C1C 0 18px, #F6A623 18px 36px);
  --season-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='32' viewBox='0 0 60 32'%3E %3Cg fill='%23F6A623'%3E%3Ccircle cx='14' cy='10' r='3'/%3E%3Ccircle cx='19' cy='10' r='3'/%3E%3Ccircle cx='16.5' cy='6' r='3'/%3E%3Ccircle cx='16.5' cy='14' r='3'/%3E%3Ccircle cx='12' cy='13' r='2.5'/%3E%3Ccircle cx='21' cy='13' r='2.5'/%3E%3C/g%3E %3Ccircle cx='16.5' cy='10.5' r='2.6' fill='%23FF7A00'/%3E %3Cpath d='M42 28c-7 0-9-5-6-10c2-3 5-6 6-12c1 6 4 9 6 12c3 5 1 10-6 10z' fill='%23FFF0CC'/%3E %3Cpath d='M42 7v20M38.5 12c1 5 1.5 10 3.5 15M45.5 12c-1 5-1.5 10-3.5 15' stroke='%23E9C98E' stroke-width='1' fill='none'/%3E%3C/svg%3E");
}

/* Navaratri & Dasara — marigold garland, the nine colours */
[data-season="dasara"] {
  --season-ribbon: #5E0F1F; --season-ribbon-ink: #FFE3A3;
  --season-accent: #F5B700;
  --season-hero: linear-gradient(115deg, #FFE59A 0%, #FFC46E 45%, #FFAFA8 100%);
  --season-stripe: linear-gradient(90deg, #FF9933 0 11.1%, #FFFFFF 0 22.2%, #D32F2F 0 33.3%, #1E40AF 0 44.4%, #FFD600 0 55.5%, #2E7D32 0 66.6%, #9E9E9E 0 77.7%, #7B1FA2 0 88.8%, #F06292 0);
  --season-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32' viewBox='0 0 64 32'%3E %3Cpath d='M0 4 Q32 26 64 4' stroke='%236B8E23' stroke-width='1.2' fill='none'/%3E %3Cg fill='%23F6A623'%3E%3Ccircle cx='8' cy='9' r='3.2'/%3E%3Ccircle cx='22' cy='15.5' r='3.4'/%3E%3Ccircle cx='42' cy='15.5' r='3.4'/%3E%3Ccircle cx='56' cy='9' r='3.2'/%3E%3C/g%3E %3Cg fill='%23FFD54A'%3E%3Ccircle cx='15' cy='13' r='2.8'/%3E%3Ccircle cx='49' cy='13' r='2.8'/%3E%3C/g%3E %3Ccircle cx='32' cy='17' r='3.6' fill='%23E8590C'/%3E %3Cpath d='M32 21c3 3 2.5 7 0 9c-2.5-2-3-6 0-9z' fill='%237CB342'/%3E%3C/svg%3E");
}

/* Sankranti / Pongal — kites and kolam on sugarcane green */
[data-season="sankranti"] {
  --season-ribbon: #1F4D2B; --season-ribbon-ink: #FFF1C2;
  --season-accent: #F4C430;
  --season-hero: linear-gradient(115deg, #FFF2B8 0%, #F9DC6B 50%, #C9E68F 100%);
  --season-stripe: repeating-linear-gradient(90deg, #2E7D32 0 20px, #F4C430 20px 40px);
  --season-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32' viewBox='0 0 64 32'%3E %3Cpath d='M20 3 L29 13 L20 25 L11 13 Z' fill='%23F4C430'/%3E%3Cpath d='M20 3 L29 13 L20 13 Z' fill='%23FF6F91'/%3E %3Cpath d='M20 25 q4 3 1 5 q-3 2 1 4' stroke='%23FFF1C2' stroke-width='1' fill='none'/%3E %3Cg fill='%23FFF1C2'%3E%3Ccircle cx='42' cy='8' r='1.4'/%3E%3Ccircle cx='50' cy='8' r='1.4'/%3E%3Ccircle cx='58' cy='8' r='1.4'/%3E %3Ccircle cx='46' cy='14' r='1.4'/%3E%3Ccircle cx='54' cy='14' r='1.4'/%3E%3Ccircle cx='42' cy='20' r='1.4'/%3E%3Ccircle cx='50' cy='20' r='1.4'/%3E%3Ccircle cx='58' cy='20' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
}

/* Ugadi — mango-leaf toran and marigold */
[data-season="ugadi"] {
  --season-ribbon: #24521F; --season-ribbon-ink: #FFF0B8;
  --season-accent: #F9B233;
  --season-hero: linear-gradient(115deg, #ECF7CF 0%, #D3EC9B 45%, #FFD877 100%);
  --season-stripe: repeating-linear-gradient(90deg, #558B2F 0 16px, #F9B233 16px 26px);
  --season-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='32' viewBox='0 0 60 32'%3E %3Cpath d='M0 3 H60' stroke='%23C8E68C' stroke-width='1.2'/%3E %3Cpath d='M12 3 C7 10 8 20 12 27 C16 20 17 10 12 3 Z' fill='%237CB342'/%3E%3Cpath d='M12 5 V25' stroke='%23C8E68C' stroke-width='0.8'/%3E %3Cpath d='M42 3 C37 10 38 20 42 27 C46 20 47 10 42 3 Z' fill='%237CB342'/%3E%3Cpath d='M42 5 V25' stroke='%23C8E68C' stroke-width='0.8'/%3E %3Ccircle cx='27' cy='8' r='4' fill='%23F9B233'/%3E%3Ccircle cx='27' cy='8' r='1.8' fill='%23FF7A00'/%3E%3C/svg%3E");
}

/* Rama Navami — saffron flag and sun */
[data-season="ram-navami"] {
  --season-ribbon: #7C2A08; --season-ribbon-ink: #FFF0C9;
  --season-accent: #FFA94D;
  --season-hero: linear-gradient(115deg, #FFE7B3 0%, #FFCB7D 50%, #FFB169 100%);
  --season-stripe: linear-gradient(90deg, #FF9933, #FFD54A 50%, #FF9933);
  --season-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='32' viewBox='0 0 60 32'%3E %3Cpath d='M16 4 V30' stroke='%23E9C98E' stroke-width='1.4'/%3E%3Cpath d='M17 5 L34 11 L17 17 Z' fill='%23FF9933'/%3E %3Ccircle cx='46' cy='13' r='5' fill='%23FFD54A'/%3E %3Cg stroke='%23FFD54A' stroke-width='1.2'%3E%3Cpath d='M46 4v3M46 19v3M37 13h3M52 13h3M40 7l2 2M50 17l2 2M52 7l-2 2M40 19l2-2'/%3E%3C/g%3E%3C/svg%3E");
}

/* Republic Day, Independence Day — the tricolour on navy */
[data-season="republic-day"],
[data-season="independence-day"] {
  --season-ribbon: #0B2A6F; --season-ribbon-ink: #FFFFFF;
  --season-accent: #FF9933;
  --season-hero: linear-gradient(180deg, #FFD9AE 0%, #FFF8EE 50%, #CFEBC7 100%);
  --season-stripe: linear-gradient(#FF9933 0 33.3%, #FFFFFF 33.3% 66.6%, #138808 66.6%);
  --season-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='32' viewBox='0 0 60 32'%3E %3Cpath d='M14 4 V30' stroke='%23D9D9D9' stroke-width='1.3'/%3E %3Crect x='15' y='5' width='22' height='5' fill='%23FF9933'/%3E%3Crect x='15' y='10' width='22' height='5' fill='%23FFFFFF'/%3E%3Crect x='15' y='15' width='22' height='5' fill='%23138808'/%3E %3Ccircle cx='26' cy='12.5' r='2' fill='none' stroke='%230B2A6F' stroke-width='0.8'/%3E %3Ccircle cx='48' cy='16' r='1.3' fill='%23FF9933'/%3E%3Ccircle cx='53' cy='22' r='1.1' fill='%23FFFFFF'/%3E%3Ccircle cx='47' cy='26' r='1.2' fill='%23138808'/%3E%3C/svg%3E");
}
