/* ── Gophers Hero ── */
.gophers-hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.gophers-hero .gopher-img {
  width: 100px;
  margin-bottom: 1rem;
}

.gophers-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Section shared ── */
.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.top-gophers,
.all-gophers {
  padding: 1.5rem 0 2rem;
}

.top-gophers h2,
.all-gophers h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

/* ── Bar Chart ── */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bar-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 180px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.15s;
}

.bar-label:hover {
  color: var(--accent);
}

.bar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  transition: border-color 0.2s;
}

.bar-label:hover .bar-avatar {
  border-color: var(--accent);
}

.bar-track {
  flex: 1;
  background: var(--surface);
  border-radius: var(--radius-pill);
  height: 32px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75rem;
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--bar-delay, 0s);
}

.bar-fill.animate {
  width: var(--bar-width);
}

.bar-count {
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ── Gopher Grid ── */
.gopher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.gopher-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.gopher-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  transform: translateY(-2px);
}

.gopher-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.gopher-card:hover img {
  border-color: var(--accent);
}

.gopher-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gopher-info strong {
  font-size: 0.875rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gopher-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── CTA Section ── */
.gophers-cta {
  padding: 1rem 0 3rem;
}

.cta-box {
  background: var(--accent-light);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}

.cta-box h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 0.75rem;
}

.cta-emphasis {
  color: var(--text) !important;
  font-weight: 700;
  font-size: 1rem !important;
  margin-bottom: 1.5rem !important;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 700;
  transition: background 0.15s, transform 0.15s;
}

.cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* ── Loading & Error ── */
.loading-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 1rem 0;
}

.fetch-error {
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.fetch-error a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.fetch-error a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .gophers-hero h1 { font-size: 1.75rem; }
  .bar-label { min-width: 130px; font-size: 0.8rem; }
  .bar-label span { display: none; }
  .gopher-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 1.5rem; }
}
