@font-face {
  font-family: 'Boldonse';
  src: url('../fonts/Boldonse-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.navbar {
  font-family: 'Boldonse', sans-serif;
}

h1 {
  font-family: 'Boldonse', sans-serif;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f8f9fa;
  padding-top: 0;
}

.page-content {
  padding: 20px;
}

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

h1 {
  color: #1a1a1a;
  margin-bottom: 10px;
  font-size: 32px;
}

.subtitle {
  color: #666;
  margin-bottom: 30px;
  font-size: 16px;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

input {
  flex: 1;
  min-width: 250px;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: white;
}

input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

button.btn-search {
  padding: 12px 32px;
  font-size: 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}

button.btn-search:hover {
  background-color: #0056b3;
}

button.btn-search:active {
  background-color: #004085;
}

.loading {
  display: none;
  color: #666;
  font-style: italic;
}

.error-message {
  color: #d32f2f;
  background-color: #ffebee;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.chart-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 20px;
  min-height: 400px;
  overflow: hidden;
}

.chart-card h3 {
  color: #1a1a1a;
  margin-bottom: 15px;
  font-size: 18px;
}

.chart-container {
  width: 100%;
  height: 350px;
  min-width: 0;
}

@media (min-width: 768px) {
  .dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .page-content {
    padding: 10px;
  }
  .chart-container {
    height: 300px;
  }
}

.stats-table {
  width: 100%;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 20px;
}

.stats-table-inner {
  width: fit-content;
  min-width: 100%;
}

.stats-table h3 {
  padding: 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  color: #1a1a1a;
  font-size: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #495057;
  font-size: 14px;
  white-space: nowrap;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid #dee2e6;
  color: #495057;
  white-space: nowrap;
}

tbody tr:hover {
  background-color: #f8f9fa;
}

.player-info {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-top: 30px;
}

.player-info h2 {
  color: #1a1a1a;
  margin-bottom: 15px;
}

.player-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.stat-box {
  background-color: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
}

.stat-label {
  color: #666;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 5px;
}

.stat-value {
  color: #007bff;
  font-size: 20px;
  font-weight: bold;
}

/* Player of the Day card */
.potd-card {
  max-width: 520px;
  margin: 0 auto 40px;
  background: #fff;
  border: 1px solid #007bff;
  border-radius: 14px;
  padding: 36px 32px;
  text-align: center;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.potd-badge {
  display: inline-block;
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.potd-name {
  font-family: 'Boldonse', sans-serif;
  font-size: 28px;
  margin-bottom: 20px;
  line-height: 1.3;
  color: #1a1a1a;
}

.potd-btn {
  display: inline-block;
  background: #007bff;
  color: #fff;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s, transform 0.15s;
}

.potd-btn:hover {
  background: #0056b3;
  transform: translateY(-1px);
}
