/* ============================================================
   USHUAIA VOLLEYBALL CLUB — DESIGN SYSTEM v2.0
   Premium Admin Dashboard — Modern SaaS Aesthetic
   ============================================================ */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Brand Colors — preserved from original palette */
  --brand-navy: #1b2a4a;
  --brand-navy-dark: #0f1a32;
  --brand-navy-deep: #0a1628;
  --brand-blue: #4a7ab5;
  --brand-blue-light: #6b9fd4;
  --brand-silver: #c0c8d4;
  --brand-silver-light: #e8eef5;

  /* Semantic Colors — Light Mode */
  --color-bg: #f6f8fb;
  --color-bg-subtle: #edf2f7;
  --color-surface: #ffffff;
  --color-surface-raised: #ffffff;
  --color-surface-overlay: rgba(255, 255, 255, 0.95);
  --color-text: #172033;
  --color-text-secondary: #4a5e7a;
  --color-text-muted: #8a9bb5;
  --color-text-inverse: #ffffff;
  --color-border: #e2e8f0;
  --color-border-subtle: #f1f5f9;
  --color-primary: #1b2a4a;
  --color-primary-hover: #2c4270;
  --color-accent: #4a7ab5;
  --color-accent-hover: #3d6a9e;
  --color-accent-subtle: rgba(74, 122, 181, 0.08);
  --color-accent-muted: rgba(74, 122, 181, 0.15);
  --color-success: #10b981;
  --color-success-subtle: rgba(16, 185, 129, 0.08);
  --color-warning: #f59e0b;
  --color-warning-subtle: rgba(245, 158, 11, 0.08);
  --color-danger: #ef4444;
  --color-danger-subtle: rgba(239, 68, 68, 0.08);

  /* Sidebar */
  --sidebar-bg: #0f1a32;
  --sidebar-border: rgba(255, 255, 255, 0.06);
  --sidebar-text: #8a9bb5;
  --sidebar-text-hover: #e8eef5;
  --sidebar-active-bg: rgba(74, 122, 181, 0.15);
  --sidebar-active-text: #ffffff;
  --sidebar-active-indicator: #4a7ab5;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #1b2a4a 0%, #2c4270 50%, #4a7ab5 100%);
  --gradient-accent: linear-gradient(135deg, #4a7ab5 0%, #6b9fd4 100%);
  --gradient-surface: linear-gradient(180deg, #f6f8fb 0%, #edf2f7 100%);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.8125rem;
  --font-size-base: 0.875rem;
  --font-size-md: 0.9375rem;
  --font-size-lg: 1rem;
  --font-size-xl: 1.125rem;
  --font-size-2xl: 1.375rem;
  --font-size-3xl: 1.75rem;
  --font-size-4xl: 2.25rem;
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;

  /* Spacing Scale */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(11, 22, 40, 0.04);
  --shadow-sm: 0 1px 3px rgba(11, 22, 40, 0.06), 0 1px 2px rgba(11, 22, 40, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(11, 22, 40, 0.07), 0 2px 4px -2px rgba(11, 22, 40, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(11, 22, 40, 0.08), 0 4px 6px -4px rgba(11, 22, 40, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(11, 22, 40, 0.08), 0 8px 10px -6px rgba(11, 22, 40, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(11, 22, 40, 0.15);
  --shadow-inner: inset 0 2px 4px rgba(11, 22, 40, 0.04);
  --shadow-accent: 0 4px 14px rgba(74, 122, 181, 0.25);
  --shadow-card-hover: 0 12px 24px -4px rgba(11, 22, 40, 0.1), 0 4px 8px -2px rgba(11, 22, 40, 0.05);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;
  --transition-base: all var(--duration-normal) var(--ease-in-out);
  --transition-fast: all var(--duration-fast) var(--ease-in-out);
  --transition-transform: transform var(--duration-normal) var(--ease-out);
  --transition-shadow: box-shadow var(--duration-normal) var(--ease-in-out);
  --transition-colors: color var(--duration-fast), background-color var(--duration-fast), border-color var(--duration-fast);

  /* Layout */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 72px;
  --topbar-height: 64px;
  --content-max-width: 1440px;
  --z-sidebar: 100;
  --z-topbar: 90;
  --z-modal: 1000;
  --z-toast: 2000;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --color-bg: #0c1222;
  --color-bg-subtle: #131d2e;
  --color-surface: #172033;
  --color-surface-raised: #1e293b;
  --color-surface-overlay: rgba(23, 32, 51, 0.95);
  --color-text: #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-text-inverse: #0f172a;
  --color-border: #1e293b;
  --color-border-subtle: #172033;
  --color-primary: #6b9fd4;
  --color-primary-hover: #4a7ab5;
  --color-accent: #6b9fd4;
  --color-accent-hover: #8ab8e4;
  --color-accent-subtle: rgba(107, 159, 212, 0.1);
  --color-accent-muted: rgba(107, 159, 212, 0.2);
  --color-success-subtle: rgba(16, 185, 129, 0.12);
  --color-warning-subtle: rgba(245, 158, 11, 0.12);
  --color-danger-subtle: rgba(239, 68, 68, 0.12);

  --sidebar-bg: #0a1019;
  --sidebar-border: rgba(255, 255, 255, 0.04);

  --gradient-surface: linear-gradient(180deg, #0c1222 0%, #131d2e 100%);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 12px 24px -4px rgba(0, 0, 0, 0.3);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
