/* =========================================
   LoveOdds — Leaderboard + Profile styles
   ========================================= */

/* ---- NAV active state ---- */
.nav-link-active {
  color: var(--text-primary) !important;
}

/* ---- LEADERBOARD PAGE ---- */
.lb-page {
  min-height: 100vh;
  background: var(--bg-primary);
}

.lb-header {
  padding: 48px 24px 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.lb-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.lb-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.lb-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Top Predictor of the Week callout */
.lb-top-week-callout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 179, 71, 0.1);
  border: 1px solid rgba(255, 179, 71, 0.35);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.lb-crown { font-size: 20px; }

.lb-top-week-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
}

.lb-top-week-handle {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-gold);
  text-decoration: none;
}
.lb-top-week-handle:hover { text-decoration: underline; }

.lb-top-week-stats {
  font-size: 13px;
  color: var(--text-muted);
}

/* Period toggle */
.lb-period-toggle {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 4px;
}

.lb-period-btn {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.lb-period-btn:hover { color: var(--text-primary); }
.lb-period-btn.active {
  background: var(--accent-pink);
  color: white;
}

/* Table area */
.lb-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.lb-table th {
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elevated);
  text-align: left;
}

.lb-th-num { text-align: right; }
.lb-th-rank { width: 60px; text-align: center; }

.lb-row {
  border-top: 1px solid var(--border);
  transition: background 0.15s;
}
.lb-row:hover { background: var(--bg-elevated); }

.lb-row.lb-row-top { background: rgba(255, 179, 71, 0.04); }
.lb-row.lb-row-top:hover { background: rgba(255, 179, 71, 0.09); }

.lb-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.lb-td-rank { text-align: center; }

.lb-medal { font-size: 20px; }
.lb-rank-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.lb-td-handle { font-weight: 500; }
.lb-handle-link {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}
.lb-handle-link:hover { color: var(--accent-pink); }

.lb-td-num { text-align: right; }

.lb-bankroll {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-teal);
}

.lb-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
  font-size: 16px;
}

.lb-cta-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent-pink);
  color: white;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.lb-cta-btn:hover { background: var(--accent-rose); }

.lb-footer-note {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- PROFILE PAGE ---- */
.profile-page {
  min-height: 100vh;
  background: var(--bg-primary);
}

.profile-header {
  padding: 48px 24px 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.profile-avatar {
  font-size: 56px;
  margin-bottom: 12px;
}

.profile-handle {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.profile-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.profile-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: #000;
  color: white;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.profile-share-btn:hover { opacity: 0.82; }

.profile-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px;
}

@media (max-width: 600px) {
  .lb-table { font-size: 13px; }
  .lb-table td, .lb-table th { padding: 12px 12px; }
  .lb-top-week-callout { gap: 6px; padding: 10px 16px; }
}
