/* ===== Lesson Player ===== */
.lesson-player {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 40px);
}

.lesson-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.lesson-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lesson-progress-bar {
  flex: 1;
  height: 12px;
  background: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
}

.lesson-progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 6px;
  transition: width 0.5s ease;
}

/* ===== Step Area ===== */
.step-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0;
}

.step-type-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.step-instruction {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto 24px;
}

/* ===== Circular Timer ===== */
.timer-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 20px auto;
}

.timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-track {
  fill: none;
  stroke: var(--bg-card);
  stroke-width: 8;
}

.timer-progress {
  fill: none;
  stroke: var(--green);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.timer-seconds {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.timer-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Exercise Visual (Timer + Panda) ===== */
.exercise-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#exercise-panda {
  margin-top: 8px;
}

/* ===== Breathing Circle ===== */
.breathing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.breathing-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(73, 192, 248, 0.3), rgba(73, 192, 248, 0.05));
  border: 3px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--blue);
  font-size: 1rem;
}

.breathing-circle.inhale {
  animation: breatheIn var(--inhale-duration, 4s) ease-in-out forwards;
}

.breathing-circle.exhale {
  animation: breatheOut var(--exhale-duration, 6s) ease-in-out forwards;
}

.breathing-circle.hold {
  transform: scale(1.4);
}

@keyframes breatheIn {
  from { transform: scale(1); }
  to { transform: scale(1.4); }
}

@keyframes breatheOut {
  from { transform: scale(1.4); }
  to { transform: scale(1); }
}

.breathing-instruction {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
}

/* ===== Coach Tip ===== */
.coach-tip-with-panda {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.coach-tip-panda {
  flex-shrink: 0;
  margin-top: 8px;
}

.coach-tip-with-panda .coach-tip {
  flex: 1;
  margin: 0;
}

.coach-tip {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border-left: 4px solid var(--yellow);
  text-align: left;
  max-width: 380px;
  margin: 0 auto;
}

.coach-tip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--yellow);
}

.coach-tip-body {
  color: var(--text-secondary);
  line-height: 1.6;
}

.coach-tip-body ul {
  list-style: none;
  padding: 0;
  margin-top: 8px;
}

.coach-tip-body li {
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.coach-tip-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
}

/* ===== Mini Quiz ===== */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.quiz-option {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
}

.quiz-option:hover { border-color: var(--blue); }

.quiz-option.correct {
  border-color: var(--green);
  background: rgba(88, 204, 2, 0.1);
  color: var(--green);
}

.quiz-option.incorrect {
  border-color: var(--red);
  background: rgba(255, 75, 75, 0.1);
  color: var(--red);
}

.quiz-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.quiz-feedback-correct {
  background: rgba(88, 204, 2, 0.1);
  color: var(--green);
}

.quiz-feedback-incorrect {
  background: rgba(255, 75, 75, 0.1);
  color: var(--red);
}

/* ===== Check-in ===== */
.checkin-area {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.checkin-question {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ===== Step Actions ===== */
.step-actions {
  padding: 20px 0;
  margin-top: auto;
}

/* ===== Lesson Complete ===== */
.lesson-complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100dvh - 40px);
  gap: 16px;
}

.lesson-complete-icon {
  font-size: 4rem;
  margin-bottom: 8px;
  animation: celebrateIn 0.6s ease;
}

.lesson-complete-mascot {
  margin-bottom: 8px;
  animation: celebrateIn 0.6s ease;
}

@keyframes celebrateIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.lesson-complete h1 {
  color: var(--green);
}

.lesson-complete-stats {
  display: flex;
  gap: 24px;
  margin: 16px 0 32px;
}

.lesson-complete-stat {
  text-align: center;
}

.lesson-complete-stat .value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
}

.lesson-complete-stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Step transition */
.step-transition-enter {
  animation: stepIn 0.3s ease forwards;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
