/* ==========================================================================
   Lake Hoops - Schedule Page Styles
   ========================================================================== */

body {
  padding: 28px;
}

/* Brand Hero (larger logo for schedule page)
   ========================================================================== */
.brand-hero {
  width: 180px;
  height: auto;
  display: block;
  margin: 6px auto 14px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.08));
}

/* Record Display
   ========================================================================== */
.record-display {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.record-item {
  text-align: center;
  padding: 12px 20px;
  background: var(--color-purple-bg);
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.record-item .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.record-item .value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Filter Buttons
   ========================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 18px;
}

.filters button {
  background: var(--color-purple-light);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  padding: 9px 16px;
  cursor: pointer;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: all 0.2s ease;
}

.filters button.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 8px 18px rgba(43, 11, 74, 0.18);
}

.filters button:hover {
  transform: translateY(-1px);
}

/* Table Row States
   ========================================================================== */
tbody tr.league {
  background: rgba(197, 157, 33, 0.08);
}

tbody tr.result-win {
  background: rgba(46, 204, 113, 0.12);
}

tbody tr.result-loss {
  background: rgba(231, 76, 60, 0.12);
}

tbody tr.result-cancelled {
  background: rgba(149, 149, 149, 0.15);
  color: #666;
}

/* Expand Button/Cell
   ========================================================================== */
.expand-cell {
  width: 44px;
}

.expand-btn {
  background: var(--color-primary);
  color: #ffffff;
  border: 1px solid var(--color-primary);
  padding: 5px 9px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
}

/* Details Row (Expanded)
   ========================================================================== */
.details-row td {
  background: var(--color-purple-bg);
  padding: 16px;
}

.details {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Slot Cards (JV/C-Team/Varsity)
   ========================================================================== */
.slot {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 220px;
  background: var(--color-card);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.slot h4 {
  margin: 0 0 6px;
  color: var(--color-primary);
  font-size: 0.98rem;
}

.slot p {
  margin: 0;
  font-size: 0.9rem;
  color: #3d3352;
}

/* Map Frame & Directions
   ========================================================================== */
.map-frame {
  width: 100%;
  height: 120px;
  border: 0;
  border-radius: var(--radius-sm);
}

.dir-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.meta {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* Type Tags
   ========================================================================== */
.type-tag {
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.tag-league {
  background: var(--color-accent);
  color: #fffaf0;
}

.tag-nonleague {
  background: var(--color-primary);
  color: #ffffff;
}

/* Highlighted Performance Section
   ========================================================================== */
.highlight-perf {
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 16px;
  background: linear-gradient(135deg, #fffdf7 0%, #fff9e6 100%);
  margin-top: 16px;
  max-width: 420px;
}

.highlight-perf h4 {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 1.1rem;
  text-align: center;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 8px;
}

.highlight-content {
  display: flex;
  gap: 16px;
  align-items: center;
}

.highlight-img {
  width: 140px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.highlight-stats {
  flex: 1;
}

.highlight-stats .player-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.highlight-stats .stat-line {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin: 4px 0;
  display: flex;
  justify-content: space-between;
}

.highlight-stats .stat-label {
  font-weight: 600;
}

.highlight-stats .stat-value {
  color: var(--color-primary);
  font-weight: 700;
}

/* Responsive
   ========================================================================== */
@media (max-width: 750px) {
  body {
    padding: 18px;
  }

  .expand-btn {
    padding: 4px 6px;
    font-size: 0.75rem;
  }

  .type-tag {
    font-size: 0.7rem;
    padding: 3px 6px;
  }

  /* Hide less critical columns on mobile */
  th:nth-child(5),
  td:nth-child(5),  /* Type */
  th:nth-child(6),
  td:nth-child(6),  /* Home Team */
  th:nth-child(7),
  td:nth-child(7)   /* Venue */
  {
    display: none;
  }
}
