
body {
  font-family: Arial, sans-serif;
  margin: 0 auto;
  padding: 20px;
  background-color: #f5f5f5;
}

.container {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-width: 1440px;
  margin: 0 auto;
}

h1 {
  color: #333;
  border-bottom: 2px solid #007bff;
  padding-bottom: 10px;
}

.article {
  margin-bottom: 30px;
}

.article h3 {
  text-transform: capitalize;
  color: #007bff;
  margin-bottom: 10px;
}

.article .content {
  color: #666;
  line-height: 1.6;
  margin-top: 15px;
}

.article p {
  margin: 5px 0;
  color: #888;
  font-size: 14px;
}

hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 20px 0;
}

.error {
  color: #d9534f;
  background-color: #f8d7da;
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #f5c6cb;
}

.error h1 {
  color: #d9534f;
  border-bottom: 2px solid #d9534f;
}

.content {
  line-height: 1.6;
  margin-top: 15px;
}

.scores {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.scores h2 {
  color: #333;
  border-bottom: 2px solid #28a745;
  padding-bottom: 10px;
  margin-top: 0;
  margin-bottom: 15px;
}

.game {
  padding: 15px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  margin-bottom: 10px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.game:hover {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0,123,255,0.2);
}

.teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.team {
  font-weight: bold;
  color: #333;
  flex: 1;
}

.score {
  font-weight: bold;
  color: #007bff;
  margin: 0 15px;
  font-size: 18px;
}

.status {
  text-align: center;
  color: #6c757d;
  font-size: 14px;
  font-weight: bold;
}

.date-section {
  margin-bottom: 25px;
}

.date-section:last-child {
  margin-bottom: 0;
}

.date-section h3 {
  color: #495057;
  border-bottom: 1px solid #ced4da;
  padding-bottom: 8px;
  margin-bottom: 15px;
  font-size: 18px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

/* Game Detail Styles */
.game-detail {
  max-width: 1000px;
  margin: 0 auto;
}

.game-header {
  text-align: center;
  margin-bottom: 30px;
}

.game-header h1 {
  color: #333;
  margin-bottom: 10px;
  border-bottom: none;
}

.game-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: #666;
  font-size: 14px;
}

.score-summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
}

.team-score {
  text-align: center;
  flex: 1;
}

.team-name {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.team-abbr {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.total-score {
  font-size: 48px;
  font-weight: bold;
  color: #007bff;
}

.vs {
  font-size: 24px;
  font-weight: bold;
  color: #999;
}

.quarter-scores {
  margin-bottom: 30px;
}

.quarter-scores h3 {
  color: #333;
  margin-bottom: 15px;
  border-bottom: 2px solid #007bff;
  padding-bottom: 8px;
}

.quarter-scores table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quarter-scores th,
.quarter-scores td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
}

.quarter-scores th {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}

.quarter-scores tr:last-child td {
  border-bottom: none;
}

.quarter-scores tr:hover {
  background-color: #f8f9fa;
}

.game-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.info-section h4,
.team-section h4 {
  color: #333;
  margin-bottom: 15px;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 8px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f8f9fa;
}

.info-item label {
  font-weight: bold;
  color: #666;
}

.info-item span {
  color: #333;
}

.team-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.team-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.team-meta span {
  color: #666;
  font-size: 14px;
}

.back-link {
  text-align: center;
  margin-top: 30px;
}

.back-link a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 20px;
  border: 2px solid #007bff;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.back-link a:hover {
  background-color: #007bff;
  color: white;
}

/* Player Stats Styles */
.player-stats {
  margin-bottom: 30px;
}

.player-stats h3 {
  color: #333;
  margin-bottom: 20px;
  border-bottom: 2px solid #007bff;
  padding-bottom: 8px;
}

.stats-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-button {
  padding: 10px 20px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  color: #666;
  transition: all 0.2s ease;
}

.tab-button:hover {
  background: #e9ecef;
}

.tab-button.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.stats-content {
  position: relative;
}

.stats-table {
  display: none;
}

.stats-table.active {
  display: block;
}

.player-stats-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  font-size: 14px;
}

.player-stats-table th,
.player-stats-table td {
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
}

.player-stats-table th {
  background-color: #007bff;
  color: white;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
}

.player-stats-table tr:hover {
  background-color: #f8f9fa;
}

.player-stats-table .player-name {
  text-align: left;
  font-weight: bold;
  color: #333;
}

.player-stats-table .jersey {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  margin-right: 8px;
  font-weight: normal;
}

.player-stats-table .highlight {
  font-weight: bold;
  color: #007bff;
}

.player-stats-table td:nth-child(3),
.player-stats-table td:nth-child(4),
.player-stats-table td:nth-child(5),
.player-stats-table td:nth-child(6),
.player-stats-table td:nth-child(7),
.player-stats-table td:nth-child(8),
.player-stats-table td:nth-child(12),
.player-stats-table td:nth-child(13) {
  font-weight: bold;
}

/* Responsive design for stats table */
@media (max-width: 1200px) {
  .player-stats-table {
    font-size: 12px;
  }

  .player-stats-table th,
  .player-stats-table td {
    padding: 8px 4px;
  }
}
