/**
 * SupplementHub Design Tokens — CSS Custom Properties
 * Source of truth: design/tokens/tokens.css (sync when updating tokens).
 * Brand: nature-inspired primary (teal), warm accent (amber), accessible contrast.
 */

:root {
  /* ----- Colors: Primary (teal) ----- */
  --color-primary-50: #e6f5f3;
  --color-primary-100: #b3e2dc;
  --color-primary-200: #80cfc5;
  --color-primary-300: #4dbcae;
  --color-primary-400: #1aa997;
  --color-primary-500: #0d8f7a;
  --color-primary-600: #0b7564;
  --color-primary-700: #095b4e;
  --color-primary-800: #064038;
  --color-primary-900: #032622;

  /* ----- Colors: Accent (amber) ----- */
  --color-accent-50: #fff8e6;
  --color-accent-100: #ffeab3;
  --color-accent-200: #ffdc80;
  --color-accent-300: #ffce4d;
  --color-accent-400: #ffc01a;
  --color-accent-500: #e6a800;
  --color-accent-600: #b38400;
  --color-accent-700: #806000;
  --color-accent-800: #4d3c00;
  --color-accent-900: #1a1400;

  /* ----- Backgrounds ----- */
  --color-bg-default: #ffffff;
  --color-bg-subtle: #f5f6f7;
  --color-bg-elevated: #ffffff;
  --color-bg-overlay: rgba(0, 0, 0, 0.5);

  /* ----- Text ----- */
  --color-text-primary: #1a1d21;
  --color-text-secondary: #4a4f56;
  --color-text-tertiary: #6b7280;
  --color-text-inverse: #ffffff;
  --color-text-link: var(--color-primary-500);
  --color-text-link-hover: var(--color-primary-800);

  /* ----- Border ----- */
  --color-border-default: #e0e3e6;
  --color-border-strong: #c4c9cf;
  --color-border-focus: var(--color-primary-500);

  /* ----- Semantic ----- */
  --color-success: var(--color-primary-500);
  --color-success-bg: var(--color-primary-50);
  --color-warning: var(--color-accent-600);
  --color-warning-bg: var(--color-accent-50);
  --color-error: #c53030;
  --color-error-bg: #fff5f5;
  --color-info: #2b6cb0;
  --color-info-bg: #ebf8ff;

  /* ----- State ----- */
  --color-state-hover-bg: #f5f6f7;
  --color-state-active-bg: #e0e3e6;
  --color-state-disabled-text: #9ca3af;
  --color-state-disabled-bg: #f3f4f6;
  --color-focus-ring: var(--color-primary-500);
  --shadow-focus: 0 0 0 3px rgba(13, 143, 122, 0.35);

  /* ----- Badges (admin) ----- */
  --color-badge-published: var(--color-primary-500);
  --color-badge-published-bg: var(--color-primary-50);
  --color-badge-draft: var(--color-accent-600);
  --color-badge-draft-bg: var(--color-accent-50);
  --color-badge-archived: #6b7280;
  --color-badge-archived-bg: #f3f4f6;

  /* ----- Typography ----- */
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;

  --text-h1-size: 2rem;
  --text-h1-weight: var(--font-weight-semibold);
  --text-h1-line-height: 1.25;
  --text-h1-letter-spacing: -0.01em;

  --text-h2-size: 1.5rem;
  --text-h2-weight: var(--font-weight-semibold);
  --text-h2-line-height: 1.25;
  --text-h2-letter-spacing: -0.01em;

  --text-h3-size: 1.25rem;
  --text-h3-weight: var(--font-weight-semibold);
  --text-h3-line-height: 1.3;
  --text-h3-letter-spacing: 0;

  --text-h4-size: 1.125rem;
  --text-h4-weight: var(--font-weight-semibold);
  --text-h4-line-height: 1.4;
  --text-h4-letter-spacing: 0;

  --text-body-size: 1rem;
  --text-body-weight: var(--font-weight-regular);
  --text-body-line-height: 1.5;
  --text-body-letter-spacing: 0;

  --text-small-size: 0.875rem;
  --text-small-weight: var(--font-weight-regular);
  --text-small-line-height: 1.5;
  --text-small-letter-spacing: 0;

  --text-caption-size: 0.75rem;
  --text-caption-weight: var(--font-weight-regular);
  --text-caption-line-height: 1.4;
  --text-caption-letter-spacing: 0.025em;

  /* ----- Spacing (8px base grid) ----- */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ----- Radius (soft 8–12px) ----- */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;

  /* ----- Shadows ----- */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 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.05);

  /* ----- Breakpoints (use in media queries) ----- */
  --bp-mobile: 375px;
  --bp-tablet: 768px;
  --bp-desktop: 1024px;
  --bp-desktop-wide: 1440px;
}
