:root {
  --helix-green: #16a34a;
  --helix-green-dark: #0f7a39;
  --helix-blue: #071b3a;
  --helix-blue-soft: #0e2e5c;
  --helix-bg: #f3f7f5;
  --helix-card: rgba(255, 255, 255, 0.88);
  --helix-border: rgba(13, 48, 86, 0.1);
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  color: #172033;
  background:
    radial-gradient(circle at top left, rgba(22, 163, 74, 0.14), transparent 32rem),
    linear-gradient(135deg, #f7fbf9 0%, #eef5f8 50%, #f7fafc 100%);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.helix-navbar {
  background: linear-gradient(90deg, var(--helix-blue), var(--helix-blue-soft));
  box-shadow: 0 10px 30px rgba(7, 27, 58, 0.18);
}

.brand-logo {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: #fff;
  background: var(--helix-green);
}

.nav-link {
  border-radius: 999px;
  padding-inline: 0.9rem !important;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.page-section { display: none; animation: fadeUp 0.28s ease both; }
.page-section.active { display: block; }

.hero-panel,
.content-card,
.metric-card {
  border: 1px solid var(--helix-border);
  border-radius: 1.25rem;
  background: var(--helix-card);
  box-shadow: 0 18px 42px rgba(7, 27, 58, 0.09);
  backdrop-filter: blur(12px);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 14rem;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.4rem, 4vw, 3rem);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 27, 58, 0.96), rgba(14, 46, 92, 0.92)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 14px);
}

.hero-panel h1 {
  margin: 0.35rem 0;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0;
}

.hero-panel p {
  max-width: 42rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.hero-mark {
  display: grid;
  place-items: center;
  width: clamp(5rem, 16vw, 10rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.22);
  font-size: clamp(2.5rem, 8vw, 5rem);
}

.content-card { padding: clamp(1rem, 3vw, 1.5rem); }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--helix-blue);
  font-weight: 800;
}

.section-kicker {
  color: var(--helix-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1.2rem;
}

.metric-card p {
  margin: 0;
  color: #667085;
  font-size: 0.92rem;
}

.metric-card strong {
  color: var(--helix-blue);
  font-size: 1.6rem;
}

.metric-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  font-size: 1.25rem;
}

.player-card,
.team-card {
  height: 100%;
  border: 1px solid var(--helix-border);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 26px rgba(7, 27, 58, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.player-card:hover,
.team-card:hover {
  border-color: rgba(22, 163, 74, 0.35);
  box-shadow: 0 16px 34px rgba(7, 27, 58, 0.12);
  transform: translateY(-4px);
}

.player-id-badge {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: #fff;
  background: var(--helix-blue);
  font-weight: 800;
}

.team-card { cursor: pointer; }

.captain-badge {
  color: #fff;
  background: var(--helix-green);
}

.role-group {
  border: 1px solid var(--helix-border);
  border-radius: 1rem;
  padding: 1rem;
  background: #f8fbfa;
}

.role-group h6 {
  color: var(--helix-blue);
  font-weight: 800;
}

.placeholder-tile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 4.5rem;
  padding: 1rem;
  border: 1px dashed rgba(7, 27, 58, 0.2);
  border-radius: 1rem;
  color: #536176;
  background: rgba(255, 255, 255, 0.58);
}

.placeholder-tile i {
  color: var(--helix-green);
  font-size: 1.25rem;
}

.btn {
  border-radius: 0.75rem;
  font-weight: 700;
}

.form-control,
.form-select,
.input-group-text {
  border-radius: 0.75rem;
}

.input-group > :not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > :not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
