/* TỨ PHỦ — Learning Center */

.lc-progress-card {
  border-radius: 1rem;
  border: 1px solid rgba(98, 68, 60, 0.55);
  background: rgba(42, 26, 28, 0.9);
  padding: 1.15rem 1.25rem;
}

.lc-progress-bar {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(25, 15, 18, 0.55);
  overflow: hidden;
}

.lc-progress-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #742b32, #c49a59);
  transition: width 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .lc-progress-bar > span {
    transition: none;
  }
}

/* Stage cards */
.lc-stages {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .lc-stages {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lc-stage {
  border-radius: 1rem;
  border: 1px solid rgba(98, 68, 60, 0.3);
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
}

.lc-stage-header {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.15rem;
  color: inherit;
  background: transparent;
}

.lc-stage-header:hover,
.lc-stage-header:focus-visible {
  background: rgba(255, 255, 255, 0.35);
  outline: none;
}

.lc-stage.is-open .lc-stage-header {
  border-bottom: 1px solid rgba(98, 68, 60, 0.2);
}

.lc-stage-num {
  display: inline-flex;
  height: 1.85rem;
  min-width: 1.85rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(196, 154, 89, 0.5);
  color: #742b32;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(244, 230, 209, 0.7);
}

.lc-stage-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(98, 68, 60, 0.28);
  color: rgba(51, 36, 31, 0.72);
}

.lc-stage-status.is-progress {
  border-color: rgba(196, 154, 89, 0.55);
  color: #742b32;
}

.lc-stage-status.is-done {
  border-color: rgba(116, 43, 50, 0.45);
  color: #742b32;
  background: rgba(116, 43, 50, 0.08);
}

.lc-stage-body {
  padding: 0 1.15rem 1.15rem;
}

.lc-stage-body[hidden] {
  display: none !important;
}

.lc-mini-bar {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(98, 68, 60, 0.15);
  overflow: hidden;
}

.lc-mini-bar > span {
  display: block;
  height: 100%;
  background: #c49a59;
}

.lc-lesson {
  display: grid;
  gap: 0.65rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(98, 68, 60, 0.22);
  background: rgba(255, 255, 255, 0.55);
  padding: 0.85rem 0.95rem;
}

@media (min-width: 640px) {
  .lc-lesson {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.lc-lesson.is-complete {
  border-color: rgba(196, 154, 89, 0.45);
}

.lc-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 0.25rem;
  padding: 0.12rem 0.45rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(98, 68, 60, 0.08);
  color: rgba(51, 36, 31, 0.7);
}

.lc-badge--published {
  background: rgba(116, 43, 50, 0.1);
  color: #742b32;
}

.lc-badge--done {
  background: rgba(196, 154, 89, 0.18);
  color: #742b32;
}

/* Topic chips */
.lc-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lc-topic-btn {
  border-radius: 999px;
  border: 1px solid rgba(98, 68, 60, 0.3);
  background: rgba(255, 255, 255, 0.45);
  color: #33241f;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.lc-topic-btn:hover,
.lc-topic-btn:focus-visible {
  border-color: #c49a59;
  outline: none;
}

.lc-topic-btn.is-active {
  border-color: #742b32;
  background: rgba(116, 43, 50, 0.1);
  color: #742b32;
}

/* Lesson reader drawer */
.lc-reader {
  position: fixed;
  inset: 0;
  z-index: 85;
  pointer-events: none;
  visibility: hidden;
}

.lc-reader.is-open {
  pointer-events: auto;
  visibility: visible;
}

.lc-reader-overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 15, 18, 0.72);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lc-reader.is-open .lc-reader-overlay {
  opacity: 1;
}

.lc-reader-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(100%, 720px);
  background: #f5ebdd;
  color: #33241f;
  border-left: 1px solid rgba(98, 68, 60, 0.35);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lc-reader.is-open .lc-reader-panel {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .lc-reader-overlay,
  .lc-reader-panel {
    transition: none;
  }
}

.lc-reader-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(98, 68, 60, 0.25);
  background: rgba(255, 255, 255, 0.45);
}

.lc-reader-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.15rem 2rem;
}

.lc-reader-toc a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.85rem;
  color: rgba(51, 36, 31, 0.75);
}

.lc-reader-toc a:hover,
.lc-reader-toc a:focus-visible {
  color: #742b32;
  outline: none;
}

.lc-reader-section {
  scroll-margin-top: 1rem;
}

.lc-reader-section + .lc-reader-section {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(98, 68, 60, 0.18);
}

.lc-reader-foot {
  border-top: 1px solid rgba(98, 68, 60, 0.25);
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
}

/* Quiz */
.lc-quiz {
  margin-top: 1.75rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(98, 68, 60, 0.28);
  background: rgba(255, 255, 255, 0.55);
  padding: 1rem;
}

.lc-quiz-option {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  border-radius: 0.65rem;
  border: 1px solid rgba(98, 68, 60, 0.25);
  background: rgba(245, 235, 221, 0.8);
  padding: 0.7rem 0.8rem;
  color: inherit;
}

.lc-quiz-option + .lc-quiz-option {
  margin-top: 0.45rem;
}

.lc-quiz-option:hover,
.lc-quiz-option:focus-visible {
  border-color: #c49a59;
  outline: none;
}

.lc-quiz-option.is-selected {
  border-color: #742b32;
  background: rgba(116, 43, 50, 0.08);
}

.lc-quiz-option.is-correct {
  border-color: #3f6b3a;
  background: rgba(63, 107, 58, 0.1);
}

.lc-quiz-option.is-wrong {
  border-color: #742b32;
  background: rgba(116, 43, 50, 0.12);
}

.lc-quiz-explain {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(51, 36, 31, 0.78);
}

/* FAQ reuse pattern */
.lc-faq-item {
  border-radius: 0.75rem;
  border: 1px solid rgba(98, 68, 60, 0.3);
  background: rgba(255, 255, 255, 0.42);
  overflow: hidden;
}

.lc-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  padding: 0.95rem 1.05rem;
  color: #33241f;
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
}

.lc-faq-trigger:hover,
.lc-faq-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.35);
  outline: none;
}

.lc-faq-panel {
  padding: 0 1.05rem 1rem;
  color: rgba(51, 36, 31, 0.78);
  font-size: 0.925rem;
  line-height: 1.7;
}

.lc-faq-panel[hidden] {
  display: none !important;
}

.lc-filter-empty {
  border-radius: 0.85rem;
  border: 1px dashed rgba(98, 68, 60, 0.4);
  background: rgba(255, 255, 255, 0.35);
  padding: 1.5rem;
  text-align: center;
}
