/* mockup2.css — colour-recommended build
   Overrides and extensions to style.css. */

.hero-made-by {
  display: block;
  font-size: 0.72rem;
  color: var(--text-3, #6b7280);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

/* ── Widen page so hero + leaderboard both have room to breathe ───── */
.page,
.topbar-inner {
  max-width: 1400px;
}

/* ── Hero layout: 2-column (left: intro, right: leaderboard) ─────── */
.hero-bento {
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto;
  align-items: stretch;
}
.hero-main {
  grid-row: 1 / 2;
}

/* ── Restore hero title to original visual weight ─────────────────── */
.hero-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

/* ── Tablet compact: stay 2-col but trim sizes ─────────────────────── */
@media (max-width: 860px) {
  .hero-bento { padding-top: 18px; padding-bottom: 12px; gap: 10px; }
  .hero-main { padding: 20px 22px; }
  .hero-title { font-size: clamp(1.4rem, 3vw, 1.9rem); }
  .hero-desc { font-size: 0.82rem; margin-bottom: 14px; }
  .hero-actions { gap: 8px; }
  .btn-primary, .btn-ghost { padding: 8px 16px; font-size: 0.8rem; }
  .hero-stats-pills { margin-top: 14px; gap: 6px; }
  .stat-pill-sm { padding: 4px 10px; font-size: 0.7rem; }
  .leaderboard-hero { padding: 18px 16px 14px; }
  .lb-title { font-size: 0.95rem; }
  .lb-sub { font-size: 0.76rem; margin-bottom: 10px; }
  .lb-row { padding: 8px 10px; gap: 8px; min-height: 42px; }
  .lb-guild-name { font-size: 0.82rem; }
  .lb-guild-meows { font-size: 0.66rem; }
  .lb-rank { font-size: 0.78rem; }
  .lb-foot { margin-top: 10px; padding-top: 10px; }
  /* Show only top 3 rows on tablet to keep it above the fold */
  .lb-row:nth-child(n+4) { display: none; }
}

/* ── Full stack below 620px (phone) ───────────────────────────────── */
@media (max-width: 620px) {
  .hero-bento { grid-template-columns: 1fr; }
  .lb-row:nth-child(n+4) { display: revert; }
}

/* ── Stat pills ──────────────────────────────────────────────────── */
.hero-stats-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.stat-pill-sm {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.75rem;
  white-space: nowrap;
}
/* Each pill gets its own accent colour */
.stat-pill-sm:nth-child(1) {
  background: rgba(127, 99, 243, 0.08);
  border: 1px solid rgba(127, 99, 243, 0.20);
}
.stat-pill-sm:nth-child(1) .spn-num { color: var(--neon-purple); }

.stat-pill-sm:nth-child(2) {
  background: rgba(173, 115, 247, 0.08);
  border: 1px solid rgba(173, 115, 247, 0.20);
}
.stat-pill-sm:nth-child(2) .spn-num { color: var(--neon-pink); }

.stat-pill-sm:nth-child(3) {
  background: rgba(103, 232, 249, 0.08);
  border: 1px solid rgba(103, 232, 249, 0.20);
}
.stat-pill-sm:nth-child(3) .spn-num { color: var(--neon-blue); }

.spn-emoji {
  font-size: 0.8rem;
  line-height: 1;
  margin-right: 1px;
}
.spn-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.85rem;
}
.spn-lbl { color: var(--text-2); }

/* ── Leaderboard hero card ────────────────────────────────────────── */
.leaderboard-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
/* Gradient top bar — matches the hero-main card's style */
.leaderboard-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
  box-shadow: 0 0 16px rgba(103, 232, 249, 0.25);
}
/* Subtle cyan ambient glow top-right */
.leaderboard-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(103, 232, 249, 0.07), transparent 60%);
  pointer-events: none;
}
.lb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.lb-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.lb-attribution {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  background: rgba(253, 230, 138, 0.10);
  border: 1px solid rgba(253, 230, 138, 0.28);
  color: var(--neon-yellow);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, border-color .18s, transform .18s;
  flex-shrink: 0;
}
.lb-attribution:hover {
  background: rgba(253, 230, 138, 0.18);
  border-color: rgba(253, 230, 138, 0.50);
  transform: translateY(-1px);
}
.lb-attribution img {
  width: 20px; height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.lb-sub {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 8px;
}
.lb-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.lb-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(10, 10, 26, 0.6);
  border: 1px solid rgba(127, 99, 243, 0.10);
  transition: border-color .18s, background .18s;
  min-height: 42px;
}
.lb-row:hover { border-color: var(--border-hover); }
.lb-row.is-top {
  background: linear-gradient(135deg, rgba(253, 230, 138, 0.07), rgba(127, 99, 243, 0.07));
  border-color: rgba(253, 230, 138, 0.28);
}
.lb-rank {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-2);
  text-align: center;
}
.lb-row.is-top .lb-rank { color: var(--neon-yellow); }
.lb-guild {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lb-guild-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Unpaid servers (no invite link) get a soft blur until the visitor
   hovers (desktop) or taps (mobile, toggles .is-revealed). */
.lb-guild-name.is-blurred {
  filter: blur(3px);
  cursor: pointer;
  user-select: none;
  transition: filter 0.22s ease;
}
.lb-guild-name.is-blurred:hover,
.lb-guild-name.is-blurred:focus,
.lb-guild-name.is-blurred.is-revealed {
  filter: none;
}
.lb-guild-meows {
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  color: var(--text-2);
}
.lb-join {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.10);
  border: 1px solid rgba(103, 232, 249, 0.30);
  color: var(--neon-blue);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s;
  white-space: nowrap;
}
.lb-join:hover { background: rgba(103, 232, 249, 0.22); }
.lb-foot {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(127, 99, 243, 0.10);
}
.lb-foot a {
  color: var(--neon-blue);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .18s;
}
.lb-foot a:hover { color: var(--neon-pink); }
.lb-stale-pill {
  font-size: 0.70rem;
  color: var(--text-3);
}

/* Shimmer loading state */
.lb-rows.is-loading .lb-row {
  background: linear-gradient(90deg,
    rgba(20, 17, 47, 0.5) 0%,
    rgba(30, 24, 64, 0.55) 50%,
    rgba(20, 17, 47, 0.5) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.lb-rows.is-loading .lb-guild-name,
.lb-rows.is-loading .lb-guild-meows { visibility: hidden; }
@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Empty / error states */
.lb-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: var(--text-2);
}
.lb-state .lb-state-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 10px var(--neon-purple));
}
