/* Baseball Savant Style Design System */

/* ============================================
   1. Color Palette & Design Tokens
   ============================================ */
:root {
  /* MLB/Savant Primary Colors */
  --savant-red: #d22d49;           /* Primary red accent */
  --savant-blue: #002d72;          /* MLB official blue */
  --savant-dark-blue: #003263;     /* Navigation/headers */
  
  /* Background Colors */
  --bg-primary: #ffffff;           /* Main content background */
  --bg-secondary: #f7f8f9;         /* Alternating rows/sections */
  --bg-tertiary: #e5e7eb;          /* Subtle backgrounds */
  --bg-dark: #1a1a1a;              /* Footer/dark sections */
  
  /* Text Colors */
  --text-primary: #1a202c;         /* Main text */
  --text-secondary: #4a5568;       /* Secondary text */
  --text-muted: #718096;           /* Muted/helper text */
  --text-light: #a0aec0;           /* Disabled/very muted */
  
  /* Table Colors */
  --table-header-bg: #f3f4f6;      /* Table header background */
  --table-border: #e2e8f0;         /* Table borders */
  --table-hover: #f9fafb;          /* Row hover state */
  --table-stripe: #fafbfc;         /* Alternating row color */
  
  /* Status/Metric Colors */
  --positive: #10b981;              /* Positive metrics (green) */
  --negative: #ef4444;              /* Negative metrics (red) */
  --neutral: #6b7280;               /* Neutral values (gray) */
  --warning: #f59e0b;               /* Warning/caution (amber) */
}

/* ============================================
   2. Typography System
   ============================================ */
body {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Monospace for statistics */
.stat-value, 
.numeric-col,
td.number {
  font-family: 'Roboto Mono', 'SF Mono', 'Monaco', monospace;
  font-variant-numeric: tabular-nums;
}

/* Typography Scale */
.text-xs { font-size: 0.75rem; }    /* 12px */
.text-sm { font-size: 0.875rem; }   /* 14px */
.text-base { font-size: 1rem; }     /* 16px */
.text-lg { font-size: 1.125rem; }   /* 18px */
.text-xl { font-size: 1.25rem; }    /* 20px */
.text-2xl { font-size: 1.5rem; }    /* 24px */

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

/* ============================================
   3. Navigation Header Redesign
   ============================================ */
.savant-header {
  background: linear-gradient(180deg, #002d72 0%, #003263 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.savant-header-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 60px;
}

/* Logo Section */
.savant-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Navigation Items */
.savant-nav {
  margin-left: auto;
  display: flex;
  gap: 0;
}

.savant-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.savant-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.savant-nav a.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
}

.savant-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #d22d49;
}

/* Mobile Hamburger Menu Toggle (hidden on desktop) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* User Dropdown */
.user-dropdown {
  position: relative;
  margin-left: 20px;
}

.user-dropdown-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  padding: 0 15px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
}

.user-dropdown-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.user-dropdown-toggle i.fa-user-circle {
  font-size: 20px;
}

.user-dropdown-toggle .dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.user-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 9999;
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: visible;
}

.user-dropdown.active .user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-bottom: 1px solid #dee2e6;
  border-radius: 8px 8px 0 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info i {
  font-size: 24px;
  color: #007bff;
}

.user-display-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}

.user-role {
  font-size: 12px;
  color: #6c757d;
  margin-top: 2px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #495057 !important;
  text-decoration: none !important;
  font-size: 14px;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #007bff;
}

.dropdown-item i {
  width: 16px;
  text-align: center;
  font-size: 14px;
}

.dropdown-item.text-danger {
  color: #dc3545;
}

.dropdown-item.text-danger:hover {
  background-color: #f8d7da;
  color: #721c24;
}

.dropdown-divider {
  height: 1px;
  background-color: #dee2e6;
  margin: 8px 0;
}

.text-primary {
  color: #007bff !important;
}

/* ============================================
   4. Page Layout Structure
   ============================================ */
.savant-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 20px;
}

@media (max-width: 768px) {
  .savant-container {
    padding: 16px 12px;
  }
}

/* Remove all card shadows and borders for cleaner look */
.savant-section {
  background: white;
  margin-bottom: 24px;
  border-radius: 0; /* Savant uses minimal rounded corners */
  border: 1px solid #e2e8f0;
}

/* ============================================
   5. Filters & Controls Section
   ============================================ */
.savant-controls {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Filter Dropdowns */
.savant-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.savant-filter label {
  font-size: 13px;
  font-weight: 500;
  color: #4a5568;
  white-space: nowrap;
}

.savant-select {
  height: 36px;
  padding: 0 32px 0 12px;
  font-size: 14px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  background-color: white;
  color: #1a202c;
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%234a5568' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.savant-select:hover {
  border-color: #002d72;
}

.savant-select:focus {
  outline: none;
  border-color: #002d72;
  box-shadow: 0 0 0 3px rgba(0, 45, 114, 0.1);
}

/* Search Input */
.savant-search {
  position: relative;
  flex: 1;
  max-width: 300px;
}

.savant-search input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 36px;
  font-size: 14px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  transition: all 0.2s;
}

.savant-search::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #718096;
}

/* ============================================
   6. Statistics Table Redesign
   ============================================ */
.savant-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

/* Table Header */
.savant-table thead {
  background: #f7f8f9;
}

.savant-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4a5568;
  border-bottom: 2px solid #e2e8f0;
  background: #f7f8f9;
  white-space: nowrap;
  user-select: none;
}

/* Numeric columns */
.savant-table th.numeric,
.savant-table td.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Sortable headers */
.savant-table th.sortable {
  cursor: pointer;
  position: relative;
  padding-right: 20px;
}

.savant-table th.sortable:hover {
  background: #edf2f7;
}

.savant-table th.sortable::after {
  content: '↕';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #a0aec0;
}

.savant-table th.sort-asc::after {
  content: '↑';
  color: #002d72;
}

.savant-table th.sort-desc::after {
  content: '↓';
  color: #002d72;
}

/* Table Body */
.savant-table tbody tr {
  border-bottom: 1px solid #f0f1f3;
  transition: background-color 0.1s;
}

.savant-table tbody tr:hover {
  background-color: #f9fafb;
}

.savant-table tbody tr:nth-child(even) {
  background-color: #fafbfc;
}

.savant-table td {
  padding: 12px;
  color: #1a202c;
  font-size: 13px;
  line-height: 1.4;
}

/* Player name column */
.savant-table .player-name {
  font-weight: 500;
  color: #002d72;
  text-decoration: none;
  transition: color 0.2s;
}

.savant-table .player-name:hover {
  color: #d22d49;
  text-decoration: underline;
}

/* Rank column */
.savant-table .rank {
  font-weight: 600;
  color: #4a5568;
  width: 40px;
}

/* Highlight important metrics */
.savant-table .highlight-value {
  font-weight: 600;
  color: #002d72;
}

/* Percentile coloring */
.percentile-excellent { color: #d22d49; font-weight: 600; }
.percentile-great { color: #10b981; font-weight: 500; }
.percentile-above-avg { color: #10b981; }
.percentile-avg { color: #1a202c; }
.percentile-below-avg { color: #f59e0b; }
.percentile-poor { color: #ef4444; }

/* ============================================
   7. Stat Cards Redesign
   ============================================ */
.savant-stat-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 20px;
  transition: all 0.2s;
}

.savant-stat-card:hover {
  border-color: #cbd5e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.savant-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #002d72;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.savant-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.savant-stat-change {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
}

.savant-stat-change.positive {
  color: #10b981;
}

.savant-stat-change.negative {
  color: #ef4444;
}

/* ============================================
   8. Buttons & Interactive Elements
   ============================================ */
.savant-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.savant-btn-primary {
  background: #002d72;
  color: white;
}

.savant-btn-primary:hover {
  background: #003263;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.savant-btn-secondary {
  background: white;
  color: #002d72;
  border: 1px solid #cbd5e0;
}

.savant-btn-secondary:hover {
  background: #f7f8f9;
  border-color: #002d72;
}

/* Export/Download buttons */
.savant-btn-export {
  background: transparent;
  color: #002d72;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  height: 32px;
  padding: 0 12px;
}

.savant-btn-export:hover {
  background: #f7f8f9;
  border-color: #002d72;
}

/* ============================================
   9. Responsive Design
   ============================================ */
@media (max-width: 640px) {
  .savant-header-content {
    padding: 0 16px;
  }
  
  .savant-nav {
    display: none; /* Use hamburger menu */
  }
  
  .user-dropdown {
    display: block;
    margin-left: auto;
  }
  
  .user-dropdown-menu {
    right: 0;
    left: auto;
    min-width: 250px;
  }
}
  
  .savant-table {
    font-size: 12px;
  }
  
  .savant-table th,
  .savant-table td {
    padding: 8px 6px;
  }
  
  /* Hide less important columns on mobile */
  .hide-mobile {
    display: none;
  }
  
  .savant-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .savant-filter {
    width: 100%;
  }
  
  .savant-select {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .savant-container {
    padding: 16px;
  }
  
  .savant-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   10. Performance Optimizations
   ============================================ */
/* Use CSS containment for better performance */
.savant-table {
  contain: layout style;
}

/* Hardware acceleration for smooth scrolling */
.savant-header,
.savant-table thead {
  transform: translateZ(0);
  will-change: transform;
}

/* ============================================
   11. Loading States
   ============================================ */
.savant-loading {
  position: relative;
  min-height: 400px;
}

.savant-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #f7f8f9 25%, #e5e7eb 50%, #f7f8f9 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   12. Integration with Existing Classes
   ============================================ */

/* Update existing table classes to use Savant styling */
.table--savant {
  @extend .savant-table;
}

.table--savant th {
  @extend .savant-table th;
}

.table--savant td {
  @extend .savant-table td;
}

/* Update existing stat classes */
.stat-item__value {
  font-family: 'Roboto Mono', 'SF Mono', 'Monaco', monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #002d72;
}

/* Update existing card classes */
.card {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow: none;
}

.card:hover {
  border-color: #cbd5e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Update form controls */
.form-control,
.form-select {
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
  border-color: #002d72;
  box-shadow: 0 0 0 3px rgba(0, 45, 114, 0.1);
  outline: none;
}

/* Update button styles */
.btn--primary {
  background: #002d72;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn--primary:hover {
  background: #003263;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn--secondary {
  background: white;
  color: #002d72;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn--secondary:hover {
  background: #f7f8f9;
  border-color: #002d72;
}

/* ============================================
   Coaching Dashboard Enhancements
   ============================================ */

/* Charts Container */
.coaching-chart-container {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.coaching-chart-container h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}

.chart-canvas {
  max-height: 400px;
  width: 100%;
}

/* Coaching Insights Panel */
.coaching-insights {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #0284c7;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.coaching-insights h2 {
  color: #0284c7;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.coaching-insights h2::before {
  content: '🎯';
  font-size: 20px;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.insight-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px;
  position: relative;
}

.insight-card.priority-high {
  border-left: 4px solid #ef4444;
}

.insight-card.priority-medium {
  border-left: 4px solid #f59e0b;
}

.insight-card.priority-low {
  border-left: 4px solid #10b981;
}

.insight-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.insight-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.insight-action {
  font-size: 12px;
  font-weight: 500;
  color: #0284c7;
  background: #f0f9ff;
  padding: 6px 10px;
  border-radius: 4px;
  display: inline-block;
}

/* Player Development Matrix */
.development-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.development-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  transition: all 0.2s;
}

.development-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.development-card.star-player {
  border-color: #10b981;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.development-card.solid-performer {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.development-card.developing {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.development-card.needs-work {
  border-color: #ef4444;
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.development-card .player-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.player-metrics {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.metric {
  text-align: center;
}

.metric .label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric .value {
  font-size: 18px;
  font-weight: 700;
  color: var(--savant-blue);
  font-family: 'Roboto Mono', monospace;
  display: block;
}

.status-indicator {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-align: center;
}

.status-indicator.star-player {
  background: #dcfce7;
  color: #166534;
}

.status-indicator.solid-performer {
  background: #dbeafe;
  color: #1e40af;
}

.status-indicator.developing {
  background: #fef3c7;
  color: #92400e;
}

.status-indicator.needs-work {
  background: #fee2e2;
  color: #991b1b;
}

.coaching-tip {
  font-size: 11px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.3;
}

/* Performance Indicators */
.performance-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.performance-indicator.excellent {
  background: #dcfce7;
  color: #166534;
}

.performance-indicator.good {
  background: #dbeafe;
  color: #1e40af;
}

.performance-indicator.average {
  background: #fef3c7;
  color: #92400e;
}

.performance-indicator.needs-work {
  background: #fee2e2;
  color: #991b1b;
}

.performance-indicator::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Key Stats Highlights */
.key-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.key-stat {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  text-align: center;
}

.key-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--savant-blue);
  font-family: 'Roboto Mono', monospace;
  display: block;
}

.key-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.key-stat-change {
  font-size: 10px;
  font-weight: 500;
  margin-top: 4px;
}

.key-stat-change.positive {
  color: #10b981;
}

.key-stat-change.negative {
  color: #ef4444;
}

.key-stat-change::before {
  content: '↑';
  margin-right: 2px;
}

.key-stat-change.negative::before {
  content: '↓';
}

/* Team Comparison Cards */
.comparison-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.comparison-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  position: relative;
}

.comparison-card.winning {
  border-color: #10b981;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.comparison-card.losing {
  border-color: #ef4444;
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.comparison-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.comparison-value {
  font-size: 24px;
  font-weight: 700;
  font-family: 'Roboto Mono', monospace;
  margin-bottom: 4px;
}

.comparison-card.winning .comparison-value {
  color: #10b981;
}

.comparison-card.losing .comparison-value {
  color: #ef4444;
}

.comparison-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Mobile Responsive for Coaching Dashboard */
@media (max-width: 768px) {
  .coaching-chart-container {
    padding: 16px;
  }
  
  .insights-grid {
    grid-template-columns: 1fr;
  }
  
  .development-grid {
    grid-template-columns: 1fr;
  }
  
  .key-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .comparison-cards {
    grid-template-columns: 1fr;
  }
}
