/* GGZONE theme tokens – shared by the booking page and the admin panel.
   Mode:   <html data-theme="light|dark">
   Accent: <html data-accent="lavender|ocean|emerald|sunset|crimson"> */

/* ---------- accents (brand colours) ---------- */
:root, [data-accent="lavender"] { --brand:#5b3e9e; --brand2:#7b5cc4; --deep:#2a1b5c; --lilac:#b89ac9; --blush:#f6cfe0; }
[data-accent="ocean"]   { --brand:#1d5fbf; --brand2:#3b82f6; --deep:#0f2a5c; --lilac:#93b8ec; --blush:#cfe6ff; }
[data-accent="emerald"] { --brand:#0f7a5c; --brand2:#18a77e; --deep:#073b2d; --lilac:#8fd1b8; --blush:#d4f5e6; }
[data-accent="sunset"]  { --brand:#c2410c; --brand2:#f97316; --deep:#5c1d07; --lilac:#f4b183; --blush:#ffe1c7; }
[data-accent="crimson"] { --brand:#be123c; --brand2:#e11d48; --deep:#4c0519; --lilac:#f19ab0; --blush:#ffd6e0; }

/* ---------- light mode (default) ---------- */
:root, [data-theme="light"] {
  color-scheme: light;
  --bg:       color-mix(in srgb, var(--brand) 6%, #fff);
  --surface:  #ffffff;
  --card:     var(--surface);
  --input:    color-mix(in srgb, var(--brand) 3%, #fff);
  --soft:     color-mix(in srgb, var(--brand) 10%, #fff);
  --soft2:    color-mix(in srgb, var(--brand) 16%, #fff);
  --line:     color-mix(in srgb, var(--brand) 15%, #fff);
  --text:     #221a3d;
  --muted:    #736b88;
  --brand-d:  var(--deep);                                   /* strong headings */
  --ink:      var(--brand);                                  /* accent text & icons on soft backgrounds */
  --brand-h:  color-mix(in srgb, var(--brand) 85%, #000);    /* hover */
  --glow:     color-mix(in srgb, var(--brand) 28%, transparent);
  --ok:#22a06b;  --ok-bg:#e6f6ee;  --ok-fg:#14724a;
  --bad:#e5484d; --bad-bg:#fdecee; --bad-fg:#9b1c22; --bad-line:#f6c3c7;
  --warn:#f59e0b; --warn-bg:#fff4e0; --warn-fg:#b45309;
  --wa:#22b35e; --cyan:#0ea5a4;
  --shadow:   0 10px 30px color-mix(in srgb, var(--deep) 9%, transparent), 0 2px 6px color-mix(in srgb, var(--deep) 5%, transparent);
  --shadow-lg:0 18px 40px color-mix(in srgb, var(--deep) 24%, transparent);
  --glass:    color-mix(in srgb, var(--surface) 84%, transparent);
  --r:22px; --r-sm:14px;
}

/* ---------- dark mode ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg:       color-mix(in srgb, var(--brand) 10%, #0c0a12);
  --surface:  color-mix(in srgb, var(--brand) 9%, #16131e);
  --card:     var(--surface);
  --input:    color-mix(in srgb, var(--brand) 12%, #120f19);
  --soft:     color-mix(in srgb, var(--brand) 22%, #16131e);
  --soft2:    color-mix(in srgb, var(--brand) 32%, #16131e);
  --line:     color-mix(in srgb, var(--brand) 24%, #26212f);
  --text:     #ece8f4;
  --muted:    #a79fba;
  --brand-d:  color-mix(in srgb, var(--brand2) 18%, #fff);
  --ink:      color-mix(in srgb, var(--brand2) 55%, #fff);
  --brand-h:  color-mix(in srgb, var(--brand) 80%, #fff);
  --glow:     color-mix(in srgb, var(--brand2) 35%, transparent);
  --ok:#2fbf7a;  --ok-bg:#0f2f22;  --ok-fg:#7ee0b0;
  --bad:#f0616a; --bad-bg:#3a1418; --bad-fg:#ffb3b8; --bad-line:#6b2a30;
  --warn:#f5a524; --warn-bg:#3a2a0c; --warn-fg:#ffd28a;
  --shadow:   0 10px 30px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.25);
  --shadow-lg:0 18px 40px rgba(0,0,0,.5);
  --glass:    color-mix(in srgb, var(--surface) 80%, transparent);
}

/* ---------- theme switcher (small floating control) ---------- */
.theme-ctl{position:relative;display:inline-flex;align-items:center;gap:4px;padding:3px;border-radius:99px;background:var(--soft);border:1px solid var(--line)}
.theme-ctl button{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:99px;background:transparent;color:var(--ink);cursor:pointer;padding:0}
.theme-ctl button:hover{background:var(--soft2)}
.theme-ctl svg{width:18px;height:18px}
.theme-ctl .dot{width:16px;height:16px;border-radius:50%;background:linear-gradient(135deg,var(--brand2),var(--brand));box-shadow:0 0 0 2px var(--surface)}
.theme-pop{position:absolute;right:0;top:calc(100% + 8px);z-index:60;min-width:210px;padding:12px;border-radius:16px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-lg);color:var(--text)}
.theme-pop[hidden]{display:none}
.theme-pop small{display:block;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:2px 0 8px}
.theme-pop .modes{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:12px}
.theme-pop .modes button{width:auto;height:auto;padding:8px 4px;border-radius:10px;border:1.5px solid var(--line);font-family:inherit;font-weight:600;font-size:.78rem;color:var(--text);background:var(--input)}
.theme-pop .modes button.on{border-color:var(--brand);background:var(--brand);color:#fff}
.theme-pop .swatches{display:flex;gap:8px;flex-wrap:wrap}
.theme-pop .sw{width:30px;height:30px;border-radius:50%;border:2px solid var(--surface);box-shadow:0 0 0 1.5px var(--line);cursor:pointer;padding:0}
.theme-pop .sw.on{box-shadow:0 0 0 2.5px var(--text)}
html{transition:background-color .25s}
