/* =====================================================================
   GeoSprig — Design Tokens (Unlimited Test Edition)
   Single source of truth. NEVER hardcode colors/spacing/type in
   components. Reference these tokens everywhere.
   ===================================================================== */

:root {
  /* ---------- Primary brand ---------- */
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #DBEAFE;
  --primary-focus-ring: rgba(37, 99, 235, 0.35);

  /* ---------- Neutrals ---------- */
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --surface-alt: #F3F4F6;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --text: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;

  /* ---------- Status colors ---------- */
  --success: #10B981;
  --success-light: #D1FAE5;
  --success-dark: #065F46;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --warning-dark: #92400E;
  --danger: #EF4444;
  --danger-hover: #DC2626;
  --danger-light: #FEE2E2;
  --danger-dark: #991B1B;
  --info: #6366F1;
  --info-light: #E0E7FF;
  --info-dark: #3730A3;

  /* Social / link status */
  --social-facebook: #1877F2;
  --social-instagram: #E4405F;

  /* ---------- CRM status colors ---------- */
  --crm-new: #3B82F6;
  --crm-new-light: #DBEAFE;
  --crm-contacted: #8B5CF6;
  --crm-contacted-light: #EDE9FE;
  --crm-interested: #10B981;
  --crm-interested-light: #D1FAE5;
  --crm-closed: #6B7280;
  --crm-closed-light: #F3F4F6;
  --crm-rejected: #EF4444;
  --crm-rejected-light: #FEE2E2;
  --crm-followup: #F59E0B;
  --crm-followup-light: #FEF3C7;

  /* ---------- Typography ---------- */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ---------- Spacing (4px scale) ---------- */
  --sp-1: 0.25rem;  /* 4px */
  --sp-2: 0.5rem;   /* 8px */
  --sp-3: 0.75rem;  /* 12px */
  --sp-4: 1rem;     /* 16px */
  --sp-5: 1.25rem;  /* 20px */
  --sp-6: 1.5rem;   /* 24px */
  --sp-8: 2rem;     /* 32px */
  --sp-10: 2.5rem;  /* 40px */
  --sp-12: 3rem;    /* 48px */

  /* ---------- Radius ---------- */
  --radius-sm: 0.25rem;  /* 4px */
  --radius: 0.375rem;    /* 6px (rounded-md) */
  --radius-lg: 0.5rem;   /* 8px (rounded-lg) */
  --radius-full: 9999px;

  /* ---------- Shadows ---------- */
  --shadow-xs: 0 1px 2px 0 rgba(17, 24, 39, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(17, 24, 39, 0.1), 0 1px 2px -1px rgba(17, 24, 39, 0.1);
  --shadow: 0 4px 6px -1px rgba(17, 24, 39, 0.1), 0 2px 4px -2px rgba(17, 24, 39, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(17, 24, 39, 0.1), 0 4px 6px -4px rgba(17, 24, 39, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(17, 24, 39, 0.1), 0 8px 10px -6px rgba(17, 24, 39, 0.1);

  /* ---------- Animation ---------- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-micro: 150ms;
  --duration-fast: 200ms;
  --duration-base: 250ms;
  --duration-reveal: 700ms;
  --duration-page: 350ms;

  /* ---------- Layout ---------- */
  --topbar-height: 64px;
  --sidebar-width: 264px;
  --content-max: 1440px;

  /* ---------- Environment badge ---------- */
  --badge-edition-bg: #10B981;
  --badge-edition-text: #FFFFFF;
}

/* =====================================================================
   Dark mode (optional, spec-supplied overrides)
   ===================================================================== */
[data-theme='dark'] {
  --bg: #111827;
  --surface: #1F2937;
  --surface-alt: #374151;
  --border: #374151;
  --border-strong: #4B5563;
  --text: #F9FAFB;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;

  --primary-light: #1E3A8A;
  --success-light: #064E3B;
  --success-dark: #6EE7B7;
  --warning-light: #78350F;
  --warning-dark: #FCD34D;
  --danger-light: #7F1D1D;
  --danger-dark: #FCA5A5;
  --info-light: #312E81;
  --info-dark: #C7D2FE;
}