/* ============================================
   AK FITNESS — WORKOUTS
   ============================================ */
.workouts-page { padding: 24px; max-width: 900px; margin: 0 auto; }
.workouts-title { font-family: var(--font-heading); text-transform: uppercase; font-weight: 700; font-size: 1.3rem; color: var(--text-primary); margin-bottom: 4px; }
.workouts-subtitle { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 20px; }
.week-selector {
  display: flex; overflow-x: auto; gap: 8px; padding: 4px 0 12px;
  scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; margin-bottom: 20px;
}
.week-selector::-webkit-scrollbar { display: none; }
.day-tab {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 14px; min-width: 60px; scroll-snap-align: start;
  border-radius: var(--radius-md); background: var(--bg-card);
  border: 1px solid var(--border-subtle); cursor: pointer;
  transition: all var(--transition-base); flex-shrink: 0;
}
.day-tab:hover { border-color: var(--border-hover); transform: translateY(-2px);  }
.day-tab.active { border-color: var(--accent-green); background: var(--accent-green-glow); transform: translateY(-2px);  }
.day-name { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.day-tab.active .day-name { color: var(--accent-green); }
.day-num { font-weight: 700; color: var(--text-primary); font-size: 1.1rem; margin-top: 2px; }
.workout-progress-section { margin-bottom: 20px; }
.workout-progress-header { display: flex; justify-content: space-between; color: var(--text-secondary); font-size: 0.82rem; margin-bottom: 6px; }
.exercise-list { display: flex; flex-direction: column; gap: 10px; }
.exercise-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); overflow: hidden; transition: border-color var(--transition-base); }
.exercise-card.completed { border-color: var(--accent-green);  }
.exercise-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; cursor: pointer; user-select: none;
}
.exercise-name { font-family: var(--font-heading); font-weight: 700; color: var(--text-primary); font-size: 0.95rem; }
.exercise-meta { color: var(--text-secondary); font-size: 0.8rem; }
.exercise-toggle {
  color: var(--text-muted); transition: transform 0.3s ease;
  width: 20px; height: 20px; flex-shrink: 0;
}
.exercise-card.expanded .exercise-toggle { transform: rotate(180deg); }
.exercise-details {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px; border-top: 0 solid transparent;
}
.exercise-card.expanded .exercise-details { max-height: 600px; padding: 16px 20px; border-top: 1px solid var(--border-subtle); }
.set-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.set-row:last-child { border-bottom: none; }
.set-label { color: var(--text-muted); font-size: 0.8rem; min-width: 50px; }
.set-info { color: var(--text-secondary); font-size: 0.85rem; flex: 1; }
.set-rest { color: var(--text-muted); font-size: 0.75rem; display: flex; align-items: center; gap: 4px; }
.set-checkbox {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition-fast); position: relative; flex-shrink: 0;
}
.set-checkbox:checked { background: var(--accent-green); border-color: var(--accent-green); }
.set-checkbox:checked::after {
  content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  color: var(--bg-primary); font-size: 0.75rem; font-weight: 700;
}
.exercise-notes { color: var(--text-muted); font-size: 0.8rem; font-style: italic; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-subtle); }
.exercise-video-link { color: var(--accent-green); font-size: 0.82rem; display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; cursor: pointer; }
.exercise-video-link:hover { text-decoration: underline; }
.workout-complete-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center; z-index: var(--z-modal);
  animation: fadeIn 0.3s ease;
}
.workout-complete-card { text-align: center; padding: 48px; max-width: 380px; animation: fadeInUp 0.4s ease; }
.workout-complete-card h2 { font-family: var(--font-heading); color: var(--accent-green); font-size: 1.8rem; margin-bottom: 8px; }
.workout-complete-card p { color: var(--text-secondary); }
.workout-complete-emoji { font-size: 3rem; margin-bottom: 16px; }
