/**
 * mycoyouco Design System - CSS Custom Properties
 * Based on Material Design 3 and Flutter color_scheme.dart
 */

:root {
  /* ============================================
     Brand Colors (from Flutter color_scheme.dart)
     ============================================ */

  /* Primary - Purple */
  --color-primary: #a855f7;
  --color-on-primary: #ffffff;
  --color-primary-container: #f3e5ff;
  --color-on-primary-container: #31006f;

  /* Secondary - Pink */
  --color-secondary: #ec4899;
  --color-on-secondary: #ffffff;
  --color-secondary-container: #ffd9e8;
  --color-on-secondary-container: #5c0032;

  /* Tertiary - Light Purple */
  --color-tertiary: #c77dff;
  --color-on-tertiary: #ffffff;
  --color-tertiary-container: #f5e5ff;
  --color-on-tertiary-container: #3d0066;

  /* ============================================
     Entity Colors (from marketing-graphics spec)
     ============================================ */
  --color-user: #3B82F6;
  --color-user-light: #DBEAFE;
  --color-community: #22C55E;
  --color-community-light: #DCFCE7;
  --color-trainer: #A855F7;
  --color-trainer-light: #F3E8FF;
  --color-company: #F97316;
  --color-company-light: #FFEDD5;
  --color-location: #EF4444;
  --color-location-light: #FEE2E2;

  /* ============================================
     Surface Colors
     ============================================ */
  --color-surface: #fefbff;
  --color-surface-dim: #ddd8e1;
  --color-surface-bright: #fefbff;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #f7f2fa;
  --color-surface-container: #f3edf7;
  --color-surface-container-high: #ece6f0;
  --color-surface-container-highest: #e6e0e9;
  --color-on-surface: #1c1b1f;
  --color-on-surface-variant: #49454f;
  --color-surface-tint: #a855f7;

  /* ============================================
     Semantic Colors
     ============================================ */
  --color-error: #ba1a1a;
  --color-on-error: #ffffff;
  --color-error-container: #ffdad6;
  --color-on-error-container: #410002;

  --color-success: #22C55E;
  --color-on-success: #ffffff;

  --color-warning: #F59E0B;
  --color-on-warning: #ffffff;

  /* ============================================
     Outline & Border Colors
     ============================================ */
  --color-outline: #79747e;
  --color-outline-variant: #cac4d0;

  /* ============================================
     Shadow & Scrim
     ============================================ */
  --color-shadow: rgba(0, 0, 0, 0.1);
  --color-shadow-md: rgba(0, 0, 0, 0.15);
  --color-shadow-lg: rgba(0, 0, 0, 0.2);
  --color-scrim: rgba(0, 0, 0, 0.5);

  /* ============================================
     Gradients
     ============================================ */
  --gradient-primary: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --gradient-primary-soft: linear-gradient(135deg, #f3e5ff 0%, #ffd9e8 100%);
  --gradient-hero: linear-gradient(135deg, #a855f7 0%, #c77dff 50%, #ec4899 100%);

  /* ============================================
     Typography (matching Flutter app)
     ============================================ */
  --font-family-display: 'Capriola', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Font Sizes - Mobile First */
  --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 Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

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

  /* ============================================
     Spacing 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 */

  /* ============================================
     Border Radius
     ============================================ */
  --radius-none: 0;
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* ============================================
     Breakpoints (for reference in media queries)
     ============================================ */
  /*
   * --bp-sm: 640px
   * --bp-md: 768px
   * --bp-lg: 1024px
   * --bp-xl: 1280px
   * --bp-2xl: 1536px
   */

  /* ============================================
     Z-Index Scale
     ============================================ */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;

  /* ============================================
     Transitions
     ============================================ */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-colors: color 150ms ease, background-color 150ms ease, border-color 150ms ease;

  /* ============================================
     Container Widths
     ============================================ */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1400px;

  /* ============================================
     Focus Ring
     ============================================ */
  --focus-ring: 0 0 0 3px rgba(168, 85, 247, 0.4);
  --focus-ring-offset: 2px;
}

/* ============================================
   Dark Mode (optional, for future)
   ============================================ */
@media (prefers-color-scheme: dark) {
  :root.auto-dark {
    --color-primary: #d4bbff;
    --color-on-primary: #4a0092;
    --color-primary-container: #6b00b8;
    --color-on-primary-container: #f3e5ff;

    --color-secondary: #ffb1d5;
    --color-on-secondary: #8a0050;
    --color-secondary-container: #b70071;
    --color-on-secondary-container: #ffd9e8;

    --color-surface: #1c1b1f;
    --color-surface-container: #201f23;
    --color-on-surface: #e6e0e9;
    --color-on-surface-variant: #cac4d0;

    --color-outline: #938f99;
    --color-outline-variant: #49454f;
  }
}
