/*
 Theme Name: Astra Child
 Template: astra
 Version: 1.0
*/

/* =========================================
   TEAM TAXONOMY PAGES (ONLY)
   Targets the markup from [hall_team_page]
   ========================================= */

.hall-team-page{
  margin-top: 8px;
}

/* ---------- HERO ---------- */
.hall-team-hero{
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 14px;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #fff;
  margin: 10px 0 16px;
}

.hall-team-logo{
  width: 84px;
  height: 84px;
  object-fit: contain;
  flex: 0 0 84px;
}

.hall-team-hero-text{
  min-width: 0;
}

.hall-team-title{
  margin: 0 0 8px 0;
  line-height: 1.1;
}

.hall-team-record{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 14px;
  color: #334155;
}
.hall-team-record span strong{
  color: #0f172a;
}

/* ---------- SCHEDULE STRIP (horizontal scroll) ---------- */
.hall-team-sched-strip{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 12px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.hall-team-sched-strip::-webkit-scrollbar{
  height: 10px;
}
.hall-team-sched-strip::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.15);
  border-radius: 999px;
}
.hall-team-sched-strip::-webkit-scrollbar-track{
  background: rgba(0,0,0,.05);
  border-radius: 999px;
}

.hall-game-card{
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  scroll-snap-align: start;
  transition: transform .08s ease, box-shadow .08s ease;
}
.hall-game-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.hall-game-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.hall-game-id{
  font-weight: 800;
  color: #0f172a;
}
.hall-game-ha{
  font-weight: 700;
  color: #64748b;
}

.hall-game-opp{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}
.hall-opp-logo{
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 34px;
}
.hall-opp-name{
  font-weight: 700;
  line-height: 1.1;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hall-game-score{
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  font-size: 16px;
}

/* Result colors (the card border + score text) */
.hall-game-card.win{
  border-color: rgba(21,128,61,.35);
}
.hall-game-card.loss{
  border-color: rgba(185,28,28,.30);
}
.hall-game-card.tie{
  border-color: rgba(51,65,85,.25);
}
.hall-score.win{ color:#15803d; }
.hall-score.loss{ color:#b91c1c; }
.hall-score.tie{ color:#334155; }
.hall-game-card.upcoming .hall-score{ color:#334155; font-weight: 800; }

/* ---------- TEAM STATS GRID ---------- */
.hall-team-stats-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 16px;
}

.hall-stat-card{
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.hall-stat-name{
  font-size: 12px;
  color: #64748b;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.hall-stat-val{
  font-size: 18px;
  font-weight: 900;
  margin: 6px 0 2px;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.hall-stat-rank{
  font-size: 13px;
  color: #334155;
}

/* ---------- TABLES UNDER TEAM PAGE ---------- */
/* Make tables less wide on team pages; keep your global hall-table styles intact */
.hall-team-page .hall-table{
  min-width: 0;
}

.hall-team-page h3{
  margin-top: 18px;
  margin-bottom: 10px;
}

/* ---------- MOBILE TUNING ---------- */
@media (max-width: 720px){
  .hall-team-hero{
    padding: 12px;
  }

  .hall-team-logo{
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
  }

  .hall-team-record{
    font-size: 13px;
    gap: 8px 12px;
  }

  /* schedule cards slightly smaller on mobile */
  .hall-team-sched-strip{
    grid-auto-columns: 190px;
  }
  .hall-opp-name{
    max-width: 120px;
  }

  /* stats grid becomes 2 columns */
  .hall-team-stats-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px){
  /* stats grid becomes 1 column on very small screens */
  .hall-team-stats-grid{
    grid-template-columns: 1fr;
  }
}