/* ── HOBBIES PAGE OVERRIDES ── */
html, body {
  overflow: auto;
  height: auto;
  scrollbar-width: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

/* Remove underline from NKANG logo link */
.nav-logo { text-decoration: none; }

/* ← Back + Resume fade on scroll; logo + Connect stay sticky */
.nav-links {
  transition: opacity 0.3s ease, pointer-events 0s;
}
.is-scrolled .nav-links {
  opacity: 0;
  pointer-events: none;
}

.hobbies-main {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 120px;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

/* ── PAGE HERO ── */
.hobbies-hero {
  margin-bottom: 80px;
  border-bottom: 1px solid var(--gray-mid);
  padding-bottom: 48px;
}

.hobbies-hero .section-label {
  margin-bottom: 20px;
}

.hobbies-page-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 0.9;
  margin-bottom: 24px;
}

.hobbies-page-sub {
  font-size: 0.9rem;
  color: var(--gray-lite);
  line-height: 1.7;
  max-width: 540px;
}

/* ── TAB BAR ── */
.hobby-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 56px;
}

.hobby-tab {
  flex: 1;
  background: none;
  border: none;
  border-right: 1px solid var(--gray-mid);
  color: var(--gray-lite);
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.hobby-tab:last-child { border-right: none; }
.hobby-tab:hover { background: var(--gray); color: var(--white); }
.hobby-tab.is-active {
  background: var(--red);
  color: var(--white);
}

/* ── TAB PANELS ── */
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ── HOBBY SECTION ── */
.hobby-section {
  margin-bottom: 100px;
}

.hobby-section-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hobby-section-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.hobby-section-desc {
  font-size: 0.82rem;
  color: var(--gray-lite);
  line-height: 1.7;
  flex: 1;
  min-width: 200px;
}

.hobby-strava-link {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  border: 1px solid var(--red);
  border-radius: 999px;
  padding: 5px 16px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.hobby-strava-link:hover {
  background: var(--red);
  color: var(--white);
}

/* ── SPORT SWITCHER ── */
.sport-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.sport-pill {
  padding: 6px 18px;
  border: 1px solid var(--gray-mid);
  background: transparent;
  color: var(--gray-lite);
  font-family: var(--font-head);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sport-pill:hover:not(.is-active) {
  border-color: var(--white);
  color: var(--white);
}
.sport-pill--run.is-active  { background: #de4355; border-color: #de4355; color: #fff; }
.sport-pill--swim.is-active { background: #2a96e8; border-color: #2a96e8; color: #fff; }
.sport-pill--ride.is-active { background: #3aab64; border-color: #3aab64; color: #fff; }

/* Pace / speed column accent colour driven by active sport */
#strava-bests[data-sport="run"]  .hobby-best-pace,
#strava-recent[data-sport="run"] .hobby-run-pace  { color: #de4355; }
#strava-bests[data-sport="swim"]  .hobby-best-pace,
#strava-recent[data-sport="swim"] .hobby-run-pace  { color: #2a96e8; }
#strava-bests[data-sport="ride"]  .hobby-best-pace,
#strava-recent[data-sport="ride"] .hobby-run-pace  { color: #3aab64; }

/* ── STAT BAR ── */
.hobby-stats {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  overflow: hidden;
}

.hobby-stat {
  flex: 1;
  padding: 20px 24px;
  border-right: 1px solid var(--gray-mid);
}
.hobby-stat:last-child { border-right: none; }

.hobby-stat-val {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.hobby-stat-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

/* ── ACTIVITY EMBEDS ── */
.hobby-activities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 700px) {
  .hobby-activities { grid-template-columns: 1fr; }
  .hobbies-main { padding-left: 24px; padding-right: 24px; }
}

.hobby-activity-card {
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  overflow: hidden;
}

.running-video {
  width: 100%;
  max-height: 520px;
  display: block;
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  background: var(--black);
}

.hobby-activity-label {
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-lite);
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--gray-mid);
  background: var(--gray);
}

.hobby-activity-card .strava-embed-placeholder {
  display: block;
}

/* ── SUBSECTIONS ── */
.hobby-subsection {
  margin-top: 48px;
}

.hobby-subsection-title {
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-mid);
}

/* ── BEST EFFORTS TABLE ── */
.hobby-bests {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  overflow: hidden;
}

.hobby-best-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr 1fr;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-mid);
  text-decoration: none;
  transition: background 0.2s;
  color: inherit;
}
.hobby-best-row:last-child { border-bottom: none; }
.hobby-best-row:hover { background: var(--gray); }

.hobby-best-dist {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}
.hobby-best-time {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-head);
}
.hobby-best-pace {
  font-size: 0.75rem;
  color: var(--red);
  letter-spacing: 0.04em;
}
.hobby-best-date {
  font-size: 0.7rem;
  color: var(--gray-lite);
  text-align: right;
}

/* ── RECENT RUNS ── */
.hobby-runs {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  overflow: hidden;
}

.hobby-run-row {
  display: grid;
  grid-template-columns: 1fr 90px 90px 90px 90px;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--gray-mid);
  text-decoration: none;
  transition: background 0.2s;
  color: inherit;
}
.hobby-run-row:last-child { border-bottom: none; }
.hobby-run-row:hover { background: var(--gray); }

.hobby-run-name {
  font-size: 0.82rem;
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 12px;
}
.hobby-run-dist { font-size: 0.78rem; color: var(--white); font-weight: 700; }
.hobby-run-pace { font-size: 0.75rem; color: var(--red); }
.hobby-run-time { font-size: 0.75rem; color: var(--gray-lite); }
.hobby-run-date { font-size: 0.7rem;  color: var(--gray-lite); text-align: right; }

.hobby-best-empty {
  padding: 20px;
  font-size: 0.78rem;
  color: var(--gray-lite);
}

/* ── RUNNING HEATMAP ── */
.heatmap-headline {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-mid);
}

.heatmap-ytd-text {
  font-size: 0.72rem;
  color: var(--gray-lite);
  letter-spacing: 0.06em;
}

.run-heatmap-wrapper {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.run-heatmap-outer {
  flex: 1;
  min-width: 0;
  background: var(--gray);
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  padding: 20px 20px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.run-heatmap-outer::-webkit-scrollbar { display: none; }

.run-heatmap-scroll {
  display: inline-flex;
  flex-direction: column;
  min-width: 100%;
}

.heatmap-month-row {
  position: relative;
  height: 18px;
  margin-left: 28px;
  margin-bottom: 6px;
}

.heatmap-month-label {
  position: absolute;
  font-family: var(--font-head);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gray-lite);
  top: 0;
  white-space: nowrap;
}

.heatmap-main {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.heatmap-day-labels {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

.heatmap-day-labels span {
  display: block;
  height: 13px;
  font-size: 0.55rem;
  color: var(--gray-lite);
  line-height: 13px;
  text-align: right;
  white-space: nowrap;
  padding-right: 4px;
  letter-spacing: 0.08em;
}

.heatmap-grid {
  display: flex;
  gap: 3px;
}

.heatmap-week {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.heatmap-cell {
  width: 13px;
  height: 13px;
  border-radius: 2px;
  flex-shrink: 0;
  cursor: default;
}

.heatmap-cell.level-0 { background: #1e1e1e; }
.heatmap-cell.level-1 { background: #4d0f17; }
.heatmap-cell.level-2 { background: #7a1a24; }
.heatmap-cell.level-3 { background: #a32230; }
.heatmap-cell.level-4 { background: var(--red); }
.heatmap-cell.level-5 { background: #de4355; box-shadow: 0 0 4px rgba(222,67,85,0.7); }
.heatmap-cell.level-x { background: #141414; }

.heatmap-cell:not(.level-0):not(.level-x):hover {
  outline: 1px solid rgba(255,255,255,0.3);
  outline-offset: 1px;
}

.heatmap-legend {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.heatmap-legend-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.heatmap-legend-sport {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gray-lite);
  width: 30px;
  text-align: right;
  margin-right: 2px;
}

.heatmap-legend-text {
  font-size: 0.58rem;
  color: var(--gray-lite);
  letter-spacing: 0.06em;
}

.heatmap-legend .heatmap-cell {
  cursor: default;
}

.heatmap-legend-cell {
  position: relative;
}

.heatmap-legend-cell::after {
  content: attr(data-range);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.92);
  color: #e8e8e8;
  font-size: 10px;
  font-family: inherit;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.heatmap-legend-cell:hover::after {
  opacity: 1;
}

.heatmap-tooltip {
  position: fixed;
  background: #2a2a2a;
  border: 1px solid var(--gray-mid);
  color: var(--white);
  font-size: 0.7rem;
  padding: 6px 12px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
  z-index: 500;
  white-space: nowrap;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}

.heatmap-tooltip.is-visible {
  opacity: 1;
}

/* ── YEAR SELECTOR ── */
.heatmap-year-selector {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  padding-top: 4px;
}

.heatmap-year-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--gray-lite);
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  text-align: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.heatmap-year-btn:hover {
  color: var(--white);
  border-color: var(--gray-mid);
}
.heatmap-year-btn.is-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ── UPDATED TIMESTAMP ── */
.strava-updated {
  margin-top: 20px;
  font-size: 0.65rem;
  color: var(--gray-lite);
  letter-spacing: 0.08em;
}

@media (max-width: 680px) {
  /* Stats bar scrolls horizontally */
  .hobby-stats {
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .hobby-stats::-webkit-scrollbar { display: none; }
  .hobby-stat {
    flex-shrink: 0;
    min-width: 130px;
  }

  /* Year selector moves to left so heatmap scrolls right */
  .heatmap-year-selector { order: -1; }
}

@media (max-width: 600px) {
  .hobby-best-row  { grid-template-columns: 100px 1fr 1fr; }
  .hobby-best-date { display: none; }
  .hobby-run-row   { grid-template-columns: 1fr 70px 70px; }
  .hobby-run-time, .hobby-run-date { display: none; }
}

/* ── POKER ── */
.poker-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.poker-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.poker-body {
  font-size: 0.84rem;
  color: var(--gray-lite);
  line-height: 1.8;
  margin: 0;
}

.poker-photo-tall {
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  overflow: hidden;
}
.poker-photo-tall img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.poker-photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.poker-photo-card {
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.poker-photo-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 320px;
}

.poker-photo-caption {
  padding: 16px 20px;
  background: var(--gray);
  border-top: 1px solid var(--gray-mid);
  flex: 1;
}

.poker-photo-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.poker-photo-caption p {
  font-size: 0.78rem;
  color: var(--gray-lite);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 760px) {
  .poker-content-grid { grid-template-columns: 1fr; }
  .poker-photos-grid  { grid-template-columns: 1fr; }
}

/* ── VOLLEYBALL PLACEHOLDER ── */
.hobby-placeholder {
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  padding: 80px 40px;
  text-align: center;
}

.hobby-placeholder-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.hobby-placeholder p {
  font-size: 0.8rem;
  color: var(--gray-lite);
  margin: 0;
}
