/* ESTADÍSTICAS AMIGABLES - Para niños, padres y abuelos */

@media (max-width: 768px) {
  /* Tablas visibles en móvil con scroll horizontal */
  .stats-table .table-responsive,
  .top-scorers-table .table-responsive {
    display: block;
    overflow-x: auto;
  }
  
  /* Ocultar filtros en móvil para evitar doble scroll */
  .mobile-hidden {
    display: none;
  }
  
  /* Mostrar cards amigables */
  .mobile-friendly-cards {
    display: block !important;
  }
  
  /* Todos los botones visibles en móvil */
  .category-tabs {
    justify-content: center;
  }
  
  .category-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    padding: 0 1rem;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .tab-button {
    width: 100%;
    font-size: 0.9rem;
    padding: 12px 8px;
    min-height: 48px;
  }
  
  /* Tipografía armónica */
  .top-scorers-section h2 {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

/* Cards grandes y legibles */
.mobile-friendly-cards {
  display: none;
  gap: 0.3rem;
  flex-direction: column;
  margin-top: 0.5rem;
}

/* Lista simple de ranking */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ranking-item {
  display: flex;
  align-items: center;
  background: var(--dark-card);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--gray);
}

.ranking-item.first { border-left-color: #FFD700; }
.ranking-item.second { border-left-color: #C0C0C0; }
.ranking-item.third { border-left-color: #CD7F32; }

.rank-pos {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 40px;
}

.ranking-item.first .rank-pos { color: #FFD700; }
.ranking-item.second .rank-pos { color: #C0C0C0; }
.ranking-item.third .rank-pos { color: #CD7F32; }

.player-info {
  flex: 1;
  margin-left: 1rem;
}

.player-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.player-details {
  font-size: 0.8rem;
  color: var(--gray);
}

.goals-count {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.player-card {
  background: var(--dark-card);
  border-radius: 8px;
  padding: 1rem;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  margin-bottom: 0.8rem;
}

/* Posiciones destacadas */
.player-card.first { border-left-color: #FFD700; }
.player-card.second { border-left-color: #C0C0C0; }
.player-card.third { border-left-color: #CD7F32; }

.card-position {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  float: right;
  line-height: 1;
}

.card-position.first { color: #FFD700; }
.card-position.second { color: #C0C0C0; }
.card-position.third { color: #CD7F32; }

.card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.3rem;
  clear: both;
}

.card-team {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 0.3rem;
}