/**
 * =========================================================
 *  THEME TOKENS
 *  Every color / font / radius the app uses lives here as a
 *  CSS variable. style.css and admin.css never hard-code a
 *  color — they only reference var(--...).
 *
 *  To theme the app: set CONFIG.theme in js/config.js to one
 *  of "default" | "cafe" | "luxury" | "casual", or duplicate
 *  one of the blocks below and give it a new data-theme name.
 * =========================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=Caveat:wght@600;700&family=Nunito:wght@400;600;700&family=Cormorant+Garamond:wght@500;600;700&family=Jost:wght@400;500;600&family=Baloo+2:wght@500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  /* Shared, theme-independent tokens */
  --container: 1120px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --duration: .35s;
  --success: #2f8f5b;
  --danger: #c23b3b;
}

/* ---------------------------------------------------------
   DEFAULT — "Bistro Modern": chalkboard header, paper cards
--------------------------------------------------------- */
:root,
[data-theme="default"] {
  --bg: #faf6ee;
  --surface: #ffffff;
  --surface-alt: #f1ead9;
  --text: #221e1a;
  --text-muted: #7a7167;
  --accent: #c9a227;
  --accent-contrast: #221e1a;
  --accent-strong: #a6402a;
  --header-bg: #1c1b1a;
  --header-text: #f3e9d2;
  --border: #e4dac5;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px -12px rgba(28, 27, 26, .18);
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --card-border-style: dashed;
}

/* ---------------------------------------------------------
   CAFE — warm, hand-lettered chalkboard-cafe feel
--------------------------------------------------------- */
[data-theme="cafe"] {
  --bg: #f3e7d6;
  --surface: #fffdf8;
  --surface-alt: #ead9bf;
  --text: #3b2a20;
  --text-muted: #8a7460;
  --accent: #8b5e34;
  --accent-contrast: #fffdf8;
  --accent-strong: #b0532e;
  --header-bg: #3b2a20;
  --header-text: #f6ecdd;
  --border: #e0cba8;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 28px -14px rgba(59, 42, 32, .28);
  --font-display: 'Caveat', cursive;
  --font-body: 'Nunito', sans-serif;
  --card-border-style: solid;
}

/* ---------------------------------------------------------
   LUXURY — near-black, champagne gold, sharp edges
--------------------------------------------------------- */
[data-theme="luxury"] {
  --bg: #0b0b0a;
  --surface: #15140f;
  --surface-alt: #1e1c18;
  --text: #ede6d6;
  --text-muted: #9c9284;
  --accent: #bfa054;
  --accent-contrast: #0b0b0a;
  --accent-strong: #4c7a67;
  --header-bg: #0b0b0a;
  --header-text: #ede6d6;
  --border: #2a2722;
  --radius-lg: 3px;
  --radius-md: 2px;
  --radius-sm: 1px;
  --shadow: 0 20px 45px -20px rgba(0, 0, 0, .7);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
  --card-border-style: solid;
}

/* ---------------------------------------------------------
   CASUAL — bright, bold, color-blocked fast-casual feel
--------------------------------------------------------- */
[data-theme="casual"] {
  --bg: #fff8ec;
  --surface: #ffffff;
  --surface-alt: #ffefc7;
  --text: #241c1c;
  --text-muted: #7a6a5c;
  --accent: #e63946;
  --accent-contrast: #ffffff;
  --accent-strong: #ffb703;
  --header-bg: #1d3557;
  --header-text: #fff8ec;
  --border: #f3d9a4;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 24px -10px rgba(29, 53, 87, .28);
  --font-display: 'Baloo 2', cursive;
  --font-body: 'Poppins', sans-serif;
  --card-border-style: solid;
}
