/* ============================================
   SEASON STANDINGS - GLOBAL CLASSIFICATION
   Minimalista/Futurista - Sin borders/radius
   ============================================ */

/* ============================================
   SECTION CONTAINER
   ============================================ */

.season-standings-section {
  width: 100%;
  padding: 40px 20px;
  background: var(--bg);
}

.season-standings-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ============================================
   HEADER SECTION
   ============================================ */

.season-standings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: var(--panel);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.season-standings-header-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.season-standings-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--txt);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.season-standings-title i {
  color: var(--accent);
  font-size: 28px;
}

.season-standings-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.season-standings-subtitle i {
  font-size: 14px;
}

/* ============================================
   FILTER BUTTONS
   ============================================ */

.season-standings-header-actions {
  display: flex;
  gap: 12px;
}

.season-filter-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--panel-2);
  color: var(--txt);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.season-filter-button:hover:not(:disabled):not(.disabled) {
  background: var(--hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.season-filter-button.season-filter-active {
  background: var(--accent);
  color: var(--txt-2);
  box-shadow: 0 4px 16px rgba(232, 0, 40, 0.3);
}

.season-filter-button:disabled,
.season-filter-button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.season-filter-button i {
  font-size: 16px;
}

/* ============================================
   STATS OVERVIEW CARDS
   ============================================ */

.season-stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.season-stat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--panel);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.season-stat-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.season-stat-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  color: var(--accent);
  font-size: 24px;
  flex-shrink: 0;
}

.season-stat-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.season-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--txt);
  line-height: 1;
}

.season-stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   TABLE WRAPPER
   ============================================ */

.season-table-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.season-table-container {
  background: var(--panel);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* ============================================
   TABLE HEADER
   ============================================ */

.season-table-header {
  display: grid;
  grid-template-columns: 60px 1fr 80px 80px 80px 120px 120px 120px;
  gap: 16px;
  padding: 20px 24px;
  background: var(--panel-2);
  align-items: center;
}

.season-table-header-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.season-header-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.season-header-text i {
  font-size: 14px;
}

.season-header-tooltip {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--panel-3);
  color: var(--txt-2);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.season-table-header-cell:hover .season-header-tooltip {
  opacity: 1;
  visibility: visible;
}

.season-sort-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.season-sort-button:hover {
  color: var(--txt);
  background: var(--hover);
}

.season-sort-button.season-sort-active {
  color: var(--accent);
}

.season-sort-button i {
  font-size: 14px;
}

/* ============================================
   TABLE BODY
   ============================================ */

.season-table-body {
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.season-table-row {
  display: grid;
  grid-template-columns: 60px 1fr 80px 80px 80px 120px 120px 120px;
  gap: 16px;
  padding: 20px 24px;
  align-items: center;
  background: var(--panel);
  transition: background 0.2s ease;
  box-shadow: 0 1px 0 var(--borders);
}

.season-table-row:last-child {
  box-shadow: none;
}

.season-row-highlight {
  background: var(--panel-2);
  box-shadow: inset 4px 0 0 var(--accent);
}

.season-table-cell {
  display: flex;
  align-items: center;
}

/* ============================================
   POSITION CELL
   ============================================ */

.season-cell-position {
  justify-content: center;
}

.season-position {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 16px;
  font-weight: 700;
  color: var(--txt);
  background: var(--panel-2);
}

.season-position-gold {
  background: #FFD700;
  color: #000000;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.season-position-gold i {
  color: #000000;
  font-size: 18px;
}

.season-position-silver {
  background: #C0C0C0;
  color: #000000;
  box-shadow: 0 4px 16px rgba(192, 192, 192, 0.3);
}

.season-position-silver i {
  color: #000000;
  font-size: 18px;
}

.season-position-bronze {
  background: #CD7F32;
  color: #000000;
  box-shadow: 0 4px 16px rgba(205, 127, 50, 0.3);
}

.season-position-bronze i {
  color: #000000;
  font-size: 18px;
}

/* ============================================
   TEAM CELL
   ============================================ */

.season-team-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.season-team-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--panel-2);
}

.season-team-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.season-team-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--txt);
  line-height: 1.2;
}

.season-team-initials {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.season-team-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--txt-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.season-team-tag i {
  font-size: 10px;
}

/* ============================================
   STATS CELLS
   ============================================ */

.season-stat {
  font-size: 15px;
  font-weight: 600;
  color: var(--txt);
}

.season-stat-wins {
  color: #00C853;
}

.season-stat-losses {
  color: #FF5252;
}

/* ============================================
   WIN RATE CELL
   ============================================ */

.season-winrate {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.season-winrate-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--txt);
}

.season-winrate-bar {
  width: 100%;
  height: 4px;
  background: var(--panel-2);
  overflow: hidden;
}

.season-winrate-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

/* ============================================
   POINTS CELL
   ============================================ */

.season-points {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

/* ============================================
   TREND CELL
   ============================================ */

.season-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  background: var(--panel-2);
}

.season-trend i {
  font-size: 12px;
}

.season-trend-up {
  color: #00C853;
}

.season-trend-down {
  color: #FF5252;
}

.season-trend-stable {
  color: var(--muted);
}

/* ============================================
   LOADING STATE
   ============================================ */

.season-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 24px;
}

.season-loading-spinner i {
  color: var(--accent);
}

.season-loading-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.season-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 24px;
}

.season-empty-state i {
  color: var(--muted);
  opacity: 0.5;
}

.season-empty-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}

/* ============================================
   PAGINATION
   ============================================ */

.season-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: var(--panel);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.season-pagination-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--panel-2);
  color: var(--txt);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.season-pagination-button:hover:not(:disabled) {
  background: var(--hover);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.season-pagination-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.season-pagination-button i {
  font-size: 12px;
}

.season-pagination-pages {
  display: flex;
  gap: 8px;
}

.season-pagination-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--panel-2);
  color: var(--txt);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.season-pagination-page:hover {
  background: var(--hover);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.season-pagination-page.season-pagination-active {
  background: var(--accent);
  color: var(--txt-2);
  box-shadow: 0 2px 12px rgba(232, 0, 40, 0.3);
}

/* ============================================
   LEGEND FOOTER
   ============================================ */

.season-legend {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 24px;
  background: var(--panel);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.season-legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.season-legend-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--txt-2);
  font-size: 14px;
}

.season-legend-icon-top3 {
  background: #FFD700;
  color: #000000;
}

.season-legend-icon-playoffs {
  background: #FF9800;
  color: #000000;
}

.season-legend-icon-relegation {
  background: #FF5252;
  color: #ffffff;
}

.season-legend-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--txt);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
  .season-table-header,
  .season-table-row {
    grid-template-columns: 50px 1fr 70px 70px 70px 100px 100px 100px;
    gap: 12px;
    padding: 16px 20px;
  }

  .season-standings-title {
    font-size: 28px;
  }

  .season-stat-value {
    font-size: 24px;
  }
}

@media (max-width: 992px) {
  .season-standings-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .season-standings-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .season-stats-overview {
    grid-template-columns: repeat(2, 1fr);
  }

  .season-table-header {
    display: none;
  }

  .season-table-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }

  .season-table-cell {
    justify-content: space-between;
  }

  .season-table-cell::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .season-cell-position::before {
    content: 'Posición';
  }

  .season-cell-team::before {
    content: 'Equipo';
  }

  .season-cell-matches::before {
    content: 'Partidas';
  }

  .season-cell-wins::before {
    content: 'Victorias';
  }

  .season-cell-losses::before {
    content: 'Derrotas';
  }

  .season-cell-winrate::before {
    content: 'Win Rate';
  }

  .season-cell-points::before {
    content: 'Puntos';
  }

  .season-cell-trend::before {
    content: 'Tendencia';
  }

  .season-legend {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .season-standings-section {
    padding: 20px 16px;
  }

  .season-standings-container {
    gap: 20px;
  }

  .season-standings-header {
    padding: 24px 20px;
  }

  .season-standings-title {
    font-size: 24px;
  }

  .season-standings-title i {
    font-size: 22px;
  }

  .season-filter-button {
    padding: 10px 16px;
    font-size: 13px;
  }

  .season-stats-overview {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .season-stat-card {
    padding: 20px;
  }

  .season-stat-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .season-stat-value {
    font-size: 22px;
  }

  .season-pagination {
    flex-wrap: wrap;
  }

  .season-pagination-button {
    padding: 10px 16px;
    font-size: 13px;
  }

  .season-pagination-pages {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .season-standings-header-actions {
    flex-direction: column;
    width: 100%;
  }

  .season-filter-button {
    width: 100%;
    justify-content: center;
  }

  .season-team-info {
    flex-wrap: wrap;
  }

  .season-team-tag {
    width: 100%;
    justify-content: center;
  }
}