/* TABLAS INDEPENDIENTES - ESTILOS ESPECÍFICOS */

.tables-independent {
  padding: 2rem 0 4rem;
  background: var(--dark);
}

.category-section {
  margin-bottom: 4rem;
  background: var(--dark-card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.category-header h2 {
  font-size: 1.8rem;
  color: var(--text-light);
  margin: 0;
}

.category-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-item {
  background: rgba(0, 208, 132, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(0, 208, 132, 0.3);
}

.table-container {
  background: var(--dark);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--light-gray);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tables-independent table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.tables-independent th,
.tables-independent td {
  padding: 1rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.tables-independent th {
  background: var(--light-gray);
  font-weight: 600;
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 1;
}

.tables-independent td {
  color: var(--text-light);
}

.team-name {
  font-weight: 600;
  color: var(--primary);
}

.points {
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
}

.position-1 {
  background: rgba(255, 215, 0, 0.1);
  border-left: 4px solid #FFD700;
}

.position-2 {
  background: rgba(192, 192, 192, 0.1);
  border-left: 4px solid #C0C0C0;
}

.position-3 {
  background: rgba(205, 127, 50, 0.1);
  border-left: 4px solid #CD7F32;
}

/* Tournament Summary */
.tournament-summary {
  background: var(--dark-card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--light-gray);
  text-align: center;
}

.tournament-summary h2 {
  font-size: 1.8rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.summary-card {
  background: var(--dark);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  transition: transform 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-2px);
}

.summary-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.summary-label {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .tables-independent {
    padding: 1rem 0 3rem;
  }
  
  .category-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .category-header h2 {
    font-size: 1.5rem;
  }
  
  .category-stats {
    width: 100%;
    justify-content: center;
  }
  
  .tables-independent th,
  .tables-independent td {
    padding: 0.8rem 0.5rem;
    font-size: 12px;
  }
  
  .team-name {
    font-size: 13px;
  }
  
  .points {
    font-size: 14px;
  }
  
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .summary-number {
    font-size: 2rem;
  }
  
  .summary-label {
    font-size: 0.8rem;
  }
  
  /* Scroll indicator for tables */
  .table-responsive::after {
    content: "← Desliza para ver más →";
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 208, 132, 0.9);
    color: var(--dark);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .table-responsive {
    position: relative;
  }
  
  .table-responsive.scrolled::after {
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .category-section {
    padding: 1rem;
  }
  
  .tables-independent th,
  .tables-independent td {
    padding: 0.6rem 0.3rem;
    font-size: 11px;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}