/* Light Mode Clean Standings Table Design */

/* Page Background - Light Mode */
body {
  background-color: #ffffff;
  color: #2d3748;
}

.standings-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  min-height: 100vh;
}

/* Section Styling - Light Mode */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #2d3748;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #718096;
  font-weight: 500;
}

/* Enhanced Table Controls */
.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
}

.filter-buttons .btn {
  border-radius: 25px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.filter-buttons .btn.active {
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

.filter-buttons .btn:not(.active) {
  background: white;
  border-color: #e2e8f0;
  color: #4a5568;
}

.filter-buttons .btn:not(.active):hover {
  border-color: #4299e1;
  color: #4299e1;
  transform: translateY(-1px);
  background: #f7fafc;
}

/* Enhanced Table Styling */
.standings-container {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.standings-table {
  margin-bottom: 0;
  font-size: 0.925rem;
  border-collapse: separate;
  border-spacing: 0;
}

.standings-table thead th {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: none;
  color: #2d3748;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 1.25rem 0.75rem;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}

.standings-table thead th:first-child {
  border-top-left-radius: 8px;
}

.standings-table thead th:last-child {
  border-top-right-radius: 8px;
}

.standings-table tbody tr {
  border: none;
  transition: all 0.2s ease;
  position: relative;
}

.standings-table tbody tr:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.standings-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

.standings-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

.standings-table tbody td {
  border: none;
  padding: 1.25rem 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  color: #4a5568;
}

/* Enhanced Position indicators */
.position-number {
  font-size: 0.925rem;
  font-weight: 700;
}

.table-success {
  border-left: 4px solid #38a169;
  background: linear-gradient(
    90deg,
    rgba(56, 161, 105, 0.04) 0%,
    transparent 100%
  );
}

.table-success:hover {
  background: linear-gradient(
    90deg,
    rgba(56, 161, 105, 0.08) 0%,
    rgba(248, 250, 252, 1) 100%
  );
}

.table-danger {
  border-left: 4px solid #e53e3e;
  background: linear-gradient(
    90deg,
    rgba(229, 62, 62, 0.04) 0%,
    transparent 100%
  );
}

.table-danger:hover {
  background: linear-gradient(
    90deg,
    rgba(229, 62, 62, 0.08) 0%,
    rgba(248, 250, 252, 1) 100%
  );
}

/* Enhanced Team info */
.team-logo {
  border: 2px solid #e2e8f0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.standings-table tbody tr:hover .team-logo {
  border-color: #4299e1;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.15);
}

.team-name {
  color: #2d3748;
  font-weight: 600;
  transition: color 0.2s ease;
}

.standings-table tbody tr:hover .team-name {
  color: #4299e1;
}

/* Enhanced Form badges */
.form-badge {
  font-size: 0.65rem;
  padding: 0.3rem 0.45rem;
  border-radius: 4px;
  color: white !important;
  font-weight: 700;
  letter-spacing: 0.025em;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.form-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.form-badge.bg-success {
  background: linear-gradient(135deg, #38a169 0%, #2d7e3e 100%) !important;
}

.form-badge.bg-warning {
  background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%) !important;
}

.form-badge.bg-danger {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%) !important;
}

/* Section Card Headers - Subtle Design */
.section-card-header {
  background: rgba(66, 153, 225, 0.05);
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  border-left: 3px solid #4299e1;
  border-right: 1px solid rgba(66, 153, 225, 0.1);
  border-top: 1px solid rgba(66, 153, 225, 0.1);
  border-bottom: 1px solid rgba(66, 153, 225, 0.1);
}

.section-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #4299e1;
  display: flex;
  align-items: center;
}

.section-card-divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #4299e1, rgba(66, 153, 225, 0.3));
  border-radius: 2px;
  margin-top: 0.5rem;
}
/* Enhanced Responsive design */
@media (max-width: 768px) {
  .standings-container {
    padding: 1.25rem;
    margin: 0 -15px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .table-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .filter-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .standings-table {
    font-size: 0.8rem;
  }

  .standings-table thead th {
    padding: 0.875rem 0.5rem;
    font-size: 0.675rem;
  }

  .standings-table tbody td {
    padding: 0.875rem 0.5rem;
  }

  .team-logo {
    width: 28px !important;
    height: 28px !important;
  }

  .team-name {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .standings-container {
    padding: 1rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .filter-buttons .btn {
    padding: 0.375rem 0.875rem;
    font-size: 0.8rem;
  }

  .standings-table thead th {
    padding: 0.75rem 0.25rem;
    font-size: 0.625rem;
  }

  .standings-table tbody td {
    padding: 0.75rem 0.25rem;
  }

  .team-name {
    font-size: 0.8rem;
  }

  .form-badge {
    font-size: 0.575rem;
    padding: 0.25rem 0.35rem;
  }
}

/* Enhanced transitions and interactions */
.standings-table tbody tr {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.filter-buttons .btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.team-logo {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-badge {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Legend styling */
.legend-container {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4a5568;
}

.legend-badge {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Points highlighting */
.points-highlight {
  font-size: 1.1rem;
  font-weight: 800;
  color: #2d3748;
}

.table-success .points-highlight {
  color: #38a169;
}

.table-danger .points-highlight {
  color: #e53e3e;
}

/* Goal difference styling */
.goal-diff-positive {
  color: #38a169;
  font-weight: 700;
}

.goal-diff-negative {
  color: #e53e3e;
  font-weight: 700;
}

.goal-diff-neutral {
  color: #718096;
  font-weight: 500;
}

/* Additional enhancements */
.standings-table tbody tr:hover {
  cursor: pointer;
}

.standings-table tbody tr:hover .position-number {
  transform: scale(1.1);
}

/* Loading state */
.standings-table.loading {
  opacity: 0.6;
  pointer-events: none;
}
