/* ── Reset ── */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Body / Logo-color Background ── */
body {
  font-family: "Oswald", "Segoe UI", sans-serif;
  background-color: #08080f;
  background-image:
    radial-gradient(ellipse at 15% 30%, rgba(30, 144, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(255, 45, 120, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 10%, rgba(0, 245, 212, 0.07) 0%, transparent 45%),
    linear-gradient(180deg, #08080f 0%, #0b0b18 40%, #0a0a15 100%);
  background-attachment: fixed;
  color: #e0e0e0;
  min-height: 100vh;
}

/* Subtle glow pulse overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(30, 144, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(155, 93, 229, 0.06) 0%, transparent 50%);
  animation: lbGlow 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes lbGlow {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ── Main Wrapper ── */
.lb-wrap {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 40px;
}

/* ── Header ── */
.lb-header {
  background: rgba(10,10,10,0.8);
  padding: 14px 16px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0,245,212,0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

.lb-logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 6px;
  background: linear-gradient(90deg, #00F5D4, #9B5DE5, #FF2D78);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lb-subtitle {
  font-size: 10px;
  color: #888;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
}

.lb-subtitle span {
  font-size: 8px;
  color: #555;
  letter-spacing: 1px;
}

.lb-back {
  background: transparent;
  border: 1px solid #9B5DE5;
  color: #9B5DE5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 20px;
  cursor: pointer;
  font-family: "Oswald", sans-serif;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.lb-back:active { background: rgba(155,93,229,0.2); }

/* ── Section Labels ── */
.section-label {
  font-size: 9px;
  font-weight: 700;
  color: rgba(0,245,212,0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 16px 8px;
}

/* ── Exercise Grid ── */
.ex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 16px 4px;
}

/* ALL exercise buttons — teal text ALWAYS */
.ex-btn {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0,245,212,0.3);
  color: #00F5D4;               /* ← ALWAYS teal */
  padding: 12px 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 10px;
  text-align: center;
  font-family: "Oswald", sans-serif;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

/* Active exercise — fill hot pink, dark text for contrast */
.ex-btn.active {
  background: #FF2D78;
  border-color: #FF2D78;
  color: #111;
  box-shadow: 0 0 14px rgba(255,45,120,0.4);
}

.divider {
  height: 1px;
  background: rgba(0,245,212,0.08);
  margin: 12px 16px 0;
}

/* ── Timeframe Tabs ── */
.tabs {
  display: flex;
  gap: 8px;
  padding: 8px 16px 14px;
}

/* ALL tabs — teal text ALWAYS */
.tab {
  flex: 1;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0,245,212,0.3);
  color: #00F5D4;               /* ← ALWAYS teal */
  padding: 11px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 8px;
  text-align: center;
  font-family: "Oswald", sans-serif;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

/* Active tab — solid teal fill, dark text */
.tab.active {
  background: #00F5D4;
  border-color: #00F5D4;
  color: #111;
  box-shadow: 0 0 14px rgba(0,245,212,0.35);
}

/* ── Rankings Container ── */
.lb-container {
  margin: 0 16px 24px;
  border: 1px solid rgba(0,245,212,0.12);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(10,10,8,0.65);
}

.lb-col-header {
  display: flex;
  padding: 10px 14px;
  background: rgba(0,0,0,0.55);
  font-size: 9px;
  font-weight: 700;
  color: rgba(0,245,212,0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0,245,212,0.08);
}

/* ── Leaderboard Rows ── */
.lb-list { list-style: none; }

.lb-row {
  display: flex;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.12s;
}

.lb-row:last-child { border-bottom: none; }

.lb-row.r1 { background: linear-gradient(90deg, rgba(255,183,3,0.09) 0%, transparent 70%); }
.lb-row.r2 { background: linear-gradient(90deg, rgba(192,192,192,0.06) 0%, transparent 70%); }
.lb-row.r3 { background: linear-gradient(90deg, rgba(205,127,50,0.06) 0%, transparent 70%); }

/* Column widths */
.c-rank { width: 12%; text-align: center; font-size: 16px; }
.c-name { width: 55%; padding-left: 10px; font-size: 13px; color: #ddd; letter-spacing: 0.5px; }
.c-sets { width: 15%; text-align: center; font-size: 11px; color: #555; }
.c-reps { width: 18%; text-align: right; font-family: "Courier New", monospace; font-weight: 700; font-size: 14px; color: #00F5D4; }

.rank-num { font-size: 12px; color: #444; font-family: "Oswald", sans-serif; }

.loading-row {
  text-align: center;
  color: #555;
  padding: 40px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
