/*
 * Sports Module Styles
 * This file contains styles specific to the sports module functionality
 */

/* ========== SPORTS-SPECIFIC COMPONENTS ========== */

/* League logo thumbnail size */
.league-logo-thumbnail {
  max-height: 40px;
  max-width: 40px;
}

/* Team logo styles */
.team-logo {
  width: 32px;
  height: 32px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 50%;
  border: 2px solid #e9ecef;
  background-color: #f8f9fa;
}

/* List group item hover effect */
.list-group-item {
  transition: background-color 0.2s;
}

.list-group-item:hover {
  background-color: #f8f9fa;
}

/* Sport selection cards */
.sport-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sport-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sport-card .card-img-top {
  height: 160px;
  object-fit: cover;
}

/* Matchup Stats Tables */
.stats-table {
  margin-bottom: 0;
}

.stats-table thead th {
  background-color: #004e42 !important; /* --core-primary */
  color: white !important;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
  vertical-align: middle;
  border-color: #003c33 !important;
}

.stats-table td {
  vertical-align: middle !important;
  padding: 0.5rem !important;
  text-align: center;
}

.team-name-cell {
  font-weight: 600 !important;
  color: #004e42 !important; /* --core-primary */
  text-align: left !important;
}

.home-team-row {
  background-color: rgba(0, 78, 66, 0.08) !important; /* --core-primary with opacity */
}

.away-team-row {
  background-color: rgba(122, 154, 1, 0.08) !important; /* --bold-green with opacity */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card {
    margin-bottom: 1rem !important;
  }

  .team-logo {
    width: 28px;
    height: 28px;
  }
}

/* Loading indicator (initially hidden) */
.loading-indicator {
  display: none;
}

/* Alert with max width */
.alert-max-width {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hidden element class (for JavaScript toggling) */
.hidden {
  display: none;
}

/* ========== LEAGUE INFORMATION CONTENT STYLES ========== */

/* League information content area styling */
.league-info-content {
  line-height: 1.6;
}

.league-info-content h1,
.league-info-content h2,
.league-info-content h3,
.league-info-content h4,
.league-info-content h5,
.league-info-content h6 {
  color: var(--bold-green);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.league-info-content ul,
.league-info-content ol {
  margin-bottom: 1rem;
}

.league-info-content table {
  margin-bottom: 1rem;
}

.league-info-content table th {
  background-color: #f8f9fa;
  border-color: #dee2e6;
}

.league-info-content blockquote {
  border-left: 4px solid var(--bold-green);
  padding-left: 1rem;
  margin-left: 0;
  font-style: italic;
  color: #6c757d;
}

.league-info-content img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}

/* Badge styling in card headers */
.card-header .badge.bg-light {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: var(--bold-green) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
