/*
 * Tenant themes. Every tenant-facing page defines the "default" theme in its own
 * :root; a venue's chosen theme sets <html data-theme="dark|light">, and these
 * rules (higher specificity than :root) override the same variables.
 */

/* Dark: neutral true-dark, no coloured glow */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050505;
  --surface: #111111;
  --surface-2: #0a0a0a;
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.18);
  --text: #f5f5f5;
  --text-dim: #a3a3a3;
  --text-faint: #737373;
  --toast-bg: #1a1a1a;
  --glow-a: transparent;
  --glow-b: transparent;
  --glow-c: transparent;
}

/* Light: white surfaces, deeper accent so text on it stays readable */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5fa;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --border: rgba(15,23,42,0.10);
  --border-strong: rgba(15,23,42,0.20);
  --text: #0f172a;
  --text-dim: #475569;
  --text-faint: #64748b;
  --accent-a: #0d9488;
  --accent-b: #4f46e5;
  --on-accent: #ffffff;
  --accent-text: #0f766e;
  --danger-text: #be123c;
  --warn-text: #b45309;
  --toast-bg: #ffffff;
  --wash-10: rgba(15,23,42,0.01);
  --wash-15: rgba(15,23,42,0.015);
  --wash-30: rgba(15,23,42,0.03);
  --wash-40: rgba(15,23,42,0.04);
  --wash-50: rgba(15,23,42,0.05);
  --wash-60: rgba(15,23,42,0.06);
  --wash-70: rgba(15,23,42,0.07);
  --wash-80: rgba(15,23,42,0.08);
  --wash-100: rgba(15,23,42,0.10);
  --wash-120: rgba(15,23,42,0.12);
  --wash-150: rgba(15,23,42,0.15);
  --ink-60: rgba(15,23,42,0.16);
  --ink-65: rgba(15,23,42,0.18);
  --glow-a: rgba(13,148,136,0.10);
  --glow-b: rgba(79,70,229,0.10);
  --glow-c: rgba(79,70,229,0.06);
}

/* Light-theme details that variables alone don't cover */
:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea { color: var(--text); }
:root[data-theme="light"] ::placeholder { color: #94a3b8; }
:root[data-theme="light"] .card::before,
:root[data-theme="light"] .phone::before { opacity: .9; }

/* Inputs need a firmer outline than the card border on near-black and white */
:root[data-theme="dark"] input:not(:focus):not([type="checkbox"]):not([type="file"]),
:root[data-theme="dark"] select:not(:focus),
:root[data-theme="dark"] textarea:not(:focus),
:root[data-theme="light"] input:not(:focus):not([type="checkbox"]):not([type="file"]),
:root[data-theme="light"] select:not(:focus),
:root[data-theme="light"] textarea:not(:focus) { border-color: var(--border-strong); }
