/* ============================================
   APP Buddies HQ — Design Tokens
   ============================================ */

:root {
  /* ─── Brand Colors ─── */
  --color-primary-50:  #eff6ff;
  --color-primary-100: #dbeafe;
  --color-primary-200: #bfdbfe;
  --color-primary-300: #93c5fd;
  --color-primary-400: #60a5fa;
  --color-primary-500: #2563eb;  /* Electric Blue */
  --color-primary-600: #1d4ed8;  /* Hover state */
  --color-primary-700: #1e40af;

  --color-accent: #4f46e5;       /* Soft Indigo */
  --color-accent-light: #6366f1;
  --color-teal: #14b8a6;         /* Teal Accent */

  /* Light theme (default) */
  --color-bg:        #f8f9fc;    /* Warm off-white with subtle blue tint */
  --color-bg-alt:    #ffffff;
  --color-bg-elevated: #ffffff;  /* Card / Surface */
  --color-surface:   rgba(255, 255, 255, 0.75);

  --color-text:      #111827;    /* Primary Text */
  --color-text-secondary: #4b5563;  /* Secondary Text — slightly deeper for contrast */
  --color-text-muted: #9ca3af;

  --color-border:    #e2e5ec;    /* Border — subtle blue-gray */
  --color-border-subtle: #eef0f5;

  /* Status colors */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --gradient-text: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 100%);
  --gradient-glow: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.15), transparent);

  /* ─── Typography ─── */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', ui-monospace, Menlo, Monaco, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* ─── Spacing ─── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ─── Layout ─── */
  --max-width: 1200px;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* ─── Shadows ─── */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 40px -10px rgba(37, 99, 235, 0.3);

  /* ─── Hero Theme Colors ─── */
  --hero-bg: #f4f7fb;
  --hero-blob-1: rgba(37, 99, 235, 0.18);
  --hero-blob-2: rgba(79, 70, 229, 0.14);
  --hero-blob-3: rgba(20, 184, 166, 0.12);
  --hero-blob-4: rgba(37, 99, 235, 0.10);
  --hero-overlay-top: rgba(244, 247, 251, 0);
  --hero-overlay-mid: rgba(244, 247, 251, 0.5);
  --hero-overlay-btm: rgba(244, 247, 251, 0.9);
  --hero-title-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0f766e 100%);
  --hero-subtitle: rgba(17, 24, 39, 0.7);
  --hero-badge-bg: rgba(255, 255, 255, 0.5);
  --hero-badge-border: rgba(0, 0, 0, 0.08);
  --hero-badge-text: rgba(17, 24, 39, 0.75);
  --hero-btn-secondary-bg: rgba(0, 0, 0, 0.05);
  --hero-btn-secondary-border: rgba(0, 0, 0, 0.1);
  --hero-btn-secondary-text: #111827;

  /* ─── Transitions ─── */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

/* ─── Dark Theme ─── */
[data-theme="dark"] {
  --color-bg:        #080c14;    /* Deep cinematic navy */
  --color-bg-alt:    #0d1220;    /* Slightly lifted with warmth */
  --color-bg-elevated: #151b2e;  /* Cards — rich midnight blue */
  --color-surface:   rgba(21, 27, 46, 0.65);

  --color-text:      #f0f4f8;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;

  --color-border:    #1a2235;
  --color-border-subtle: #253044;

  --gradient-glow: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.2), transparent);

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.6), 0 4px 6px -4px rgb(0 0 0 / 0.5);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.6), 0 8px 10px -6px rgb(0 0 0 / 0.5);

  /* Dark mode hero */
  --hero-bg: #050814;
  --hero-blob-1: rgba(37, 99, 235, 0.55);
  --hero-blob-2: rgba(79, 70, 229, 0.55);
  --hero-blob-3: rgba(20, 184, 166, 0.55);
  --hero-blob-4: rgba(37, 99, 235, 0.30);
  --hero-overlay-top: rgba(5, 8, 20, 0);
  --hero-overlay-mid: rgba(5, 8, 20, 0.5);
  --hero-overlay-btm: rgba(5, 8, 20, 0.9);
  --hero-title-gradient: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #5eead4 100%);
  --hero-subtitle: rgba(255, 255, 255, 0.75);
  --hero-badge-bg: rgba(255, 255, 255, 0.08);
  --hero-badge-border: rgba(255, 255, 255, 0.12);
  --hero-badge-text: rgba(255, 255, 255, 0.85);
  --hero-btn-secondary-bg: rgba(255, 255, 255, 0.1);
  --hero-btn-secondary-border: rgba(255, 255, 255, 0.2);
  --hero-btn-secondary-text: #ffffff;
}
