/* ── FITNESS PAGE SPECIFIC STYLES ── */
/* Extends styles.css — load both in fitness.html */

/* stat card (replaces scoreboard on fitness page) */
.stat-card {
  background: rgba(10,22,40,.85);
  border: 1px solid rgba(200,168,75,.3);
  backdrop-filter: blur(8px);
  padding: 1.4rem;
  align-self: end;
}
.stat-card-label {
  font-family: 'Oswald', sans-serif;
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: .2rem;
}
.stat-num em { color: var(--gold); font-style: normal; font-size: 1rem; }
.stat-desc {
  font-size: .65rem;
  color: #6d7a94;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: 'Oswald', sans-serif;
}

/* hero background override for fitness page */
.hero-bg--fitness {
  background-image: url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?w=1400&q=80');
  background-position: center 20%;
  opacity: .38;
}

/* workout plan table */
.workout-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  margin-top: .2rem;
}
.workout-table th {
  background: var(--navy);
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .6rem .8rem;
  text-align: left;
}
.workout-table td {
  padding: .6rem .8rem;
  border-bottom: 1px solid var(--rule);
  font-family: 'Source Serif 4', serif;
  color: #2e2a24;
  vertical-align: top;
}
.workout-table tr:last-child td { border-bottom: none; }
.workout-table tr:nth-child(even) td { background: var(--warm-gray); }
.workout-table .day-col {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}
.workout-table .focus-col {
  font-weight: 600;
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
  font-size: .8rem;
  letter-spacing: .04em;
}

/* tip list */
.tip-list {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-top: .2rem;
}
.tip-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: .6rem;
  align-items: start;
}
.tip-num {
  background: var(--gold);
  color: var(--navy);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: .75rem;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}
.tip-text {
  font-family: 'Source Serif 4', serif;
  font-size: .93rem;
  line-height: 1.6;
  color: #2e2a24;
}
.tip-text strong {
  color: var(--navy);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* category links */
.cat-list { display: flex; flex-direction: column; gap: 0; }
.cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: color .15s;
}
.cat-item:last-child { border-bottom: none; }
.cat-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--navy);
  transition: color .15s;
}
.cat-item:hover .cat-name { color: var(--gold); }
.cat-count {
  font-size: .72rem;
  color: var(--mid);
  background: var(--warm-gray);
  padding: .1rem .45rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
}

/* popular list */
.popular-list { display: flex; flex-direction: column; gap: 1rem; }
.popular-item { display: grid; grid-template-columns: 56px 1fr; gap: .7rem; align-items: start; }
.popular-thumb {
  width: 56px; height: 56px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.popular-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--navy);
}
.popular-title a { color: inherit; text-decoration: none; }
.popular-title a:hover { color: var(--gold); }
.popular-meta { font-size: .68rem; color: var(--mid); margin-top: .2rem; }

/* fitness footer override */
.footer-logo { 
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.footer-logo em { color: var(--gold); font-style: normal; }

/* responsive overrides */
@media (max-width: 900px) {
  .stat-card { display: none; }
}
@media (max-width: 560px) {
  .workout-table { font-size: .78rem; }
  .kd-row { grid-template-columns: 1fr; }
  .kd-label { border-bottom: 1px solid var(--rule); }
}
