/* Statistics Page Specific Styles */
:root {
  --stats-dark-bg: #0A1118;
  --stats-card-bg: rgba(255, 255, 255, 0.03);
  --stats-accent: #2563EB;
}

.stats-hero {
  background: linear-gradient(rgba(10, 17, 24, 0.85), rgba(10, 17, 24, 0.95)), url('banner-2024.png');
  background-size: cover;
  background-position: center;
  padding: 6rem 2rem 4rem;
  text-align: center;
  color: white;
}

.stats-hero .sub-header {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--stats-accent);
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.stats-hero .main-title {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

/* Filters */
.stats-filters {
  max-width: 1400px;
  margin: -2rem auto 2rem;
  padding: 0 2rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.filter-group {
  background: white;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 250px;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--stats-accent);
  color: var(--stats-accent);
}

.filter-btn.active {
  background: var(--stats-accent);
  border-color: var(--stats-accent);
  color: white;
}

/* Content Sections */
.stats-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.stats-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stats-section-header h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* Leaderboards */
.leaderboards-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.leaderboard-category-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.leaderboard-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 0.2s;
}

.leaderboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.card-title {
  font-size: 0.85rem;
  font-weight: 900;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.leader-entry {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.leader-entry:last-child { margin-bottom: 0; }

.leader-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.leader-name {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
}

.leader-rank {
  color: #94a3b8;
  font-size: 0.8rem;
  margin-right: 8px;
}

.leader-val {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--stats-accent);
}

.leader-bar-bg {
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}

.leader-bar-fill {
  height: 100%;
  background: var(--stats-accent);
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Full Tables */
.table-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.table-scroller {
  overflow-x: auto;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.stats-table th {
  background: #f8fafc;
  padding: 1rem;
  text-align: left;
  font-size: 0.65rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.stats-table td {
  padding: 0.85rem 1rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}

.stats-table tr:last-child td { border-bottom: none; }

.stats-table tr:hover { background: #fdfdfd; }

.td-player { font-weight: 700; color: #0f172a !important; }
.td-highlight { font-weight: 800; color: var(--stats-accent) !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .leaderboard-category-row { grid-template-columns: 1fr; }
  .stats-filters { flex-direction: column; gap: 1rem; margin-top: -1rem; }
  .filter-group { min-width: 0; }
  .leaderboard-card { padding: 1.1rem; }
  .leader-val { font-size: 1rem; }
}
