/* Golden Boot Race — standalone page styles
   Reuses pi_dan_style.css design language (dark cyberpunk, cyan/magenta/green).
   Prefix: .gbr- to avoid collisions with wc2026 gallery classes. */

.gbr-page {
  padding-bottom: 42px;
}

/* --- Hero --------------------------------------------------------------- */
.gbr-hero {
  margin: 32px 0 24px;
  padding: 34px;
  border: 1px solid rgba(255, 209, 102, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 19, 35, 0.94), rgba(5, 8, 16, 0.98)),
    rgba(7, 12, 24, 0.96);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(255, 209, 102, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gbr-eyebrow {
  margin: 0 0 10px;
  color: #ffd166;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.gbr-hero h1 {
  margin: 0;
  color: #f7fbff;
  font-size: clamp(2.1rem, 7vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow:
    0 0 22px rgba(255, 209, 102, 0.34),
    0 0 34px rgba(255, 45, 214, 0.16);
}

.gbr-hero-lede {
  max-width: 840px;
  margin: 18px 0 0;
  color: #c4d7e4;
  font-size: 1.08rem;
  line-height: 1.65;
}

.gbr-back-link {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 16px;
  color: #c4d7e4;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 8px;
  background: rgba(4, 8, 16, 0.72);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.gbr-back-link:hover,
.gbr-back-link:focus {
  color: #f7fbff;
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.12);
}

.gbr-back-link:focus-visible {
  outline: 2px solid #35f283;
  outline-offset: 2px;
}

/* --- Headline strip ----------------------------------------------------- */
.gbr-headline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.gbr-headline-card {
  padding: 20px;
  border: 1px solid rgba(53, 242, 131, 0.22);
  border-radius: 8px;
  background: rgba(4, 8, 16, 0.66);
}

.gbr-headline-card dt {
  color: #ffd166;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.gbr-headline-card dd {
  margin: 8px 0 0;
  color: #b9cfdd;
  font-weight: 700;
}

/* --- Status / loading --------------------------------------------------- */
.gbr-status {
  margin: 0 0 18px;
  color: #b9cfdd;
  line-height: 1.5;
}

.gbr-status.is-loaded {
  color: #35f283;
}

.gbr-status.is-error {
  color: #ff8fa3;
}

/* --- Standings table ---------------------------------------------------- */
.gbr-table-section {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 8px;
  background: rgba(4, 8, 16, 0.72);
}

.gbr-table-section h2 {
  margin: 0 0 18px;
  color: #f7fbff;
  font-size: 2rem;
  text-shadow: 0 0 18px rgba(255, 209, 102, 0.24);
}

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

.gbr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.gbr-table thead th {
  padding: 12px 14px;
  color: #ffd166;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 2px solid rgba(0, 229, 255, 0.28);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.gbr-table thead th:hover {
  color: #f7fbff;
  border-bottom-color: rgba(0, 229, 255, 0.55);
}

.gbr-table thead th.gbr-th-sorted {
  color: #f7fbff;
  border-bottom-color: #35f283;
}

.gbr-table thead th.gbr-th-sorted::after {
  content: " \25BC";
  font-size: 0.7em;
  color: #35f283;
}

.gbr-table thead th.gbr-th-sorted-desc::after {
  content: " \25B2";
}

.gbr-table tbody td {
  padding: 11px 14px;
  color: #eaf7ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.gbr-table tbody tr:hover td {
  background: rgba(0, 229, 255, 0.06);
}

.gbr-table td.gbr-rank {
  color: #9ab6c8;
  font-weight: 800;
  text-align: right;
}

.gbr-table td.gbr-scorer {
  font-weight: 700;
  color: #f7fbff;
}

.gbr-team-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.gbr-team-badge--active {
  color: #071323;
  background: #35f283;
}

.gbr-team-badge--eliminated {
  color: #ff8fa3;
  background: rgba(255, 45, 214, 0.16);
  border: 1px solid rgba(255, 45, 214, 0.3);
}

.gbr-team-badge--champion {
  color: #071323;
  background: #ffd166;
}

.gbr-table td.gbr-prob {
  font-weight: 900;
  color: #ffd166;
}

.gbr-table td.gbr-prob-zero {
  color: #ff8fa3;
  font-weight: 700;
}

/* --- Out of the race section -------------------------------------------- */
.gbr-out-section {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid rgba(255, 45, 214, 0.2);
  border-radius: 8px;
  background: rgba(4, 8, 16, 0.56);
}

.gbr-out-section h2 {
  margin: 0 0 6px;
  color: #b9cfdd;
  font-size: 1.4rem;
}

.gbr-out-section > p {
  margin: 0 0 18px;
  color: #9ab6c8;
  font-size: 0.9rem;
}

.gbr-out-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.gbr-out-table thead th {
  padding: 10px 14px;
  color: #9ab6c8;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.gbr-out-table tbody td {
  padding: 9px 14px;
  color: #7a8fa0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.gbr-out-table td.gbr-prob-zero {
  color: #ff8fa3;
  font-weight: 700;
}

/* --- Disclaimer --------------------------------------------------------- */
.gbr-disclaimer {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid rgba(255, 209, 102, 0.32);
  border-radius: 8px;
  background: rgba(4, 8, 16, 0.72);
  box-shadow: inset 4px 0 0 rgba(255, 209, 102, 0.92);
}

.gbr-disclaimer h2 {
  margin: 0;
  color: #f7fbff;
}

.gbr-disclaimer p {
  margin: 12px 0 0;
  color: #d7edf7;
  line-height: 1.65;
}

/* --- Destination banner (index.html) ----------------------------------- */
.gbr-destination-banner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.gbr-destination-link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-radius: 16px;
  text-decoration: none;
  color: #eaf7ff;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.14), rgba(255, 45, 214, 0.07)),
    linear-gradient(180deg, rgba(9, 20, 40, 0.94), rgba(5, 9, 18, 0.94));
  border: 1px solid rgba(255, 209, 102, 0.36);
  border-left: 5px solid #ffd166;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(255, 209, 102, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gbr-destination-link:hover,
.gbr-destination-link:focus-within {
  transform: translateY(-3px);
  border-color: rgba(255, 45, 214, 0.6);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 209, 102, 0.24);
}

.gbr-destination-link:focus-visible {
  outline: 3px solid #00e5ff;
  outline-offset: 4px;
}

.gbr-destination-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gbr-destination-eyebrow {
  font-size: 0.8em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffd166;
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.4);
}

.gbr-destination-title {
  font-size: 1.3em;
  font-weight: 800;
  color: #f7fbff;
  text-shadow: 0 0 16px rgba(255, 209, 102, 0.35);
}

.gbr-destination-desc {
  font-size: 0.95em;
  color: #cfe8f4;
}

.gbr-destination-cta {
  margin-left: auto;
  font-weight: 800;
  color: #35f283;
  text-shadow: 0 0 14px rgba(29, 185, 84, 0.45);
  white-space: nowrap;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 767px) {
  .gbr-hero {
    padding: 24px 18px;
  }

  .gbr-table-section,
  .gbr-out-section,
  .gbr-disclaimer {
    padding: 18px;
  }

  .gbr-destination-link {
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .gbr-destination-cta {
    margin-left: 0;
    flex-basis: 100%;
  }
}