/*
 * Meta-Learning Components
 * Reflection prompts, summaries, and learning aids
 */

/* Reflection Prompt Callouts */
.sp-callout--reflection {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  border-left: 4px solid #8b5cf6;
  padding: 20px;
  margin: 32px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.sp-callout--reflection .sp-callout__title {
  color: #a78bfa;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-callout--reflection .sp-callout__title::before {
  content: "🤔";
  font-size: 24px;
}

.sp-callout--reflection ul {
  margin: 16px 0;
  padding-left: 24px;
}

.sp-callout--reflection li {
  margin: 8px 0;
  line-height: 1.6;
}

.sp-callout--reflection p:last-child {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(139, 92, 246, 0.3);
  font-weight: 600;
}

/* Summary Callouts */
.sp-callout--summary {
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, rgba(0, 151, 167, 0.1) 100%);
  border-left: 4px solid #00bcd4;
  padding: 20px;
  margin: 32px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 188, 212, 0.2);
}

.sp-callout--summary .sp-callout__title {
  color: #00bcd4;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-callout--summary .sp-callout__title::before {
  content: "📝";
  font-size: 24px;
}

.sp-callout--summary ul {
  margin: 16px 0;
  padding-left: 24px;
}

.sp-callout--summary li {
  margin: 8px 0;
  line-height: 1.6;
  list-style: none;
}

.sp-callout--summary li::before {
  content: "✓";
  color: #00bcd4;
  font-weight: bold;
  margin-right: 8px;
}

.sp-callout--summary p strong {
  color: #00bcd4;
}

/* Learning Path Progress */
.learning-path-container {
  margin: 32px 0;
}

.learning-phase {
  background: rgba(30, 41, 59, 0.5);
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  transition: all 0.3s ease;
}

.learning-phase:hover {
  border-color: #00bcd4;
  box-shadow: 0 4px 16px rgba(0, 188, 212, 0.3);
}

.learning-phase.completed {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.learning-phase.in-progress {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.phase-title {
  font-size: 22px;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.phase-duration {
  font-size: 14px;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
}

.phase-checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.phase-checklist li {
  padding: 12px;
  margin: 8px 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.phase-checklist li:hover {
  background: rgba(0, 188, 212, 0.1);
  transform: translateX(4px);
}

.phase-checklist li::before {
  content: "◯";
  color: #64748b;
  font-size: 20px;
  min-width: 24px;
}

.phase-checklist li.completed::before {
  content: "✓";
  color: #10b981;
}

.phase-checklist li.in-progress::before {
  content: "⟳";
  color: #f59e0b;
}

.phase-milestone {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.15) 0%, rgba(0, 151, 167, 0.15) 100%);
  border-left: 4px solid #00bcd4;
  border-radius: 6px;
}

.phase-milestone strong {
  color: #00bcd4;
  font-size: 16px;
}

/* Knowledge Check Styles */
.knowledge-check {
  background: rgba(30, 41, 59, 0.5);
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
}

.knowledge-check h4 {
  color: #00bcd4;
  font-size: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.quiz-form label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-form label:hover {
  background: rgba(0, 188, 212, 0.1);
  transform: translateX(4px);
}

.quiz-form input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.check-answer-btn {
  background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 16px;
}

.check-answer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.4);
}

.quiz-feedback {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  font-weight: 600;
}

.quiz-feedback.correct {
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid #10b981;
  color: #10b981;
}

.quiz-feedback.incorrect {
  background: rgba(239, 68, 68, 0.2);
  border: 2px solid #ef4444;
  color: #ef4444;
}

/* Text Sizing Controls */
.text-size-controls {
  display: flex;
  gap: 0.2rem; /* Changed from 4px to rem */
  align-items: center;
  margin-left: 0.8rem; /* Changed from 16px to rem */
}

.text-size-btn {
  background: rgba(0, 188, 212, 0.1);
  border: 1px solid #00bcd4;
  color: #00bcd4;
  padding: 0.3rem 0.6rem; /* Changed from 6px 12px to rem */
  border-radius: 0.2rem; /* Changed from 4px to rem */
  font-size: 0.7rem; /* Changed from 14px to rem */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 2rem; /* Changed from 40px to rem */
  line-height: 1; /* Ensure consistent height */
  display: flex; /* Better centering */
  align-items: center;
  justify-content: center;
}

.text-size-btn:hover {
  background: rgba(0, 188, 212, 0.2);
  transform: translateY(-1px);
}

.text-size-btn:active {
  transform: translateY(0);
}

.text-size-btn.active {
  background: #00bcd4;
  color: #1a202c;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sp-callout--reflection,
  .sp-callout--summary {
    padding: 16px;
    margin: 24px 0;
  }

  .learning-phase {
    padding: 16px;
  }

  .phase-title {
    font-size: 18px;
  }

  .knowledge-check {
    padding: 16px;
  }

  .text-size-controls {
    margin-left: 0.4rem; /* Changed from 8px to rem */
  }

  .text-size-btn {
    padding: 0.2rem 0.4rem; /* Changed from 4px 8px to rem */
    font-size: 0.6rem; /* Changed from 12px to rem */
    min-width: 1.6rem; /* Changed from 32px to rem */
  }
}

/* Print styles */
@media print {
  .knowledge-check,
  .text-size-controls {
    display: none;
  }

  .sp-callout--reflection,
  .sp-callout--summary {
    page-break-inside: avoid;
  }
}
