/**
 * Firetalk Modern Design System Tokens
 * Universal Dark & Light Mode tokens with glassmorphism, rich gradients, and elevation.
 */

:root {
  /* Brand Identity & Signature Flame Gradient */
  --firetalk-primary: #0084ff;
  --firetalk-primary-hover: #0070db;
  --firetalk-primary-light: rgba(0, 132, 255, 0.12);
  --firetalk-accent: #ff007a;
  
  --firetalk-flame-start: #7928ca;
  --firetalk-flame-mid: #d926a9;
  --firetalk-flame-end: #ff0080;
  --firetalk-flame-grad: linear-gradient(135deg, #7928ca 0%, #d926a9 50%, #ff0080 100%);
  --firetalk-flame-glow: 0 0 25px rgba(217, 38, 169, 0.35);

  /* High-Converting CTA Coral */
  --firetalk-cta: #ff573d;
  --firetalk-cta-hover: #f04428;
  --firetalk-cta-shadow: rgba(255, 87, 61, 0.35);
  --firetalk-cta-active: #d6331a;

  /* Aliases & Universal Compatibility */
  --primary-color: #0084ff;
  --primary-color-hover: #0070db;
  --accent-color: #ff007a;
  --flame-gradient: linear-gradient(135deg, #7928ca 0%, #d926a9 50%, #ff0080 100%);
  --primary-gradient: linear-gradient(135deg, #0084ff 0%, #0066cc 100%);

  /* Legacy & Cross-Page Semantic Aliases (Light Mode) */
  --text-main: #0f172a;
  --text-body: #475569;
  --bg-soft: #f8fafc;
  --bg-blue-canvas: #e0f2fe;
  --bg-blue-subtle: #f0f7ff;
  --bg-dark: #0f172a;
  --bg-banner: #0084ff;
  --shadow-cta: 0 10px 24px -4px var(--firetalk-cta-shadow);

  /* Typography Scale */
  --font-family-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Border Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Layout */
  --container-max: 1220px;
  --header-height: 74px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);

  /* Status Colors (Consistent across themes) */
  --color-ok: #10b981;
  --color-ok-soft: rgba(16, 185, 129, 0.15);
  --color-warn: #f59e0b;
  --color-warn-soft: rgba(245, 158, 11, 0.15);
  --color-danger: #ef4444;
  --color-danger-soft: rgba(239, 68, 68, 0.15);
  --color-info: #0ea5e9;
  --color-info-soft: rgba(14, 165, 233, 0.15);

  /* Room Tier Accents */
  --tier-gold: #f59e0b;
  --tier-elite: #a855f7;
  --tier-extreme: #10b981;
  --tier-deluxe: #0284c7;
  --tier-help: #ef4444;

  /* =========================================================================
     LIGHT MODE THEME TOKENS
     ========================================================================= */
  --bg-page: #f8fafc;
  --bg-page-alt: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-surface-translucent: rgba(255, 255, 255, 0.85);
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.88);
  --bg-footer: #0f172a;
  --bg-input: #ffffff;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-glass: rgba(226, 232, 240, 0.8);
  --border-active: #0084ff;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --text-light: #ffffff;
  --text-link: #0084ff;
  --text-link-hover: #0066cc;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --shadow-dropdown: 0 16px 40px -4px rgba(15, 23, 42, 0.14);
}

/* =========================================================================
   DARK MODE THEME TOKENS
   ========================================================================= */
html[data-theme="dark"],
html.dark {
  color-scheme: dark;
  --bg-page: #080b12;
  --bg-page-alt: #0d121d;
  --bg-surface: #101624;
  --bg-surface-elevated: #161e31;
  --bg-surface-hover: #1b253d;
  --bg-surface-translucent: rgba(16, 22, 36, 0.85);
  --bg-card: #101624;
  --bg-header: rgba(8, 11, 18, 0.88);
  --bg-footer: #05070c;
  --bg-input: #0b0f19;

  --border-subtle: #1c2538;
  --border-strong: #2a3752;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-active: #38bdf8;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --text-light: #ffffff;
  --text-link: #38bdf8;
  --text-link-hover: #7dd3fc;

  /* Aliases in Dark Mode */
  --primary-color: #38bdf8;
  --primary-color-hover: #7dd3fc;
  --accent-color: #ff007a;
  --flame-gradient: linear-gradient(135deg, #7928ca 0%, #d926a9 50%, #ff0080 100%);
  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);

  /* Legacy & Cross-Page Semantic Aliases (Dark Mode) */
  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --bg-soft: #0d1322;
  --bg-blue-canvas: #091022;
  --bg-blue-subtle: #0f172a;
  --bg-dark: #030712;
  --bg-banner: #0f172a;
  --shadow-cta: 0 10px 24px -4px rgba(0, 0, 0, 0.55);

  /* Shadows (with dark depth and subtle rim lighting) */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45), 0 1px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 24px 54px rgba(0, 0, 0, 0.65), 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 4px 24px -2px rgba(0, 0, 0, 0.45);
  --shadow-dropdown: 0 20px 50px -4px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
