/* =====================================================
   熱身大師 — Main Stylesheet
   ===================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --secondary: #0ea5e9;
  --secondary-dark: #0284c7;
  --accent: #f59e0b;
  --danger: #ef4444;

  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #243447;
  --bg-elevated: #263045;
  --border: #334155;
  --border-light: #475569;

  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.5);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input { font-family: inherit; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Typography ---------- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-icon { font-size: 1.4rem; }
.brand-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--bg-card);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   MAIN CONTENT / PAGES
   ===================================================== */
.main-content {
  padding-top: 64px;
}

.page {
  display: none;
  min-height: calc(100vh - 64px);
  animation: fadeIn 0.35s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Section ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-card); padding: 4rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.page-header {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(16,185,129,0.3); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card); color: var(--text); border-color: var(--border-light); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; border-radius: var(--radius); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.back-btn {
  margin-bottom: 2rem;
  margin-top: 1.5rem;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,185,129,0.12) 0%, rgba(14,165,233,0.08) 50%, transparent 100%);
  pointer-events: none;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.12) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--primary-light);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* =====================================================
   STATS
   ===================================================== */
.stats-section { padding: 2rem 0 3rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover { border-color: var(--primary); transform: translateY(-3px); }

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* =====================================================
   COMBO CARDS (Home)
   ===================================================== */
.combos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.combo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.combo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.combo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--border-light); }
.combo-card:hover::before { transform: scaleX(1); }

.combo-icon { font-size: 2.2rem; margin-bottom: 0.8rem; }
.combo-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.combo-desc { font-size: 0.87rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }

.combo-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.combo-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(16,185,129,0.12);
  color: var(--primary-light);
  border: 1px solid rgba(16,185,129,0.25);
  font-weight: 500;
}

/* =====================================================
   EXERCISE CARDS
   ===================================================== */
.exercises-preview-grid,
.exercises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.exercise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.exercise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.exercise-card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.exercise-card-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.exercise-card-en { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.75rem; }
.exercise-card-purpose { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.9rem; line-height: 1.5; }

.exercise-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-size: 0.72rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}

.tag-body { background: rgba(14,165,233,0.12); color: #7dd3fc; border: 1px solid rgba(14,165,233,0.2); }
.tag-env  { background: rgba(245,158,11,0.12); color: #fcd34d; border: 1px solid rgba(245,158,11,0.2); }
.tag-type { background: rgba(16,185,129,0.12); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.2); }
.tag-sport { background: rgba(139,92,246,0.12); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.2); }

/* =====================================================
   ARTICLES PREVIEW
   ===================================================== */
.articles-preview-grid,
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--border-light);
}

.article-card-icon { font-size: 2rem; margin-bottom: 1rem; }
.article-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; line-height: 1.4; }
.article-card-summary { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; flex: 1; margin-bottom: 1.25rem; }

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.article-read-time {
  background: rgba(16,185,129,0.1);
  color: var(--primary-light);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 500;
}

/* =====================================================
   ASSESSMENT WIZARD
   ===================================================== */
.wizard-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.wizard-header { text-align: center; margin-bottom: 2.5rem; }

/* Progress Steps */
.wizard-progress { margin-bottom: 2.5rem; }

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1rem;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-card);
  transition: var(--transition);
}

.progress-step.active .step-circle,
.progress-step.completed .step-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.step-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
  font-weight: 500;
  transition: var(--transition);
}

.progress-step.active .step-label { color: var(--primary); }
.progress-step.completed .step-label { color: var(--text-muted); }

.progress-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 0.5rem;
  margin-bottom: 1.6rem;
  max-width: 100px;
  transition: var(--transition);
}

.progress-bar-track {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 999px;
  transition: width 0.4s ease;
  width: 0%;
}

/* Wizard Steps */
.wizard-body { min-height: 320px; }

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn 0.3s ease; }

.step-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  color: var(--text-muted);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.option-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.option-card:hover {
  border-color: var(--primary);
  background: var(--bg-elevated);
}

.option-card.selected {
  border-color: var(--primary);
  background: rgba(16,185,129,0.1);
  box-shadow: 0 0 0 1px var(--primary);
}

.option-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.option-label { font-size: 0.9rem; font-weight: 600; }

/* Wizard Footer */
.wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* =====================================================
   RESULT PAGE
   ===================================================== */
.result-header {
  text-align: center;
  padding: 3rem 0 2rem;
}

.result-badge {
  display: inline-block;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--primary-light);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.result-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.result-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.87rem;
  font-weight: 500;
}

.result-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Phases */
.result-phases { margin: 2rem 0; }

.phase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.phase-number {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.phase-number.p1 { background: rgba(16,185,129,0.15); color: var(--primary-light); }
.phase-number.p2 { background: rgba(14,165,233,0.15); color: #7dd3fc; }
.phase-number.p3 { background: rgba(245,158,11,0.15); color: #fcd34d; }

.phase-title { font-size: 1.1rem; font-weight: 700; }
.phase-duration { font-size: 0.82rem; color: var(--text-dim); margin-top: 0.2rem; }

.phase-exercises { display: flex; flex-direction: column; gap: 0.75rem; }

.phase-exercise-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.phase-exercise-item:hover {
  border-color: var(--primary);
  background: rgba(16,185,129,0.04);
}

.phase-ex-icon { font-size: 1.4rem; flex-shrink: 0; }
.phase-ex-info { flex: 1; }
.phase-ex-name { font-weight: 600; font-size: 0.95rem; }
.phase-ex-detail { font-size: 0.82rem; color: var(--text-dim); margin-top: 0.15rem; }
.phase-ex-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(16,185,129,0.12);
  color: var(--primary-light);
  border: 1px solid rgba(16,185,129,0.2);
  white-space: nowrap;
  flex-shrink: 0;
}

.result-tips {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 3rem;
}

.tips-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fcd34d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tips-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
}

.tips-list li::before {
  content: '•';
  color: var(--accent);
  flex-shrink: 0;
}

/* =====================================================
   DATABASE CONTROLS
   ===================================================== */
.db-controls {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}

.search-icon { font-size: 1rem; }

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  padding: 0.85rem 0;
  font-size: 0.95rem;
}

.search-input::placeholder { color: var(--text-dim); }

.filters-row {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.filter-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 600;
  white-space: nowrap;
  padding-top: 0.35rem;
  min-width: 60px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  font-size: 0.8rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
  font-family: inherit;
}

.pill:hover { border-color: var(--border-light); color: var(--text); }
.pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.db-count {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* =====================================================
   SPORT GUIDES
   ===================================================== */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  padding-bottom: 3rem;
}

.sport-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.sport-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--secondary);
}

.sport-card-icon { font-size: 3rem; margin-bottom: 1rem; }
.sport-card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.sport-card-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.6; }

.sport-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sport-card-duration {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.sport-card-arrow {
  color: var(--secondary);
  font-size: 1.2rem;
}

/* Sport Detail */
.sport-detail-header {
  text-align: center;
  padding: 2rem 0 2.5rem;
}

.sport-detail-icon { font-size: 4rem; margin-bottom: 1rem; }
.sport-detail-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.sport-detail-subtitle { color: var(--text-muted); font-size: 1rem; }

.sport-detail-why {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.sport-detail-why h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; color: #7dd3fc; }
.sport-detail-why p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }

.sport-sequence-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.sport-sequence { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }

.sequence-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.sequence-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(14,165,233,0.15);
  color: #7dd3fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.sequence-info { flex: 1; }
.sequence-name { font-weight: 600; font-size: 0.95rem; }
.sequence-detail { font-size: 0.82rem; color: var(--text-dim); margin-top: 0.15rem; }

.sequence-time {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(14,165,233,0.12);
  color: #7dd3fc;
  border: 1px solid rgba(14,165,233,0.2);
  white-space: nowrap;
}

.sport-mistakes {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 3rem;
}

.sport-mistakes h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; color: #fca5a5; }
.sport-mistakes ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.sport-mistakes li { font-size: 0.9rem; color: var(--text-muted); display: flex; gap: 0.5rem; }
.sport-mistakes li::before { content: '⚠'; flex-shrink: 0; }

/* =====================================================
   KNOWLEDGE BASE
   ===================================================== */
.article-detail {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.article-detail-header {
  text-align: center;
  padding: 2rem 0 2.5rem;
}

.article-detail-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.article-detail-title { font-size: 2rem; font-weight: 800; line-height: 1.3; margin-bottom: 0.75rem; }

.article-detail-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.article-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.article-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  color: var(--primary-light);
}

.article-body h2:first-child { margin-top: 0; }

.article-body p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.article-body ul {
  list-style: none;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-body ul li {
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
  line-height: 1.7;
}

.article-body ul li::before {
  content: '→';
  color: var(--primary);
  flex-shrink: 0;
}

.article-body strong { color: var(--text); font-weight: 600; }

/* =====================================================
   MODAL
   ===================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: sticky;
  top: 1rem;
  float: right;
  margin: 1rem 1rem 0 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover { background: var(--border); color: var(--text); }

.modal-body { padding: 1.5rem 1.75rem 2rem; }

.modal-ex-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.25rem; }
.modal-ex-en { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 1.25rem; }

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.modal-section { margin-bottom: 1.5rem; }

.modal-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

.modal-purpose {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.modal-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.modal-steps li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.modal-step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.modal-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.modal-spec-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
}

.modal-spec-value { font-size: 1.1rem; font-weight: 700; color: var(--primary-light); }
.modal-spec-label { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.2rem; }

.modal-tips {
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.modal-errors {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.88rem;
  color: #fca5a5;
  line-height: 1.7;
}

.modal-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.modal-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =====================================================
   TOAST
   ===================================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-card);
  border: 1px solid var(--primary);
  color: var(--text);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 3000;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link { width: 100%; text-align: center; padding: 0.75rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .combos-grid { grid-template-columns: 1fr 1fr; }
  .exercises-preview-grid { grid-template-columns: 1fr 1fr; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .option-grid { grid-template-columns: repeat(2, 1fr); }

  .modal-spec-grid { grid-template-columns: repeat(3, 1fr); }

  .filter-group { flex-direction: column; gap: 0.4rem; }

  .progress-steps { gap: 0; }
  .progress-connector { max-width: 40px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .combos-grid { grid-template-columns: 1fr; }
  .exercises-preview-grid { grid-template-columns: 1fr; }
  .articles-preview-grid { grid-template-columns: 1fr; }
  .exercises-grid { grid-template-columns: 1fr; }
  .sports-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-spec-grid { grid-template-columns: repeat(2, 1fr); }
  .wizard-wrapper { padding: 2rem 0 3rem; }
  .result-header { padding: 2rem 0 1.5rem; }
  .hero-title { font-size: 1.75rem; }
}

/* =====================================================
   UTILITY
   ===================================================== */
.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--text-dim);
  grid-column: 1 / -1;
}

.no-results-icon { font-size: 3rem; margin-bottom: 1rem; }
.no-results-text { font-size: 1rem; }
