/* Additional Table Enhancements */

/* Enhanced table animations */
.standings-table tbody tr {
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.standings-table tbody tr:hover .position-number {
  transition: transform 0.2s ease;
}

/* Table loading state */
.standings-table.loading tbody tr {
  opacity: 0.3;
  pointer-events: none;
}

/* Enhanced points display */
.points-highlight {
  position: relative;
  display: inline-block;
}

.points-highlight::after {
  content: "pts";
  position: absolute;
  top: -8px;
  right: -12px;
  font-size: 0.6rem;
  color: #9ca3af;
  font-weight: 400;
}

/* Better mobile spacing */
@media (max-width: 576px) {
  .standings-table thead th,
  .standings-table tbody td {
    padding: 0.5rem 0.25rem;
  }

  .team-name {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .points-highlight::after {
    display: none;
  }
}

/* Zebra striping with subtle gradients */
.standings-table tbody tr:nth-child(even) {
  background: linear-gradient(135deg, #fdfdfd 0%, #fafafa 100%);
}

.standings-table tbody tr:nth-child(even):hover {
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
}

/* Enhanced win percentage styling */
.win-percentage {
  position: relative;
  font-weight: 600;
}

.win-percentage::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #38a169 50%,
    transparent 100%
  );
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.standings-table tbody tr:hover .win-percentage::before {
  opacity: 1;
}

/* Improved table header styling */
.standings-table thead th {
  position: relative;
  overflow: hidden;
}

.standings-table thead:hover th::before {
  left: 100%;
}

/* Goal difference enhancements */
.goal-diff-positive,
.goal-diff-negative {
  position: relative;
  font-weight: 700;
}

.goal-diff-positive::before {
  content: "▲";
  margin-right: 2px;
  font-size: 0.7rem;
}

.goal-diff-negative::before {
  content: "▼";
  margin-right: 2px;
  font-size: 0.7rem;
}
