/* ============================================
   FussionShade Partner Program — Design Tokens
   Green palette, no glass, no glow, no purple
   ============================================ */

:root {
  /* ---- Primary Colors ---- */
  --color-primary: #059669;
  --color-primary-light: #34d399;
  --color-primary-dark: #047857;
  --color-primary-rgb: 5, 150, 105;

  /* ---- Accent ---- */
  --color-accent: #10b981;

  /* ---- Neutral (Light Mode) ---- */
  --color-bg: #ffffff;
  --color-bg-alt: #f8faf9;
  --color-surface: #ffffff;
  --color-surface-hover: #f1f5f3;

  /* ---- Text (Light Mode) ---- */
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;

  /* ---- Border (Light Mode) ---- */
  --color-border: #e2e8f0;
  --color-border-hover: #cbd5e1;

  /* ---- Semantic ---- */
  --color-success: #059669;
  --color-warning: #d97706;
  --color-error: #dc2626;

  /* ---- Typography ---- */
  --font-heading: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* ---- Font Sizes ---- */
  --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;

  /* ---- Font Weights ---- */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ---- Line Heights ---- */
  --leading-tight: 1.2;
  --leading-snug: 1.375;
  --leading-normal: 1.6;

  /* ---- Letter Spacing ---- */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;

  /* ---- Spacing Scale ---- */
  --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;

  /* ---- Border Radius ---- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

  /* ---- Transitions ---- */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* ---- Z-Index ---- */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;

  /* ---- Container ---- */
  --container-max: 1200px;
  --container-padding: 1.5rem;

  /* ---- Section ---- */
  --section-padding: 5rem;
}

/* ============================================
   Dark Theme
   ============================================ */
[data-theme="dark"] {
  --color-bg: #0a0f0d;
  --color-bg-alt: #0f1714;
  --color-surface: #111916;
  --color-surface-hover: #1a2420;

  --color-text: #f0fdf4;
  --color-text-secondary: #a7c4b8;
  --color-text-muted: #6b8f7e;

  --color-border: #1e2923;
  --color-border-hover: #2d4a3d;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Theme Transition
   ============================================ */
.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
