/* ============================================
   GOALCURRENT.LIVE — World Cup 2026 Styles
   Author: Ahmad Zafarani
   ============================================ */

:root {
  --wc-navy: #0a1628;
  --wc-dark: #111827;
  --wc-card: #1e2d45;
  --wc-blue: #1d4ed8;
  --wc-gold: #f59e0b;
  --wc-green: #10b981;
  --wc-red: #ef4444;
  --wc-white: #ffffff;
  --wc-border: #2d3f5e;
  --wc-text: #0f172a;
  --wc-muted: #64748b;
  --wc-radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 50%, #e0f2fe 100%);
  background-attachment: fixed;
  color: #0f172a;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

.wc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.wc-page-header {
  background: linear-gradient(135deg, #0a1628 0%, #1e2d45 100%);
  border-bottom: 2px solid #f59e0b;
  padding: 24px 16px;
  text-align: center;
}

.wc-page-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
}

.wc-page-header p {
  color: #94a3b8;
  margin-top: 6px;
  font-size: 0.95rem;
}
.wc-nav {
  background: #111827;
  border-bottom: 1px solid #2d3f5e;
  position: sticky;
  top: 0;
  z-index: 100;
}

.wc-nav-inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 4px;
  padding: 0 16px;
}

.wc-nav-inner::-webkit-scrollbar { display: none; }

.wc-nav a {
  color: #94a3b8;
  text-decoration: none;
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.wc-nav a:hover { color: #ffffff; }
.wc-nav a.active { color: #f59e0b; border-bottom-color: #f59e0b; }

.wc-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 24px 0;
  align-items: start;
}

.wc-group-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--wc-radius);
  padding: 20px;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(100,160,220,0.12);
}

.wc-group-card:hover { transform: translateY(-3px); border-color: #f59e0b; }

.wc-group-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.wc-group-card a.wc-btn {
  display: block;
  text-align: center;
  margin-top: auto;
  padding: 10px;
  background: #1d4ed8;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.wc-group-card a.wc-btn:hover { background: #f59e0b; color: #111827; }
.wc-standings {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.8rem;
}

.wc-standings th {
  background: #0a1628;
  color: #f59e0b;
  padding: 8px 4px;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
}

.wc-standings th:first-child { text-align: left; padding-left: 8px; }

.wc-standings td {
  padding: 8px 4px;
  text-align: center;
  color: #0f172a;
  border-bottom: 1px solid rgba(100,160,220,0.15);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  background: rgba(255,255,255,0.5);
}

.wc-standings td:first-child { text-align: left; padding-left: 8px; }
.wc-standings tr:hover td { background: rgba(255,255,255,0.8); }
.wc-standings .qualified td { border-left: 3px solid #10b981; }
.wc-standings .third-place td { border-left: 3px solid #f59e0b; }

.wc-matches {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 0;
}

.wc-match-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--wc-radius);
  padding: 16px 20px;
  transition: border-color 0.2s;
  box-shadow: 0 4px 16px rgba(100,160,220,0.12);
}

.wc-match-card:hover { border-color: #f59e0b; }

.wc-match-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 12px;
}

.wc-match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.wc-match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.wc-match-team span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.wc-match-flag { font-size: 2rem; }
.wc-match-vs { font-size: 0.85rem; font-weight: 700; color: #f59e0b; }
.wc-match-time { font-size: 1rem; font-weight: 700; color: #1d4ed8; }

.wc-match-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(100,160,220,0.15);
  font-size: 0.8rem;
  color: #64748b;
}
.wc-teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding: 24px 0;
}

.wc-team-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--wc-radius);
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(100,160,220,0.12);
}

.wc-team-card:hover { transform: translateY(-3px); border-color: #f59e0b; }
.wc-team-card .wc-team-flag { font-size: 2.5rem; }
.wc-team-card .wc-team-name { font-size: 0.9rem; font-weight: 600; color: #0f172a; }
.wc-team-card .wc-team-group { font-size: 0.75rem; color: #1d4ed8; font-weight: 600; }
.wc-team-card .wc-team-conf { font-size: 0.75rem; color: #64748b; }

.wc-search-bar { position: relative; margin-bottom: 16px; }

.wc-search-bar input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--wc-radius);
  color: #0f172a;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  box-shadow: 0 2px 8px rgba(100,160,220,0.1);
}

.wc-search-bar input:focus { border-color: #f59e0b; }
.wc-search-bar input::placeholder { color: #94a3b8; }

.wc-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1rem;
}

.wc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(100,160,220,0.2);
}

.wc-section-header h2 { font-size: 1.2rem; font-weight: 700; color: #0f172a; }
.wc-section-header a { font-size: 0.85rem; color: #1d4ed8; text-decoration: none; }
.wc-section-header a:hover { text-decoration: underline; }

.wc-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.wc-btn-primary { background: #1d4ed8; color: #ffffff; }
.wc-btn-primary:hover { background: #f59e0b; color: #111827; }
.wc-btn-outline { background: transparent; border: 1px solid #1d4ed8; color: #1d4ed8; }
.wc-btn-outline:hover { background: #1d4ed8; color: #ffffff; }

.wc-footer {
  background: #111827;
  border-top: 1px solid #2d3f5e;
  padding: 24px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
  margin-top: 48px;
}

.wc-footer a { color: #f59e0b; text-decoration: none; }

.wc-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

@media (max-width: 640px) {
  .wc-groups-grid { grid-template-columns: 1fr; }
  .wc-teams-grid { grid-template-columns: repeat(2, 1fr); }
  .wc-page-header h1 { font-size: 1.4rem; }
}