/**
 * @file
 * CC Soccer Design Tokens
 *
 * Central design tokens (CSS custom properties) for the CC Soccer application.
 * This file defines ALL shared colors, spacing, typography, shadows, and
 * border-radius values used throughout the site.
 *
 * Load this file FIRST (before all other ccsoccer CSS) via libraries.yml.
 * Other CSS files reference these tokens with var(--token-name).
 *
 * IMPORTANT: Changing values here will update the entire site's appearance
 * without touching any other CSS file.
 */

:root {
  /* ============================================
     BRAND COLORS
     ============================================ */
  --color-primary: #B80000;          /* CCSoccer red - brand identity */
  --color-primary-dark: #8B0000;     /* Darker variant for hover/active */
  --color-primary-light: #cc0000;    /* Lighter variant */

  --color-accent: #e74c3c;           /* Bright red accent */
  --color-accent-dark: #c0392b;      /* Accent hover */

  /* ============================================
     FUNCTIONAL / SEMANTIC COLORS
     ============================================ */
  --color-success: #28a745;
  --color-success-dark: #218838;
  --color-success-darker: #1e7e34;
  --color-success-bg: #d4edda;
  --color-success-border: #c3e6cb;
  --color-success-text: #155724;

  --color-warning: #ffc107;
  --color-warning-dark: #e0a800;
  --color-warning-bg: #fff3cd;
  --color-warning-border: #ffeeba;
  --color-warning-text: #856404;

  --color-danger: #dc3545;
  --color-danger-dark: #c82333;
  --color-danger-bg: #f8d7da;
  --color-danger-border: #f5c6cb;
  --color-danger-text: #721c24;

  --color-info: #17a2b8;
  --color-info-bg: #d1ecf1;
  --color-info-border: #bee5eb;
  --color-info-text: #0c5460;

  /* ============================================
     NEUTRAL / GRAY SCALE
     ============================================ */
  --color-white: #ffffff;
  --color-gray-50: #fafafa;
  --color-gray-100: #f8f9fa;
  --color-gray-150: #f5f5f5;
  --color-gray-200: #e9ecef;
  --color-gray-250: #e0e0e0;
  --color-gray-300: #dee2e6;
  --color-gray-400: #ced4da;
  --color-gray-500: #adb5bd;
  --color-gray-600: #6c757d;
  --color-gray-700: #495057;
  --color-gray-800: #343a40;
  --color-gray-900: #212529;

  /* ============================================
     TEXT COLORS
     ============================================ */
  --color-text: #333333;
  --color-text-secondary: #555555;
  --color-text-muted: #6c757d;
  --color-text-light: #999999;
  --color-text-inverse: #ffffff;

  /* ============================================
     COMPONENT-SPECIFIC COLORS
     ============================================ */

  /* Admin / Builder green (team headers, workbench, group management) */
  --color-admin-green: #2c5f2d;
  --color-admin-green-dark: #1e4620;
  --color-admin-green-light: #4caf50;
  --color-admin-green-hover: #45a049;

  /* Action blue (navigation, links, primary actions) */
  --color-action: #007bff;
  --color-action-dark: #0056b3;
  --color-action-bg: #e3f2fd;

  /* Secondary action blue (save snapshot, season/tournament actions) */
  --color-action-alt: #0073aa;
  --color-action-alt-dark: #005a87;

  /* Player gender colors */
  --color-male: #3498db;
  --color-female: #e74c3c;

  /* Home team background */
  --color-home-bg: #f8d7da;
  --color-home-empty: #fce4e4;

  /* Groups */
  --color-group-pending-bg: #fff8e6;
  --color-group-pending-border: #ffc107;
  --color-group-complete-bg: #e8f5e9;
  --color-group-complete-border: #4caf50;

  /* Tournament groups (gold) */
  --color-tournament-group-bg: #fffaf0;
  --color-tournament-group-border: #daa520;

  /* ============================================
     TYPOGRAPHY
     ============================================ */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'Courier New', Courier, monospace;

  /* Type scale (based on 1rem = 16px) */
  --text-xs: 0.75rem;       /* 12px */
  --text-sm: 0.8125rem;     /* 13px */
  --text-base: 0.875rem;    /* 14px - body text */
  --text-md: 0.9375rem;     /* 15px */
  --text-lg: 1rem;          /* 16px */
  --text-xl: 1.125rem;      /* 18px */
  --text-2xl: 1.25rem;      /* 20px */
  --text-3xl: 1.5rem;       /* 24px */
  --text-4xl: 2rem;         /* 32px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 900;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;

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

  /* ============================================
     BORDER RADIUS
     ============================================ */
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-2xl: 12px;
  --radius-pill: 9999px;

  /* ============================================
     BOX SHADOWS
     ============================================ */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.03);

  /* Colored shadows for interactive elements */
  --shadow-primary: 0 4px 14px rgba(184, 0, 0, 0.2);
  --shadow-success: 0 4px 14px rgba(40, 167, 69, 0.2);
  --shadow-danger: 0 4px 14px rgba(220, 53, 69, 0.2);

  /* ============================================
     TRANSITIONS
     ============================================ */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;

  /* ============================================
     Z-INDEX SCALE
     ============================================ */
  --z-dropdown: 2000;
  --z-sticky: 200;
  --z-fixed: 500;
  --z-floating-nav: 1000;
  --z-toast: 9999;
  --z-dev-banner: 10000;

  /* ============================================
     BORDERS
     ============================================ */
  --border-color: #dee2e6;
  --border-color-light: #e9ecef;
  --border-color-dark: #ced4da;
}
