/* ============================================
   SCHEDULE PAGE STYLES
   ============================================ */

.season-selector-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

.season-selector-wrap label {
  font-weight: 600;
  color: #5D1725;
  font-size: 0.95rem;
  white-space: nowrap;
}

.season-selector-public {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #111;
  background: white;
  min-width: 160px;
}

.season-selector-public:focus {
  outline: none;
  border-color: #5D1725;
}

/* ============================================
   SEASON STATS BAR
   ============================================ */

.season-stats-bar {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  width: 100%;
}

.stats-bar-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0.25rem;
}

.stats-bar-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-bar-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #5D1725;
  text-align: center;
  line-height: 1.4;
}

.stats-bar-card.stats-bar-playoff {
  border-color: #d4a574;
  background: #fffdf9;
}

.stats-bar-card.stats-bar-playoff .stats-bar-label { color: #b8860b; }
.stats-bar-card.stats-bar-playoff .stats-bar-value { color: #b8860b; }

/* ============================================
   FEATURED GAMES (NEXT / LAST)
   ============================================ */

.featured-games-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.featured-game-card {
  background: white;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.featured-label {
  background: linear-gradient(135deg, #5D1725, #3c0f17);
  color: white;
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.featured-result-card .featured-label {
  background: linear-gradient(135deg, #3c0f17, #5D1725);
}

.featured-content { padding: 1.25rem; }

.featured-game-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.featured-meta {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-date {
  font-size: 0.9rem;
  color: #444;
  font-weight: 500;
}

.featured-matchup {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.4rem 0;
}

.featured-homeaway {
  font-size: 1rem;
  font-weight: 700;
  color: #5D1725;
  min-width: 24px;
}

.featured-opponent {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
}

.featured-rink {
  font-size: 0.8rem;
  color: #888;
}

.featured-result {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* ============================================
   OPPONENT LOGO
   ============================================ */

.opp-logo {
  border-radius: 4px;
  object-fit: contain;
  background: #f5f5f5;
  padding: 2px;
  flex-shrink: 0;
}

.opp-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ============================================
   FULL SCHEDULE LIST
   ============================================ */

/* List constrained to content - not full container width */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: fit-content;
  min-width: min(700px, 100%);
  max-width: 900px;
}

.game-row {
  background: white;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.game-row:hover {
  box-shadow: 0 2px 12px rgba(94,24,37,0.15);
  border-color: #5D1725;
  transform: translateY(-1px);
}

.game-past { border-left: 4px solid #ccc; }
.game-upcoming { border-left: 4px solid #5D1725; }

.game-playoff {
  border-left: 4px solid #d4a574;
  background: #fffdf9;
}

.game-playoff .game-row-type {
  color: #b8860b;
  font-weight: 700;
}

.game-row-date {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.game-row-result {
  flex-shrink: 0;
  width: 110px;
  text-align: right;
}

.game-row-datestr {
  font-weight: 600;
  font-size: 0.9rem;
  color: #111;
}

.game-row-time {
  font-size: 0.8rem;
  color: #888;
  margin-top: 2px;
}

.game-row-type {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.game-row-matchup {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.game-row-homeaway {
  font-weight: 700;
  color: #5D1725;
  font-size: 0.95rem;
  min-width: 20px;
}

.game-row-opponent {
  font-weight: 600;
  font-size: 1rem;
  color: #111;
}

.game-row-rink {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.25rem;
}

.game-result {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.result-badge {
  font-size: 1.2rem;
  font-weight: 700;
}

.result-score {
  font-size: 1.2rem;
  font-weight: 700;
}

/* ============================================
   GAME VIEW MODAL
   ============================================ */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.modal-overlay.active { display: flex; }

/* Modal - no internal scroll, full content visible */
.modal {
  background: white;
  border-radius: 8px;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  position: relative;
  margin: auto;
  overflow: hidden;
}

.modal-close-float {
  position: fixed;
  top: 12px;
  right: 12px;
  background: white;
  border: 2px solid black;
  color: black;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  z-index: 2000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.modal-close-float:hover { background: #f0f0f0; }

.modal-body { padding: 1.5rem; }

/* Sticky header = maroon header + team stats together */
.gvm-sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.gvm-header {
  background: linear-gradient(135deg, #5D1725, #3c0f17);
  padding: 1.25rem 1.5rem;
  color: white;
}

.gvm-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.gvm-matchup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gvm-homeaway {
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.85;
}

.gvm-opponent {
  font-size: 1.3rem;
  font-weight: 700;
}

.gvm-result {
  font-size: 2rem;
  font-weight: 700;
  background: white;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
}

.gvm-no-result {
  font-size: 0.9rem;
  opacity: 0.7;
  font-style: italic;
}

.gvm-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.82rem;
  opacity: 0.85;
  flex-wrap: wrap;
}

/* Team stats sticky bar */
.gvm-sticky-bar {
  background: white;
  border-bottom: 2px solid #e0e0e0;
  padding: 0.75rem 1.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gvm-team-stat-card {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  text-align: center;
  min-width: 55px;
}

.gvm-ts-label {
  font-size: 0.65rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.gvm-ts-value {
  font-size: 1rem;
  font-weight: 700;
  color: #5D1725;
}

.gvm-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #5D1725;
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gvm-table-wrap {
  overflow-x: auto;
}

.gvm-table-wrap .game-stats-table {
  min-width: 400px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .featured-games-row { grid-template-columns: 1fr; }
  .season-stats-bar { gap: 0.5rem; }
  .stats-bar-card { padding: 0.75rem 0.5rem; }
  .stats-bar-value { font-size: 1rem; }

  .game-row {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .game-row-date {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5rem;
  }

  .game-row-result { text-align: right; }

  .modal-overlay { padding: 0; align-items: flex-start; }
  .modal { border-radius: 0; min-height: 100vh; }
}
