/**
 * QR Cards MVP Design System
 * 
 * This file contains all design tokens as CSS variables.
 * These variables should be used throughout the application to ensure
 * consistent styling and easy theming.
 */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;700&family=Libre+Franklin:wght@400;500;700&display=swap');

/**
 * CSS Variables
 * 
 * All design tokens are defined as CSS variables on the :root element
 * to make them globally available throughout the application.
 */
:root {
  /* Primary Colors */
  --color-primary: #224646;      /* Dark Green */
  --color-secondary: #4ca8be;    /* Turquoise */
  --color-accent: #fae056;       /* Yellow */
  
  /* Neutral Colors */
  --color-dark: #333333;
  --color-medium: #666666;
  --color-light: #f5f5f5;
  
  /* Semantic Colors */
  --color-success: #28a745;
  --color-warning: #ffc107;
  --color-danger: #dc3545;
  --color-info: #17a2b8;
  
  /* Background Colors */
  --color-background: #ffffff;
  --color-background-alt: #f8f9fa;
  
  /* Text Colors */
  --color-text: #333333;
  --color-text-light: #ffffff;
  --color-text-muted: #6c757d;
  
  /* Typography */
  --font-primary: 'Libre Franklin', sans-serif;
  --font-heading: 'League Spartan', sans-serif;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-md: 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 Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  
  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-loose: 1.8;
  
  /* Spacing */
  --spacing-xs: 0.25rem;  /* 4px */
  --spacing-sm: 0.5rem;   /* 8px */
  --spacing-md: 1rem;     /* 16px */
  --spacing-lg: 1.5rem;   /* 24px */
  --spacing-xl: 2rem;     /* 32px */
  --spacing-2xl: 3rem;    /* 48px */
  --spacing-3xl: 4rem;    /* 64px */
  
  /* Border Radius */
  --border-radius-sm: 0.125rem; /* 2px */
  --border-radius-md: 0.25rem;  /* 4px */
  --border-radius-lg: 0.5rem;   /* 8px */
  --border-radius-xl: 1rem;     /* 16px */
  --border-radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms;
  --transition-normal: 300ms;
  --transition-slow: 500ms;
  
  /* Z-index */
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
  
  /* Container Widths */
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
  
  /* Grid Breakpoints */
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
}

/**
 * Dark Mode Variables
 * 
 * These variables are used when the user prefers dark mode.
 * They override the default variables defined above.
 */
@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #121212;
    --color-background-alt: #1e1e1e;
    --color-text: #f5f5f5;
    --color-text-muted: #a0a0a0;
    --color-light: #333333;
    --color-medium: #666666;
    --color-dark: #f5f5f5;
    
    /* Adjust semantic colors for dark mode */
    --color-success: #48bb78;
    --color-warning: #f6ad55;
    --color-danger: #f56565;
    --color-info: #4299e1;
    
    /* Adjust shadows for dark mode */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  }
}
