/**
 * CSS Custom Properties - Design System
 */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;600;700&display=swap');

:root {
  /* Typography */
  --font-heading: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Colors - Clay Court Theme */
  --color-primary: #D84315;
  --color-primary-light: #FF6E40;
  --color-primary-dark: #BF360C;

  --color-accent: #CDDC39;
  --color-accent-dark: #9E9D24;

  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-text: #212121;
  --color-text-secondary: #757575;
  --color-border: #E0E0E0;

  --color-success: #43A047;
  --color-error: #E53935;
  --color-warning: #FB8C00;
  --color-info: #1E88E5;

  /* Surface treatments */
  --surface-glass: rgba(255, 255, 255, 0.92);
  --surface-glass-strong: rgba(255, 255, 255, 0.97);
  --surface-border: rgba(255, 255, 255, 0.5);
  --surface-border-strong: rgba(255, 255, 255, 0.75);
  --surface-blur: 18px;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #D84315 0%, #BF360C 100%);
  --gradient-surface: linear-gradient(180deg, rgba(216, 67, 21, 0.03) 0%, transparent 100%);
  --gradient-hero: linear-gradient(135deg, rgba(30, 30, 30, 0.98) 0%, rgba(18, 18, 18, 0.95) 50%, rgba(30, 30, 30, 0.98) 100%);
  --gradient-glow: radial-gradient(circle at top, rgba(255, 255, 255, 0.6), transparent 55%);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --elevation-card: 0 30px 60px rgba(21, 16, 11, 0.12);
  --elevation-card-hover: 0 40px 70px rgba(21, 16, 11, 0.16);
  --elevation-modal: 0 40px 80px rgba(21, 16, 11, 0.2);
  --elevation-toast: 0 25px 50px rgba(21, 16, 11, 0.18);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-toast: 1060;
  --z-tooltip: 1070;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121212;
    --color-surface: #1E1E1E;
    --color-text: #E0E0E0;
    --color-text-secondary: #9E9E9E;
    --color-border: #333333;

    --surface-glass: rgba(18, 18, 18, 0.75);
    --surface-glass-strong: rgba(24, 24, 24, 0.85);
    --surface-border: rgba(255, 255, 255, 0.08);
    --surface-border-strong: rgba(255, 255, 255, 0.12);
    --surface-blur: 28px;

    --elevation-card: 0 35px 70px rgba(0, 0, 0, 0.45);
    --elevation-card-hover: 0 45px 90px rgba(0, 0, 0, 0.55);
    --elevation-modal: 0 45px 90px rgba(0, 0, 0, 0.55);
    --elevation-toast: 0 30px 60px rgba(0, 0, 0, 0.5);

    --gradient-surface: linear-gradient(180deg, rgba(216, 67, 21, 0.08) 0%, transparent 100%);
  }
}
