/* =====================================================
   GOALIADOR FOOTBALL — Component Styles
   Dark · Electric Green · World Cup 2026
   ===================================================== */

:root {
  --gld-green:       #16a34a;
  --gld-green-light: #22c55e;
  --gld-green-glow:  rgba(22, 163, 74, 0.25);
  --gld-red:         #ef4444;
  --gld-yellow:      #f59e0b;
  --gld-dark:        #0d1117;
  --gld-card:        #161b22;
  --gld-card-hover:  #1c2230;
  --gld-border:      #30363d;
  --gld-text:        #e6edf3;
  --gld-muted:       #8b949e;
  --gld-radius:      10px;
}

/* ---- Spinner ---- */
.gld-spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 12px;
  color: var(--gld-muted);
  font-size: 14px;
}

.gld-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--gld-border);
  border-top-color: var(--gld-green);
  border-radius: 50%;
  animation: gld-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes gld-spin { to { transform: rotate(360deg); } }

/* ---- Error ---- */
.gld-error {
  text-align: center;
  padding: 32px 20px;
  color: var(--gld-muted);
  font-size: 14px;
}

/* ====================================================
   LIVE TICKER (full-width bar above content)
   ==================================================== */
.gld-ticker {
  background: #0a0f1a;
  border-bottom: 1px solid var(--gld-green);
  padding: 0;
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
}

.gld-ticker__label {
  background: var(--gld-green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.gld-ticker__dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: gld-pulse 1s ease-in-out infinite;
}

.gld-ticker__track {
  flex: 1;
  overflow: hidden;
  padding: 0 12px;
}

.gld-ticker__inner {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  animation: gld-ticker 50s linear infinite;
}

.gld-ticker:hover .gld-ticker__inner {
  animation-play-state: paused;
}

.gld-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gld-text);
  font-size: 13px;
  font-weight: 500;
}

.gld-ticker__score {
  background: var(--gld-card);
  border: 1px solid var(--gld-green);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 1px 8px;
  border-radius: 5px;
  letter-spacing: 1px;
}

.gld-ticker__min {
  font-size: 11px;
  color: var(--gld-red);
  font-weight: 700;
}

@keyframes gld-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes gld-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.4); }
}

/* ====================================================
   SECTION HEADER
   ==================================================== */
.gld-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gld-border);
  background: rgba(0,0,0,0.3);
}

.gld-section-head__title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gld-text);
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.gld-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gld-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}

.gld-live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: gld-pulse 1.2s infinite;
}

.gld-section-head__link {
  font-size: 12px;
  color: var(--gld-green-light);
  text-decoration: none;
  font-weight: 600;
}

.gld-section-head__link:hover { text-decoration: underline; }

/* ====================================================
   LIVE SCORES
   ==================================================== */
.gld-live-scores {
  background: var(--gld-card);
  border: 1px solid var(--gld-border);
  border-radius: var(--gld-radius);
  overflow: hidden;
  margin: 20px 0;
}

/* ====================================================
   MATCH CARD
   ==================================================== */
.gld-match-card {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s ease;
  text-decoration: none;
  color: var(--gld-text);
  cursor: pointer;
}

.gld-match-card:hover { background: var(--gld-card-hover); }
.gld-match-card:last-child { border-bottom: none; }

.gld-match-card__team {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gld-match-card__team--away {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.gld-match-card__logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.gld-match-card__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.gld-match-card__center {
  text-align: center;
}

.gld-match-card__score {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}

.gld-match-card__status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.gld-match-card__status--live    { color: var(--gld-red); }
.gld-match-card__status--ft      { color: var(--gld-muted); }
.gld-match-card__status--ns      { color: var(--gld-green-light); }
.gld-match-card__status--ht      { color: var(--gld-yellow); }

/* Clickable card CTA */
.gld-match-card--link {
  text-decoration: none !important;
  cursor: pointer;
}
.gld-match-card__cta {
  font-size: 10px;
  font-weight: 800;
  color: var(--gld-green-light);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 4px;
  opacity: .8;
}
.gld-match-card--link:hover .gld-match-card__cta { opacity: 1; }

.gld-fixture-row--link {
  text-decoration: none !important;
  cursor: pointer;
}
.gld-fixture-row--link:hover {
  background: var(--gld-card-hover);
  border-left: 2px solid var(--gld-green);
}

/* ====================================================
   FIXTURES LIST
   ==================================================== */
.gld-fixtures {
  background: var(--gld-card);
  border: 1px solid var(--gld-border);
  border-radius: var(--gld-radius);
  overflow: hidden;
  margin: 20px 0;
}

.gld-fixtures__league-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--gld-border);
  font-size: 12px;
  font-weight: 700;
  color: var(--gld-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gld-fixtures__league-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.gld-fixture-row {
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.12s;
}

.gld-fixture-row:hover { background: var(--gld-card-hover); }
.gld-fixture-row:last-child { border-bottom: none; }

.gld-fixture-row__team {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gld-text);
  font-size: 13.5px;
  font-weight: 600;
}

.gld-fixture-row__team--away { flex-direction: row-reverse; }

.gld-fixture-row__logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.gld-fixture-row__center {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.gld-fixture-row__score {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.gld-fixture-row__time {
  font-size: 12px;
  font-weight: 700;
}

/* ====================================================
   STANDINGS TABLE
   ==================================================== */
.gld-standings {
  background: var(--gld-card);
  border: 1px solid var(--gld-border);
  border-radius: var(--gld-radius);
  overflow: hidden;
  margin: 20px 0;
}

.gld-standings table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.gld-standings thead th {
  padding: 10px 14px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gld-muted);
  border-bottom: 1px solid var(--gld-border);
  background: rgba(0,0,0,0.2);
}

.gld-standings thead th:first-child,
.gld-standings thead th:nth-child(2) { text-align: left; }

.gld-standings tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.12s;
}

.gld-standings tbody tr:hover { background: var(--gld-card-hover); }
.gld-standings tbody tr:last-child { border-bottom: none; }

.gld-standings tbody td {
  padding: 10px 14px;
  text-align: center;
  color: var(--gld-text);
}

.gld-standings tbody td:first-child { text-align: center; }
.gld-standings tbody td:nth-child(2) { text-align: left; }

.gld-standings__pos {
  font-weight: 700;
  color: var(--gld-muted);
  font-size: 12px;
}

.gld-standings__pos--cz { color: var(--gld-green-light); } /* qualification zone */

.gld-standings__team {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.gld-standings__logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.gld-standings__name { font-weight: 600; }

.gld-standings__pts {
  font-weight: 900;
  color: #fff;
  font-size: 15px;
}

/* ====================================================
   TOP SCORERS
   ==================================================== */
.gld-scorers {
  background: var(--gld-card);
  border: 1px solid var(--gld-border);
  border-radius: var(--gld-radius);
  overflow: hidden;
  margin: 20px 0;
}

.gld-scorer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.12s;
}

.gld-scorer-row:hover { background: var(--gld-card-hover); }
.gld-scorer-row:last-child { border-bottom: none; }

.gld-scorer-row__rank {
  font-size: 16px;
  font-weight: 900;
  color: var(--gld-muted);
  min-width: 28px;
  text-align: center;
}

.gld-scorer-row__rank--gold   { color: #f59e0b; }
.gld-scorer-row__rank--silver { color: #94a3b8; }
.gld-scorer-row__rank--bronze { color: #b45309; }

.gld-scorer-row__photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gld-border);
  flex-shrink: 0;
}

.gld-scorer-row__info { flex: 1; min-width: 0; }

.gld-scorer-row__name {
  font-weight: 700;
  color: var(--gld-text);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gld-scorer-row__team {
  font-size: 12px;
  color: var(--gld-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.gld-scorer-row__team-logo {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.gld-scorer-row__stat { text-align: center; flex-shrink: 0; }

.gld-scorer-row__num {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.gld-scorer-row__unit {
  font-size: 10px;
  color: var(--gld-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ====================================================
   WORLD CUP COUNTDOWN
   ==================================================== */
.gld-countdown {
  background: linear-gradient(135deg, #0a0f1a 0%, #0d2137 60%, #0f2b1a 100%);
  border: 1px solid var(--gld-green);
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 24px 0;
}

.gld-countdown::before {
  content: '🏆';
  position: absolute;
  font-size: 160px;
  opacity: 0.04;
  top: -20px;
  right: -20px;
  line-height: 1;
}

.gld-countdown__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gld-green-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 20px;
}

.gld-countdown__blocks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gld-cd-block {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 80px;
}

.gld-cd-num {
  display: block;
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
}

.gld-cd-unit {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gld-muted);
  margin-top: 6px;
}

.gld-cd-sep {
  font-size: 36px;
  font-weight: 900;
  color: var(--gld-green);
  line-height: 1;
  margin-bottom: 10px;
}

.gld-countdown__sub {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--gld-muted);
  font-weight: 500;
}

/* ====================================================
   WORLD CUP HUB
   ==================================================== */
.gld-wc-hub__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.gld-wc-hub__panel {
  background: var(--gld-card);
  border: 1px solid var(--gld-border);
  border-radius: var(--gld-radius);
  overflow: hidden;
}

.gld-wc-hub__panel-title {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gld-text);
  border-bottom: 1px solid var(--gld-border);
  background: rgba(0,0,0,0.3);
  margin: 0;
}

.gld-wc-hub__panel .gld-standings,
.gld-wc-hub__panel .gld-scorers {
  margin: 0;
  border: none;
  border-radius: 0;
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 640px) {
  .gld-match-card {
    grid-template-columns: 1fr 80px 1fr;
    padding: 11px 12px;
    gap: 6px;
  }

  .gld-match-card__name { font-size: 12px; }
  .gld-match-card__score { font-size: 18px; }
  .gld-match-card__logo { width: 24px; height: 24px; }

  .gld-fixture-row {
    grid-template-columns: 1fr 72px 1fr;
    padding: 10px 12px;
  }

  .gld-cd-num { font-size: 34px; }
  .gld-cd-block { padding: 12px 14px; min-width: 64px; }

  .gld-wc-hub__grid {
    grid-template-columns: 1fr;
  }

  .gld-standings table { font-size: 12px; }
  .gld-standings thead th,
  .gld-standings tbody td { padding: 8px 8px; }
}

@media (max-width: 480px) {
  .gld-ticker { display: none; } /* too cramped on tiny screens */
  .gld-cd-sep { display: none; }
  .gld-countdown__blocks { gap: 6px; }
}
