/* ===== STATS ===== */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.stat-card {
  background: rgba(1, 87, 155, 0.35);
  border: 1px solid var(--dorado-600);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stat-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.stat-card__header i {
  font-size: 1.3rem;
  color: var(--dorado-500);
}

.stat-card__header h3 {
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--blanco);
}

.stat-card__body {
  padding: 0;
}

.stat-card__table {
  width: 100%;
  border-collapse: collapse;
}

.stat-card__table thead th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.1);
  color: var(--dorado-500);
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.stat-card__table thead th:first-child {
  text-align: left;
  padding-left: 16px;
}

.stat-card__table tbody td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.stat-card__table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.stat-card__table tbody tr:last-child td {
  border-bottom: none;
}

.stat-card__table .team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
}

.stat-card__table .team-cell img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

/* Position badge in stats */
.stat-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.stat-pos--gold {
  background: var(--dorado-500);
  color: var(--celeste-900);
}

.stat-pos--silver {
  background: #C0C0C0;
  color: var(--celeste-900);
}

.stat-pos--bronze {
  background: #CD7F32;
  color: var(--blanco);
}

/* Empty state */
.stat-empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--blanco-60);
  font-style: italic;
}

.stat-empty i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  color: var(--dorado-600);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .stats__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== DARK MODE ===== */
[data-theme="dark"] .stat-card {
  background: rgba(15, 25, 55, 0.5);
  border-color: rgba(212, 175, 55, 0.3);
}

[data-theme="dark"] .stat-card__header {
  background: rgba(0, 0, 0, 0.3);
  border-bottom-color: rgba(212, 175, 55, 0.15);
}

[data-theme="dark"] .stat-card__table thead th {
  background: rgba(0, 0, 0, 0.25);
}
