/* ═══════════════════════════════════════════════════════════════════
   ADM DEVELOPER — DESIGN TOKENS
   Light theme is the default. Dark overrides in dark-mode.css.
   All values are referenced as var(--token-name) throughout the theme.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* ── Brand ── */
  --color-brand: #e5006d;
  --color-brand-rgb: 229, 0, 109;
  --color-brand-hover: #cc0061;
  --color-brand-dim: rgba(229, 0, 109, 0.08);
  --color-brand-glow: rgba(229, 0, 109, 0.15);

  /* ── Surfaces (light default) ── */
  --color-bg: #f5f5f7;
  --color-surface-1: #ffffff;
  --color-surface-2: #f0f0f2;
  --color-surface-3: #e5e5ea;
  --color-surface-4: #d1d1d6;

  /* ── Borders ── */
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-strong: rgba(0, 0, 0, 0.15);
  --color-border-brand: rgba(229, 0, 109, 0.2);

  /* ── Text ── */
  --color-text: #1a1a1a;
  --color-text-secondary: #6b6b6b;
  --color-text-muted: #999999;
  --color-text-hint: #bbbbbb;
  --color-text-inverse: #ffffff;

  /* ── Accent palette ── */
  --color-yellow: #ffd400; /* ADM brand yellow */
  --color-accent: #ffd400; /* alias used by some components */
  --color-blue: #2b6cb0;
  --color-blue-light: #63b3ed;
  --color-green: #276749;
  --color-green-light: #68d391;
  --color-amber: #c05621;
  --color-amber-light: #f6ad55;
  --color-red: #c53030;
  --color-red-light: #fc8181;
  --color-purple: #6b46c1;
  --color-purple-light: #b794f4;
  --color-teal: #2c7a7b;
  --color-teal-light: #4fd1c5;

  /* ── Accent dims (for badges / subtle backgrounds) ── */
  --color-blue-dim: rgba(43, 108, 176, 0.08);
  --color-green-dim: rgba(39, 103, 73, 0.08);
  --color-amber-dim: rgba(192, 86, 33, 0.08);
  --color-red-dim: rgba(197, 48, 48, 0.08);
  --color-purple-dim: rgba(107, 70, 193, 0.08);
  --color-teal-dim: rgba(44, 122, 123, 0.08);

  /* ── Typography ── */
  --font-sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  --font-size-2xs: 0.625rem;   /* 10px */
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 1.875rem;   /* 30px */
  --font-size-4xl: 2.25rem;    /* 36px */
  --font-size-5xl: 3rem;       /* 48px */
  --font-size-6xl: 3.75rem;    /* 60px */
  --font-size-7xl: 4.5rem;     /* 72px */

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  --letter-spacing-tight: -0.03em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;
  --letter-spacing-wider: 0.1em;

  /* ── Spacing (4px base scale) ── */
  --space-0: 0;
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */

  /* ── Layout ── */
  --container-max: 1280px;
  --container-wide: 1560px;
  --container-narrow: 720px;
  --container-padding: var(--space-6);
  --section-padding-y: var(--space-24);
  --adm-header-h: 84px; /* approx fixed-header height; used by .adm-section--vh */

  /* ── Border radius ── */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(var(--color-brand-rgb), 0.15);
  --shadow-glow-strong: 0 0 40px rgba(var(--color-brand-rgb), 0.25);

  /* ── Glass effects ── */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-blur: 16px;

  /* ── Transitions ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;

  /* ── Z-index scale ── */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;
}
