/*
 * Page: Match History
 * Template: templates/pages/match_history.html
 * Description: Styles for match history table with date filtering
 */

/* === Match History Section === */
.match-history-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.match-history-section h3 {
  font-family: "Inter", sans-serif;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
  font-weight: 600;
}

/* === Table Container === */
.match-table-container {
  overflow-x: auto;
}

/* === Match ID === */
.match-id {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* === ELO Changes === */
.elo-positive {
  color: #3fb950;
  font-weight: 600;
}

.elo-negative {
  color: #f85149;
  font-weight: 600;
}

/* === Date Picker === */
.date-picker-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.date-picker-container label {
  color: var(--color-text);
  font-weight: 500;
}

.date-picker-container input[type="date"] {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 0.95rem;
}

.date-picker-container input[type="date"]:focus {
  outline: none;
  border-color: #4db8ff;
}

.date-picker-container button {
  padding: 0.5rem 1rem;
  background: #4db8ff;
  border: none;
  border-radius: 6px;
  color: #000;
  cursor: pointer;
  font-weight: 500;
}

.date-picker-container button:hover {
  background: #3da3e0;
}

/* === Loading/Error States === */
.centered-message {
  text-align: center;
  opacity: 0.6;
}

.error-message-cell {
  text-align: center;
  opacity: 0.6;
  color: var(--color-danger);
}

/* === Responsive === */
@media (max-width: 768px) {
  .match-history-section {
    padding: 0 1rem;
  }
}
