/* TenDayAI course shell - extends the academy design system */

.course-body { overflow-x: hidden; }

.course-crumb { font-family: var(--mono); font-size: 13px; color: var(--text-faint); margin-left: -18px; }

.nav-progress { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-progress-track {
  width: clamp(80px, 18vw, 200px); height: 7px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); overflow: hidden;
}
.nav-progress-fill { height: 100%; width: 0%; background: var(--gradient); border-radius: 999px; transition: width 0.4s ease; }
.nav-progress-label { font-family: var(--mono); font-size: 12px; color: var(--text-dim); white-space: nowrap; }

/* ---------- layout ---------- */
.course-layout { display: flex; max-width: 1280px; margin: 0 auto; min-height: calc(100vh - 65px); }

.course-sidebar {
  width: 300px; flex-shrink: 0; padding: 32px 20px 32px 24px;
  border-right: 1px solid var(--border);
  position: sticky; top: 65px; height: calc(100vh - 65px); overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidebar-head h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.sidebar-head p { font-size: 12.5px; color: var(--text-faint); margin-bottom: 22px; }

.day-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.day-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: var(--radius-sm); cursor: pointer;
  background: transparent; border: 1px solid transparent; text-align: left;
  color: var(--text-dim); font-family: var(--font); transition: all 0.15s;
  width: 100%;
}
.day-link:hover { background: var(--surface-hover); color: var(--text); }
.day-link.active { background: rgba(34, 211, 238, 0.1); border-color: rgba(34, 211, 238, 0.35); color: var(--text); }
.day-dot {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--border-strong); color: var(--text-dim);
}
.day-link.active .day-dot { border-color: var(--accent-1); color: var(--accent-1); }
.day-link.done .day-dot { background: var(--accent-3); border-color: var(--accent-3); color: #06281c; }
.day-link-text { min-width: 0; }
.day-link-label { font-size: 11px; font-family: var(--mono); letter-spacing: 0.08em; color: var(--text-faint); }
.day-link-title { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.sidebar-foot { margin-top: 18px; }

.day-picker-mobile { display: none; padding: 14px 20px 0; }
.day-picker-mobile .select { width: 100%; }

.course-main { flex: 1; min-width: 0; padding: 44px clamp(20px, 5vw, 64px) 64px; }

/* ---------- day content ---------- */
.day-eyebrow {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-1); margin-bottom: 10px;
}
.day-title { font-family: var(--display); font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 10px; }
.day-objective {
  font-size: 15.5px; color: var(--text-dim); padding: 14px 18px; margin-bottom: 34px;
  background: var(--surface); border-left: 3px solid var(--accent-1); border-radius: 0 10px 10px 0;
}

.dc-heading { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; margin: 36px 0 14px; }
.dc-subheading { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 30px 0 10px; }
.dc-paragraph { font-size: 15.5px; color: var(--text-dim); margin: 0 0 16px; line-height: 1.75; }
.dc-list, .dc-numbered { margin: 0 0 18px 4px; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.dc-list li, .dc-numbered li { font-size: 15px; color: var(--text-dim); line-height: 1.65; }
.dc-list li::marker { color: var(--accent-1); }
.dc-numbered li::marker { color: var(--accent-1); font-family: var(--mono); font-weight: 600; }
.dc-list strong, .dc-numbered strong, .dc-paragraph strong { color: var(--text); }

.dc-tip {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; margin: 20px 0;
  background: rgba(129, 140, 248, 0.08); border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: var(--radius-sm); font-size: 14.5px; color: var(--text-dim); line-height: 1.65;
}
.dc-tip::before { content: "💡"; font-size: 17px; }

.dc-congrats {
  padding: 24px 26px; margin: 30px 0;
  background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius); font-size: 15.5px; color: var(--text); line-height: 1.7;
}
.dc-congrats::before { content: "🎉 "; }

/* ---------- prompt cards ---------- */
.prompt-card {
  margin: 26px 0; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.prompt-card-head { padding: 20px 22px 0; }
.prompt-card-title { font-size: 17px; font-weight: 700; color: var(--accent-1); margin-bottom: 6px; }
.prompt-card-desc { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; line-height: 1.6; }
.prompt-box {
  position: relative; margin: 0 22px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.prompt-box pre {
  padding: 16px 48px 16px 16px; margin: 0;
  font-family: var(--mono); font-size: 13px; line-height: 1.65;
  color: var(--text-dim); white-space: pre-wrap; word-break: break-word;
}
.prompt-copy {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text-dim); font-size: 14px; transition: all 0.15s;
}
.prompt-copy:hover { color: var(--text); background: var(--surface-hover); }
.prompt-copy.copied { color: #34d399; border-color: rgba(52, 211, 153, 0.5); }
.prompt-card-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px 22px 20px; }

/* ---------- footer nav ---------- */
.day-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.day-footer .btn[disabled] { opacity: 0.35; pointer-events: none; }
#complete-day.completed { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.45); box-shadow: none; }
.course-note { margin-top: 26px; font-size: 12.5px; color: var(--text-faint); text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .course-sidebar { display: none; }
  .day-picker-mobile { display: block; }
  .course-layout { flex-direction: column; }
  .nav-progress-label { display: none; }
  .course-crumb { display: none; }
}
