/* Learn v2 — guided retrieval. Slate Emerald: calm, quiet, no gamification.
   Reuses .learn-shell / .study-top / .question-card / .answer-choice /
   .feedback / .primary-button from app.css; only stage-specific pieces here. */

.learn-stage-head {
  margin: 14px 0 4px;
}

.learn-stage-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--rycal-slate-800, #1e293b);
  letter-spacing: 0.01em;
}

.learn-stage-hint {
  margin-top: 4px;
  font-size: 13px;
  color: var(--rycal-slate-500, #64748b);
  max-width: 60ch;
}

.learn-prompt-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--rycal-slate-500, #64748b);
  margin-bottom: 10px;
}

.learn-term {
  font-size: 24px;
  font-weight: 750;
  color: var(--rycal-slate-900, #0f172a);
  margin-bottom: 18px;
  line-height: 1.3;
}

.learn-definition {
  font-size: 16px;
  line-height: 1.65;
  color: var(--rycal-slate-700, #334155);
  background: var(--rycal-slate-50, #f8fafc);
  border: 1px solid var(--rycal-slate-200, #e2e8f0);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.learn-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.learn-choice {
  text-align: left;
  line-height: 1.5;
}

.learn-fill-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 17px;
  padding: 12px 14px;
  border: 1.5px solid var(--rycal-slate-300, #cbd5e1);
  border-radius: 10px;
  background: #fff;
  color: var(--rycal-slate-900, #0f172a);
  margin-bottom: 14px;
}

.learn-fill-input:focus {
  outline: none;
  border-color: var(--rycal-emerald-500, #10b981);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.learn-fill-input:disabled {
  background: var(--rycal-slate-50, #f8fafc);
  color: var(--rycal-slate-500, #64748b);
}

.learn-input-nudge {
  border-color: #dca5a5 !important;
  animation: learn-nudge 0.9s ease;
}

@keyframes learn-nudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

.learn-recall-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.6;
  padding: 12px 14px;
  border: 1.5px solid var(--rycal-slate-300, #cbd5e1);
  border-radius: 10px;
  background: #fff;
  color: var(--rycal-slate-900, #0f172a);
  resize: vertical;
  margin-bottom: 14px;
  font-family: inherit;
}

.learn-recall-input:focus {
  outline: none;
  border-color: var(--rycal-emerald-500, #10b981);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.learn-recall-input:disabled {
  background: var(--rycal-slate-50, #f8fafc);
  color: var(--rycal-slate-500, #64748b);
}

.learn-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.learn-answer-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--rycal-slate-500, #64748b);
  margin: 18px 0 8px;
}

.learn-selfcheck-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--rycal-slate-700, #334155);
  margin: 16px 0 10px;
}

.learn-selfcheck {
  display: flex;
  gap: 10px;
}

.learn-continue {
  margin-top: 14px;
}

.feedback-good .feedback-title {
  color: var(--rycal-emerald-700, #047857);
}

.feedback-bad .feedback-title {
  color: #b45309;
}

.learn-results {
  text-align: center;
  padding: 12px 0 4px;
}

.learn-result-big {
  font-size: 26px;
  font-weight: 750;
  color: var(--rycal-slate-900, #0f172a);
  margin-bottom: 10px;
}

.learn-result-sub {
  font-size: 14px;
  color: var(--rycal-slate-500, #64748b);
  margin-bottom: 14px;
  line-height: 1.6;
}

.learn-building-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}

.learn-chip {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--rycal-slate-100, #f1f5f9);
  border: 1px solid var(--rycal-slate-200, #e2e8f0);
  color: var(--rycal-slate-700, #334155);
}

.learn-result-actions {
  justify-content: center;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .learn-term {
    font-size: 21px;
  }

  .learn-selfcheck {
    flex-direction: column;
  }

  .learn-selfcheck .primary-button,
  .learn-selfcheck .secondary-button {
    width: 100%;
  }
}

.learn-exit-confirm {
  text-align: center;
  padding: 48px 24px;
  max-width: 480px;
  margin: 0 auto;
}

.learn-exit-title {
  font-size: 22px;
  font-weight: 650;
  color: var(--rycal-slate-900, #1e293b);
  margin-bottom: 12px;
}

.learn-exit-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--rycal-slate-600, #475569);
  margin-bottom: 28px;
}

.learn-exit-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .learn-exit-actions {
    flex-direction: column;
  }

  .learn-exit-actions .primary-button,
  .learn-exit-actions .secondary-button {
    width: 100%;
  }
}
