/* Piala Dunia 2026 — hero, pill tabs, glow panels, fixtures, standings.
   Latar halaman mengikuti .ai-predict-body (sama dengan Team Match / Klasemen). */

.wc-page {
  position: relative;
}

/* Hero */
.wc-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 1024px) {
  .wc-hero {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 2.5rem;
    margin-bottom: 2rem;
  }
}

.wc-hero-logo {
  width: 6rem;
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 12px 36px rgba(168, 85, 247, 0.4));
}

@media (min-width: 1024px) {
  .wc-hero-logo {
    width: 10rem;
  }
}

.wc-hero-title {
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-shadow: 0 0 32px rgba(168, 85, 247, 0.35);
  margin: 0;
}

.wc-hero-dates {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: rgba(34, 211, 238, 0.88);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Tabs as separate boxes (Team Match-style) */
.wc-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

@media (min-width: 768px) {
  .wc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
  }
}

.wc-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem !important;
  padding: 0.55rem 0.8rem !important;
  font-weight: 600;
  font-size: 0.82rem !important;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid rgba(168, 85, 247, 0.28) !important;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.7);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

@media (min-width: 768px) {
  .wc-tab {
    font-size: 0.9rem !important;
    padding: 0.6rem 1.35rem !important;
  }
}

.wc-tab-idle:hover {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(168, 85, 247, 0.5) !important;
  color: #fff;
}

.wc-tab-active {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.55),
    rgba(168, 85, 247, 0.35)
  ) !important;
  border-color: rgba(168, 85, 247, 0.7) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 22px rgba(124, 58, 237, 0.35);
}

/* Framed panel */
.wc-panel {
  border-radius: 1.25rem;
  background: var(--wc-card-bg);
  border: 1px solid var(--wc-card-border);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.35),
    0 0 40px rgba(168, 85, 247, 0.12) inset;
  padding: 1.25rem 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .wc-panel {
    padding: 1.5rem 1.75rem 2rem;
  }
}

.wc-panel-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(103, 232, 249, 0.95);
  margin: 0 0 1.25rem;
}

/* Info — definition list */
.wc-info-grid {
  display: grid;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
}

.wc-info-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

@media (min-width: 640px) {
  .wc-info-row {
    grid-template-columns: 12rem 1fr;
    align-items: baseline;
    gap: 1rem;
  }
}

.wc-info-row:last-child {
  border-bottom: none;
}

.wc-info-dt {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.wc-info-dd {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

/* Stat strip */
.wc-stat-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .wc-stat-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.wc-stat-tile {
  border-radius: 1rem;
  padding: 1rem 0.85rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wc-stat-tile img,
.wc-stat-tile svg,
.wc-stat-tile i {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.35));
}

.wc-stat-tile i {
  display: block;
  width: auto;
  height: auto;
  font-size: 2rem;
  line-height: 1;
  color: rgba(34, 211, 238, 0.95);
}

.wc-stat-num {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
}

.wc-stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Filter row — grid responsif untuk halaman WC */
.wc-filters-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1.25rem;
}

@media (min-width: 540px) {
  .wc-filters-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .wc-filters-row {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.85rem;
    max-width: 48rem;
  }
}

/* Fixtures grouped list */
.wc-fixtures-date-pill {
  display: inline-block;
  margin: 1.25rem 0 0.65rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(168, 85, 247, 0.22);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.wc-fixtures-sub {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(34, 211, 238, 0.85);
  margin: 0.75rem 0 0.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wc-fixtures-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Match row (WC) */
.wc-match-row {
  position: relative;
  border-radius: 1rem;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wc-match-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas:
    "home center away"
    "meta meta meta";
  gap: 0.35rem 0.5rem;
  align-items: center;
}

.wc-match-side {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.wc-match-home {
  grid-area: home;
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.wc-match-center {
  grid-area: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 3.25rem;
}

.wc-match-away {
  grid-area: away;
  justify-content: flex-start;
}

.wc-match-name {
  font-size: 0.8rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wc-match-flag {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.wc-match-vs {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(236, 72, 153, 0.85);
}

.wc-match-time {
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.75);
}

.wc-match-score {
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.wc-match-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
}

.wc-match-meta .wc-match-venue {
  margin: 0;
}

.wc-match-chip {
  display: inline-block;
  margin-top: 0;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: rgba(233, 213, 255, 0.95);
}

.wc-match-pred {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: rgba(165, 243, 252, 0.95);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.wc-match-pred:hover {
  background: rgba(6, 182, 212, 0.32);
  border-color: rgba(6, 182, 212, 0.5);
}

.wc-match-pred--locked {
  background: rgba(6, 182, 212, 0.06);
  border-color: rgba(6, 182, 212, 0.15);
  color: rgba(165, 243, 252, 0.4);
  cursor: not-allowed;
}
.wc-match-pred--locked:hover {
  background: rgba(6, 182, 212, 0.06);
  border-color: rgba(6, 182, 212, 0.15);
}

.wc-match-star {
  position: absolute;
  top: 0.4rem;
  right: 0.55rem;
  border: none;
  background: transparent;
  color: rgba(251, 191, 36, 0.25);
  font-size: 1rem;
  cursor: not-allowed;
  z-index: 1;
}

@media (min-width: 768px) {
  .wc-match-inner {
    grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1.1fr) minmax(0, 10rem) auto;
    grid-template-areas: none;
    gap: 0.65rem;
  }

  .wc-match-home,
  .wc-match-center,
  .wc-match-away,
  .wc-match-meta {
    grid-area: auto;
  }

  .wc-match-name {
    font-size: 0.88rem;
  }

  .wc-match-flag {
    width: 2rem;
    height: 2rem;
  }

  .wc-match-center {
    min-width: 4.5rem;
  }

  .wc-match-meta {
    display: block;
    text-align: left;
  }

  .wc-match-chip {
    margin-top: 0.25rem;
  }

  .wc-match-star {
    position: static;
    justify-self: end;
  }
}

/* Pagination */
.wc-pagination-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1.75rem;
}

.wc-pagination {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.35rem 0.5rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(168, 85, 247, 0.25);
  font-size: 0.85rem;
}

.wc-page-link,
.wc-page-current {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 1.85rem;
  height: 1.85rem;
  padding: 0 0.55rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  justify-content: center;
}

.wc-page-link:hover {
  border-color: rgba(168, 85, 247, 0.45);
  color: #fff;
}

.wc-page-current {
  background: rgba(168, 85, 247, 0.35);
  border-color: rgba(168, 85, 247, 0.55);
  color: #fff;
  font-weight: 700;
}

.wc-page-link--icon {
  padding: 0 0.4rem;
}

/* Standings traffic lights */
.standings-rank-cell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.standings-qual-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  flex-shrink: 0;
  background: rgba(107, 114, 128, 0.85);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

.standings-row.qual-direct .standings-qual-dot {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.55);
}

.standings-row.qual-playoff .standings-qual-dot {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.standings-row.qual-out .standings-qual-dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
}

.standings-row.qual-neutral .standings-qual-dot {
  background: rgba(107, 114, 128, 0.85);
}

.wc-empty code {
  font-size: 0.85em;
}
