/* ══════════════════════════════════════════
   WC 2026 Plugin – Stylesheet
   Theme: dark green / gold  (Socolive style)
══════════════════════════════════════════ */

:root {
  --wc-bg:          #0d1117;
  --wc-surface:     #161b22;
  --wc-border:      #21262d;
  --wc-green:       #41a85f;
  --wc-green-light: #5cba75;
  --wc-gold:        #f2bf17;
  --wc-red:         #e74c3c;
  --wc-text:        #e6edf3;
  --wc-muted:       #8b949e;
  --wc-radius:      8px;
  --wc-font:        'Be Vietnam Pro', 'Roboto Condensed', sans-serif;
}

/* ── Container ── */
.wc2026-widget {
  font-family: var(--wc-font);
  background:  var(--wc-bg);
  color:       var(--wc-text);
  border-radius: var(--wc-radius);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--wc-border);
}

/* ── Loading dots ── */
.wc2026-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 40px 20px;
}
.wc2026-loading span {
  width: 8px; height: 8px;
  background: var(--wc-green);
  border-radius: 50%;
  animation: wc-bounce 1.2s infinite ease-in-out;
}
.wc2026-loading span:nth-child(2) { animation-delay: 0.2s; }
.wc2026-loading span:nth-child(3) { animation-delay: 0.4s; }
@keyframes wc-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: .4; }
  40%           { transform: scale(1);   opacity: 1;  }
}

/* ── Section header ── */
.wc2026-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1a2e1a 0%, #0d1a0d 100%);
  border-bottom: 2px solid var(--wc-green);
}
.wc2026-header .wc2026-icon {
  width: 24px; height: 24px;
  fill: var(--wc-gold);
}
.wc2026-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--wc-gold) !important;
}

/* ── Date tabs ── */
.wc2026-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 16px;
  background: var(--wc-surface);
  border-bottom: 1px solid var(--wc-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.wc2026-tabs::-webkit-scrollbar { display: none; }
.wc2026-tab {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--wc-border);
  background: transparent;
  color: var(--wc-muted);
  transition: all .2s;
}
.wc2026-tab:hover,
.wc2026-tab.active {
  background: var(--wc-green);
  color: #fff;
  border-color: var(--wc-green);
}

/* ── Match list ── */
.wc2026-match-group {}
.wc2026-match-round {
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--wc-gold);
  background: rgba(242,191,23,.07);
  border-left: 3px solid var(--wc-gold);
  margin: 0;
}
.wc2026-date-sep {
  padding: 4px 16px;
  font-size: 11px;
  color: var(--wc-muted);
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--wc-border);
  letter-spacing: .4px;
}
.wc2026-match-item {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--wc-border);
  gap: 8px;
  transition: background .15s;
}
.wc2026-match-item:hover { background: var(--wc-surface); }

.wc2026-team {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wc2026-team.away {
  flex-direction: row-reverse;
  text-align: right;
}
.wc2026-team-logo {
  width: 28px; height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.wc2026-team-logo-placeholder {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--wc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--wc-muted);
  flex-shrink: 0;
}
.wc2026-team-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

/* Score / time block */
.wc2026-score-block {
  text-align: center;
}
.wc2026-score {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  line-height: 1;
}
.wc2026-score .sep { color: var(--wc-muted); margin: 0 2px; }
.wc2026-time {
  font-size: 11px;
  color: var(--wc-muted);
  margin-top: 2px;
}
.wc2026-live-badge {
  display: inline-block;
  padding: 1px 6px;
  background: var(--wc-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 3px;
  animation: wc-pulse 1.5s infinite;
}
@keyframes wc-pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

.wc2026-status-badge {
  display: inline-block;
  padding: 1px 6px;
  background: var(--wc-green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 3px;
}

/* ── Standing table ── */
.wc2026-standing-group {
  padding: 10px 0;
}
.wc2026-standing-group-title {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--wc-gold);
  text-transform: uppercase;
  letter-spacing: .6px;
  border-left: 3px solid var(--wc-gold);
  background: rgba(242,191,23,.06);
  margin: 0 0 4px;
}
.wc2026-standing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.wc2026-standing-table thead tr {
  background: var(--wc-surface);
}
.wc2026-standing-table th {
  padding: 7px 8px;
  color: var(--wc-muted);
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid var(--wc-border);
}
.wc2026-standing-table th:first-child,
.wc2026-standing-table td:first-child { text-align: left; padding-left: 16px; }
.wc2026-standing-table td {
  padding: 7px 8px;
  text-align: center;
  border-bottom: 1px solid var(--wc-border);
}
.wc2026-standing-table tr:hover td { background: rgba(255,255,255,.03); }
.wc2026-team-cell {
  display: flex; align-items: center; gap: 8px;
}
.wc2026-rank {
  font-size: 11px;
  color: var(--wc-muted);
  width: 16px;
  text-align: right;
  flex-shrink: 0;
}
.wc2026-pts { font-weight: 800; color: var(--wc-gold); }

/* qualify color stripe */
.wc2026-standing-table tr.qualify-ko td:first-child {
  border-left: 3px solid var(--wc-green);
}
.wc2026-standing-table tr.qualify-out td:first-child {
  border-left: 3px solid var(--wc-red);
}

/* ── Top scorers ── */
.wc2026-scorer-list { padding: 4px 0; }
.wc2026-scorer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--wc-border);
  transition: background .15s;
}
.wc2026-scorer-item:hover { background: var(--wc-surface); }
.wc2026-scorer-rank {
  font-size: 12px;
  font-weight: 800;
  color: var(--wc-muted);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.wc2026-scorer-rank.top3 { color: var(--wc-gold); }
.wc2026-scorer-photo {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--wc-border);
}
.wc2026-scorer-info { flex: 1; }
.wc2026-scorer-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.wc2026-scorer-team {
  font-size: 11px;
  color: var(--wc-muted);
  margin-top: 1px;
}
.wc2026-scorer-goals {
  font-size: 20px;
  font-weight: 900;
  color: var(--wc-green-light);
  min-width: 28px;
  text-align: right;
}
.wc2026-scorer-label {
  font-size: 9px;
  color: var(--wc-muted);
  text-align: right;
  text-transform: uppercase;
}

/* ── Countdown ── */
.wc2026-countdown-widget {
  background: linear-gradient(135deg, #0d1f0d 0%, #0a0a14 100%);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--wc-green);
}
.wc2026-cd-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--wc-gold);
  margin-bottom: 4px;
  font-weight: 700;
}
.wc2026-cd-sub {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}
.wc2026-cd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 300px;
  margin: 0 auto 16px;
}
.wc2026-cd-item {
  background: rgba(255,255,255,.05);
  border-radius: var(--wc-radius);
  padding: 10px 4px 6px;
  border: 1px solid var(--wc-border);
}
.wc2026-cd-num {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--wc-green-light);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wc2026-cd-label {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--wc-muted);
  margin-top: 4px;
}
.wc2026-cd-started {
  font-size: 18px;
  font-weight: 800;
  color: var(--wc-green);
  padding: 20px;
}
.wc2026-cd-flags {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  color: var(--wc-muted);
}
.wc2026-cd-flag { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.wc2026-cd-flag img { width: 30px; height: 20px; object-fit: cover; border-radius: 2px; }

/* ── Error / empty ── */
.wc2026-error, .wc2026-empty {
  padding: 30px 20px;
  text-align: center;
  color: var(--wc-muted);
  font-size: 13px;
}
.wc2026-error { color: var(--wc-red); }
