/* ==========================================================================
   SABRESMETRICS DESIGN SYSTEM
   Reusable CSS variables and utility classes for consistent styling
   ========================================================================== */

:root {
  /* ==========================================================================
     Brand Colors
     ========================================================================== */
  --sabres-navy: #003087;
  --sabres-navy-dark: #002060;
  --sabres-navy-light: #0047ab;
  --sabres-gold: #fcb514;
  --sabres-gold-dark: #e5a312;
  --sabres-gold-light: #ffd54f;

  /* ==========================================================================
     Neutral Colors (Tailwind-inspired gray scale)
     ========================================================================== */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* ==========================================================================
     Semantic Colors
     ========================================================================== */
  --color-success: #059669;
  --color-success-light: #d1fae5;
  --color-warning: #d97706;
  --color-warning-light: #fef3c7;
  --color-danger: #dc2626;
  --color-danger-light: #fee2e2;
  --color-info: #0284c7;
  --color-info-light: #e0f2fe;

  /* ==========================================================================
     Spacing Scale (4px base)
     ========================================================================== */
  --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;

  /* ==========================================================================
     Typography
     ========================================================================== */
  --font-sans:
    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  --font-brand: 'IBM Plex Sans', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, monospace;

  /* Font Sizes */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem; /* 36px */

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

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

  /* ==========================================================================
     Border Radius
     ========================================================================== */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --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 -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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* ==========================================================================
     Transitions
     ========================================================================== */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;
}

/* ==========================================================================
   Global Base Styles
   ========================================================================== */

html,
body {
  font-family: var(--font-sans);
}

body {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--gray-800);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: var(--font-semibold);
  color: var(--sabres-navy);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Cards */
.card-modern {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
}

.card-modern-lg {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sabres-gold);
  color: var(--sabres-navy);
  font-family: var(--font-sans);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--sabres-gold-dark);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sabres-navy);
  color: white;
  font-family: var(--font-sans);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast);
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--sabres-navy-dark);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--sabres-navy);
  font-family: var(--font-sans);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 2px solid var(--sabres-navy);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--sabres-navy);
  color: white;
}

/* Form Inputs */
.input-modern {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: white;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.input-modern:focus {
  outline: none;
  border-color: var(--sabres-navy);
  box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.1);
}

.input-modern::placeholder {
  color: var(--gray-400);
}

/* Text Utilities */
.text-primary {
  color: var(--sabres-navy);
}

.text-accent {
  color: var(--sabres-gold);
}

.text-muted {
  color: var(--gray-500);
}

/* Background Utilities */
.bg-primary {
  background-color: var(--sabres-navy);
}

.bg-accent {
  background-color: var(--sabres-gold);
}

.bg-light {
  background-color: var(--gray-50);
}
