/* WC2026 Predictor webapp — shared styles */
body {
  font-family: 'Work Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(ellipse at top, rgba(16, 185, 129, 0.12), transparent 50%),
    radial-gradient(ellipse at bottom, rgba(59, 130, 246, 0.10), transparent 50%),
    #0a0f1c;
  min-height: 100vh;
  color: #e2e8f0;
}
h1, h2, h3, h4 { font-family: 'Outfit', 'Work Sans', system-ui, sans-serif; letter-spacing: -0.01em; }

/* Nav */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.nav-link:hover { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; }
.nav-link.active { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }

/* Cards */
.card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.55));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.10);
}
.card-flat {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
}

/* Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}
.pill-blue { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.35); color: #93c5fd; }
.pill-amber { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.35); color: #fcd34d; }
.pill-rose { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.35); color: #fda4af; }
.pill-slate { background: rgba(148, 163, 184, 0.15); border-color: rgba(148, 163, 184, 0.35); color: #cbd5e1; }

/* Probability bar */
.prob-bar {
  height: 10px;
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
  background: rgba(15, 23, 42, 0.8);
}
.prob-seg { transition: width 0.5s ease; }

/* Data tables */
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data th, table.data td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
table.data th { color: #94a3b8; font-weight: 500; }
table.data tr:hover { background: rgba(16, 185, 129, 0.04); }

/* Flag */
.flag { font-size: 1.2em; line-height: 1; }

/* Spinner */
.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #10b981;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Scrollbar */
.scrollbar::-webkit-scrollbar { width: 8px; height: 8px; }
.scrollbar::-webkit-scrollbar-thumb { background: rgba(16, 185, 129, 0.3); border-radius: 4px; }

/* Hero gradient */
.hero-bg {
  background:
    radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.25), transparent 40%),
    radial-gradient(circle at 80% 40%, rgba(59, 130, 246, 0.20), transparent 40%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6));
}

/* Loader */
.skeleton {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.06));
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
@keyframes skeleton-pulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
