/* ===========================
   Statistika Page Styles
   =========================== */

.statistika-section {
  min-height: calc(100vh - 79px);
  padding: 79px 1.5rem 2rem 1.5rem;
  background: #ffffff;
}

.statistika-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.statistika-header {
  text-align: center;
  margin-bottom: 3rem;
}

.statistika-title {
  margin: 0 0 0.5rem 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
}

.statistika-subtitle {
  margin: 0;
  font-size: 1.125rem;
  color: #6b7280;
}

/* Leaderboard Cards */
.leaderboard-card {
  margin-bottom: 3rem;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #05d4e0;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.leaderboard-card:last-child {
  margin-bottom: 0;
}

.leaderboard-card-title {
  margin: 0 0 1.5rem 0;
  padding-bottom: 1rem;
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  border-bottom: 2px solid #05d4e0;
}

/* Table Wrapper */
.leaderboard-table-wrapper {
  overflow-x: auto;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

/* Table Styles */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.leaderboard-table thead {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}

.leaderboard-table th {
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}

.leaderboard-table th:first-child {
  padding-left: 1.5rem;
}

.leaderboard-table th:last-child {
  padding-right: 1.5rem;
}

.leaderboard-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.15s ease;
}

.leaderboard-table tbody tr:last-child {
  border-bottom: none;
}

.leaderboard-table tbody tr:hover {
  background: #f9fafb;
}

/* Highlight Dolomiti row */
.leaderboard-table tbody tr.dolomiti-row {
  background: #fef9e7;
  border-left: 4px solid #aa912b;
}

.leaderboard-table tbody tr.dolomiti-row:hover {
  background: #fef5d4;
}

.leaderboard-table tbody tr.dolomiti-row .club-name {
  color: #aa912b;
  font-weight: 700;
}

.leaderboard-table tbody tr.dolomiti-row .points {
  color: #aa912b;
}

.leaderboard-table td {
  padding: 1rem 0.75rem;
  color: #374151;
}

.leaderboard-table td:first-child {
  padding-left: 1.5rem;
}

.leaderboard-table td:last-child {
  padding-right: 1.5rem;
}

/* Specific Column Styles */
.leaderboard-table .position {
  font-weight: 600;
  color: #111827;
  width: 80px;
}

.leaderboard-table .club-name {
  font-weight: 500;
  color: #111827;
  min-width: 200px;
}

.leaderboard-table .points {
  font-weight: 700;
  color: #05d4e0;
}

.leaderboard-table .no-data {
  text-align: center;
  color: #9ca3af;
  font-style: italic;
  padding: 2rem 1rem;
}

/* Column Widths */
.leaderboard-table th:nth-child(3),
.leaderboard-table td:nth-child(3),
.leaderboard-table th:nth-child(4),
.leaderboard-table td:nth-child(4),
.leaderboard-table th:nth-child(5),
.leaderboard-table td:nth-child(5),
.leaderboard-table th:nth-child(6),
.leaderboard-table td:nth-child(6),
.leaderboard-table th:nth-child(8),
.leaderboard-table td:nth-child(8) {
  width: 60px;
  text-align: center;
}

.leaderboard-table th:nth-child(7),
.leaderboard-table td:nth-child(7) {
  width: 80px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .statistika-section {
    padding: 79px 1rem 2rem 1rem;
  }

  .statistika-title {
    font-size: 2rem;
  }

  .leaderboard-card {
    padding: 1.5rem 1rem;
  }

  .leaderboard-card-title {
    font-size: 1.5rem;
  }

  .leaderboard-table {
    font-size: 0.85rem;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 0.75rem 0.5rem;
  }

  .leaderboard-table th:first-child,
  .leaderboard-table td:first-child {
    padding-left: 1rem;
  }

  .leaderboard-table th:last-child,
  .leaderboard-table td:last-child {
    padding-right: 1rem;
  }

  .leaderboard-table .club-name {
    min-width: 150px;
  }
}

@media (max-width: 480px) {
  .statistika-title {
    font-size: 1.75rem;
  }

  .leaderboard-card {
    padding: 1rem;
  }

  .leaderboard-card-title {
    font-size: 1.25rem;
  }

  .leaderboard-table {
    font-size: 0.75rem;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 0.5rem 0.35rem;
  }

  .leaderboard-table th:first-child,
  .leaderboard-table td:first-child {
    padding-left: 0.75rem;
  }

  .leaderboard-table th:last-child,
  .leaderboard-table td:last-child {
    padding-right: 0.75rem;
  }
}
