/* ============================================================
   WC2026 · Team/Subpage Content Area Styles
   Site shell (header, footer, tabs) comes from css/style.css
   ============================================================ */

/* Body override for subpages — same bg, add bottom padding for mobile tabs */
.subpage-body {
  padding-bottom: calc(var(--tab-h, 88px) + env(safe-area-inset-bottom, 0px));
}

/* Desktop nav as links (same visual as tab-btn) */
.desktop-nav .tab-btn,
.desktop-nav a.tab-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text2, #a0a0b8);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0.75rem;
  height: var(--nav-h, 56px);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  text-decoration: none;
}

.desktop-nav .tab-btn:hover,
.desktop-nav a.tab-btn:hover {
  color: var(--text, #eeeef5);
}

.desktop-nav .tab-btn.active,
.desktop-nav a.tab-btn.active {
  color: var(--gold, #e8b84b);
  border-bottom-color: var(--gold, #e8b84b);
}

/* Mobile tabs as links */
.mobile-tabs a.mob-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  color: var(--text3, #606078);
  text-decoration: none;
  font-size: 0.625rem;
  font-weight: 500;
  transition: color var(--transition);
  cursor: pointer;
}

.mobile-tabs a.mob-tab:hover,
.mobile-tabs a.mob-tab.active {
  color: var(--gold, #e8b84b);
}

.mobile-tabs a.mob-tab .mob-icon {
  font-size: 1.375rem;
  line-height: 1;
}

/* Breadcrumb */
.subpage-breadcrumb {
  background: rgba(232,184,75,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.625rem 0;
  font-size: 0.8125rem;
  color: var(--text2, #a0a0b8);
}

.subpage-breadcrumb a {
  color: var(--text2, #a0a0b8);
  text-decoration: none;
}

.subpage-breadcrumb a:hover { color: var(--gold, #e8b84b); }
.subpage-breadcrumb .sep { margin: 0 0.375rem; }
.subpage-breadcrumb span { color: var(--text, #eeeef5); }

/* Main content wrapper */
.subpage-main { position: relative; z-index: 1; }
.subpage-wrap { padding: 0 0 3rem; }

/* Team Hero */
.team-hero-wrap {
  background: linear-gradient(160deg, var(--surface, #0f0f1a) 0%, #1a1408 100%);
  border-bottom: 2px solid rgba(232,184,75,0.12);
  padding: 2.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.team-hero-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(232,184,75,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.team-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.team-flag-xl {
  font-size: 4rem;
  filter: drop-shadow(0 4px 16px rgba(232,184,75,0.25));
  flex-shrink: 0;
}

.team-hero-title {
  font-family: var(--font-display, 'Bebas Neue', Impact, sans-serif);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  letter-spacing: 0.04em;
  color: var(--text, #eeeef5);
  margin-bottom: 0.25rem;
}

.team-hero-sub {
  font-size: 0.9375rem;
  color: var(--text2, #a0a0b8);
  margin-bottom: 0.875rem;
}

.team-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-pill {
  display: inline-block;
  padding: 0.3rem 0.875rem;
  background: rgba(232,184,75,0.08);
  border: 1px solid rgba(232,184,75,0.22);
  color: var(--gold, #e8b84b);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-gold { background: rgba(232,184,75,0.15); }

.team-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  position: relative;
}

.team-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.125rem 0.75rem;
  background: rgba(232,184,75,0.05);
  border: 1px solid rgba(232,184,75,0.12);
  border-radius: 10px;
}

.team-stat__label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text2, #a0a0b8);
  margin-bottom: 0.375rem;
}

.team-stat__value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gold, #e8b84b);
}

/* Section anchors / quick nav */
.subpage-anchors {
  display: flex;
  gap: 0.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.subpage-anchors::-webkit-scrollbar { display: none; }

.subpage-anchors a {
  flex-shrink: 0;
  padding: 0.4375rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,184,75,0.12);
  border-radius: 20px;
  color: var(--text2, #a0a0b8);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.subpage-anchors a:hover {
  background: rgba(232,184,75,0.1);
  border-color: rgba(232,184,75,0.35);
  color: var(--gold, #e8b84b);
}

/* Section common */
.sp-section {
  padding: 2.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sp-h2 {
  font-family: var(--font-display, 'Bebas Neue', Impact, sans-serif);
  font-size: 1.625rem;
  letter-spacing: 0.04em;
  color: var(--text, #eeeef5);
  margin-bottom: 1rem;
}

.sp-h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold, #e8b84b);
  margin: 1.5rem 0 0.875rem;
}

.sp-intro, .sp-lead {
  font-size: 1rem;
  color: var(--text2, #a0a0b8);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 800px;
}

.sp-lead a, .sp-intro a { color: var(--gold, #e8b84b); text-decoration: none; }
.sp-lead a:hover, .sp-intro a:hover { text-decoration: underline; }

.sp-body {
  font-size: 0.9375rem;
  color: var(--text2, #a0a0b8);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

/* Player grid */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}

.player-card {
  background: var(--surface2, #161624);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  transition: all 0.2s;
}

.player-card:hover {
  border-color: rgba(232,184,75,0.22);
  background: var(--surface3, #1e1e30);
}

.player-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.player-number {
  font-family: var(--font-display, 'Bebas Neue', Impact, sans-serif);
  font-size: 1.25rem;
  color: var(--gold-dim, #c49a30);
  min-width: 1.875rem;
}

.player-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text, #eeeef5);
}

.player-name a { color: inherit; text-decoration: none; }
.player-name a:hover { color: var(--gold, #e8b84b); }

.player-info {
  font-size: 0.8rem;
  color: var(--text2, #a0a0b8);
  padding-left: 2.625rem;
  line-height: 1.5;
}

/* Fixtures */
.fixtures-list { display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 1.5rem; }

.fixture-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: var(--surface2, #161624);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  flex-wrap: wrap;
  transition: border-color 0.2s;
}

.fixture-card:hover { border-color: rgba(232,184,75,0.2); }

.fixture-teams {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text, #eeeef5);
}

.fixture-teams .flag { font-size: 1.625rem; }

.fixture-details {
  text-align: right;
  font-size: 0.8125rem;
  color: var(--text2, #a0a0b8);
  line-height: 1.6;
}

.fixture-date { font-weight: 700; color: var(--gold, #e8b84b); font-size: 0.9rem; }
.fixture-card a { color: var(--gold, #e8b84b); text-decoration: none; font-size: 0.8125rem; }
.fixture-card a:hover { text-decoration: underline; }

/* Group mini table */
.group-mini {
  margin-top: 1.5rem;
  background: var(--surface2, #161624);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1.25rem;
}

.group-mini .sp-h3 { margin-top: 0; }
.group-mini .sp-lead { margin-bottom: 1rem; font-size: 0.875rem; }

.standings-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.standings-table th, .standings-table td { padding: 0.625rem 0.875rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05); }
.standings-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text2, #a0a0b8); }
.standings-table td { color: var(--text, #eeeef5); }
.standings-table tr:hover td { background: rgba(232,184,75,0.03); }
.standings-table td a { color: var(--text, #eeeef5); text-decoration: none; }
.standings-table td a:hover { color: var(--gold, #e8b84b); }

/* History / tiles */
.history-grid, .tactics-grid, .related-grid, .key-players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.tile {
  background: var(--surface2, #161624);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1.375rem;
}

.info-list, .bullet-list, .link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
  color: var(--text2, #a0a0b8);
  line-height: 1.5;
}

.info-list li:last-child { border-bottom: none; }
.info-list li strong { color: var(--text, #eeeef5); }

.bullet-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text2, #a0a0b8);
  line-height: 1.6;
}

.bullet-list li::before { content: "▸"; position: absolute; left: 0; color: var(--gold, #e8b84b); }

.link-list li { padding: 0.375rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.link-list li:last-child { border-bottom: none; }
.link-list a { font-size: 0.875rem; color: var(--text2, #a0a0b8); text-decoration: none; transition: color 0.2s; }
.link-list a:hover { color: var(--gold, #e8b84b); }

/* Key player card */
.key-player-card {
  background: var(--surface2, #161624);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--gold, #e8b84b);
  border-radius: 10px;
  padding: 1.375rem;
}

.key-player-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text, #eeeef5);
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
}

.key-player-pos {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold, #e8b84b);
  margin-bottom: 0.75rem;
}

/* Prediction */
.prediction-card {
  background: rgba(232,184,75,0.05);
  border: 1px solid rgba(232,184,75,0.18);
  border-radius: 12px;
  padding: 1.5rem;
}

.pred-label {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(232,184,75,0.12);
  border: 1px solid rgba(232,184,75,0.35);
  border-radius: 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gold, #e8b84b);
  margin-bottom: 1rem;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  background: var(--surface2, #161624);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1.25rem 1.375rem;
  transition: border-color 0.2s;
}

.faq-item:hover { border-color: rgba(232,184,75,0.2); }

.faq-q {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #eeeef5);
  margin-bottom: 0.75rem;
}

.faq-a {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text2, #a0a0b8);
}

/* Responsive */
@media (max-width: 640px) {
  .team-hero { flex-direction: column; text-align: center; }
  .team-badges { justify-content: center; }
  .team-stats-row { grid-template-columns: repeat(2, 1fr); }
  .player-grid { grid-template-columns: 1fr; }
  .fixture-card { flex-direction: column; align-items: flex-start; }
  .fixture-details { text-align: left; }
  .subpage-anchors { flex-wrap: nowrap; }
}
