/* ============================================================
   Writing Lesson 10 — Task 1 Line Graph  (new two-column design)
   Left: task + picture (sticky)   Right: 4 progressive steps
   ============================================================ */

.wl10-page {
  width: 100%;
  box-sizing: border-box;
  padding: 28px 32px 60px;
  font-family: var(--font, 'Segoe UI', sans-serif);
  color: var(--text, #f1f5f9);
}


.wl10-intro-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 22px 28px;
  margin-bottom: 32px;
}
.wl10-intro-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: var(--gold, #fbbf24);
}
.wl10-intro-card p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
}

/* ── Main two-column layout ── */
.wl10-columns {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 28px;
  align-items: start;
}

/* ── LEFT: task + picture (sticky) ── */
.wl10-left {
  position: sticky;
  top: 72px;
}
.wl10-task-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 20px 22px;
}
.wl10-task-label {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold, #fbbf24);
  margin-bottom: 12px;
}
.wl10-task-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  margin-bottom: 18px;
}
.wl10-task-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  display: block;
}

/* ── RIGHT: step-by-step answer ── */
.wl10-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wl10-step-card {
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: border-color .2s, background .2s;
  overflow: hidden;
}
.wl10-step-card.next {
  border-color: rgba(251,191,36,0.5);
  background: rgba(251,191,36,0.05);
  cursor: pointer;
}
.wl10-step-card.next:hover {
  background: rgba(251,191,36,0.09);
}
.wl10-step-card.done {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}
.wl10-step-card.locked {
  opacity: .45;
}

.wl10-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}

.wl10-step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
  flex-shrink: 0;
}
.wl10-step-card.next  .wl10-step-num { background: var(--gold,#fbbf24); color: #111; }
.wl10-step-card.done  .wl10-step-num { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); }
.wl10-step-card.locked .wl10-step-num { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.25); }

.wl10-step-num.bounce {
  animation: wl10-bounce 0.8s ease infinite;
}
@keyframes wl10-bounce {
  0%,100% { transform: translateY(0); }
  40%     { transform: translateY(-6px); }
}

.wl10-step-titles {
  flex: 1;
}
.wl10-step-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, #f1f5f9);
}
.wl10-step-card.locked .wl10-step-name { color: rgba(255,255,255,0.3); }
.wl10-step-desc {
  font-size: .9rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
.wl10-step-card.next .wl10-step-desc { color: rgba(251,191,36,0.7); }

.wl10-click-hint {
  font-size: .82rem;
  color: rgba(251,191,36,0.85);
  font-weight: 600;
  padding: 0 20px 14px 72px;
  margin-top: -6px;
}

/* Answer area (revealed after click) */
.wl10-answer {
  margin: 0 20px 20px 72px;
  background: rgba(0,0,0,0.2);
  border-left: 3px solid;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
}

/* Tip box */
.wl10-tip {
  margin: 0 20px 20px 72px;
  background: rgba(251,191,36,0.07);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: .88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}
.wl10-tip strong { color: var(--gold, #fbbf24); }

/* ── Final essay ── */
.wl10-final {
  margin-top: 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 28px 32px;
}
.wl10-final-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold, #fbbf24);
  margin-bottom: 18px;
}
.wl10-final-p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin: 0 0 18px;
}
.wl10-final-p:last-child { margin-bottom: 0; }

/* ── Clickable vocabulary phrases ── */
.wl10-voc {
  background: rgba(251,191,36,0.15);
  border-bottom: 2px dashed rgba(251,191,36,0.6);
  border-radius: 3px;
  padding: 1px 3px;
  cursor: pointer;
  color: inherit;
  transition: background .15s;
}
.wl10-voc:hover {
  background: rgba(251,191,36,0.3);
}
.wl10-voc-demo {
  pointer-events: none;
  font-size: .9em;
}

.wl10-final-sub {
  font-size: .92rem;
  color: rgba(255,255,255,0.45);
  margin: -10px 0 20px;
}

/* ── Synonym popup ── */
.wl10-syn-popup {
  display: none;
  position: absolute;
  width: 380px;
  background: #1a1a2e;
  border: 1px solid rgba(251,191,36,0.35);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  padding: 18px 20px 16px;
  z-index: 9999;
}
.wl10-syn-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none; border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1rem; cursor: pointer;
}
.wl10-syn-close:hover { color: rgba(255,255,255,0.8); }
.wl10-syn-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gold, #fbbf24);
  margin-bottom: 6px;
}
.wl10-syn-original {
  font-size: .92rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
  font-style: italic;
}
.wl10-syn-original em {
  color: rgba(255,255,255,0.7);
  font-style: normal;
  font-weight: 600;
}
.wl10-syn-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wl10-syn-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.wl10-syn-word {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  min-width: 160px;
  white-space: nowrap;
}
.wl10-syn-note {
  font-size: .85rem;
  color: rgba(255,255,255,0.45);
}

/* ── Vocabulary section wrapper ── */
.wl10-voc-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.wl10-vs-hd {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.wl10-vs-icon {
  font-size: 2rem;
  line-height: 1;
}
.wl10-vs-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text, #f1f5f9);
}
.wl10-vs-sub {
  font-size: .92rem;
  color: rgba(255,255,255,0.45);
  margin-top: 3px;
}

/* ── Vocabulary bank grid ── */
.wl10-vb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.wl10-vb-group {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}
.wl10-vb-group-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid;
}
.wl10-vb-icon  { font-size: 1.1rem; }
.wl10-vb-gname { font-size: .92rem; font-weight: 700; letter-spacing: .02em; }

.wl10-vb-items { padding: 10px 0; }
.wl10-vb-item {
  display: flex;
  flex-direction: column;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.wl10-vb-item:last-child { border-bottom: none; }
.wl10-vb-phrase {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #f1f5f9);
  margin-bottom: 2px;
}
.wl10-vb-note {
  font-size: .82rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
}

/* ── MCQ list ── */
.wl10-mcq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.wl10-mcq-item {
  display: flex;
  gap: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 18px 20px;
}
.wl10-mcq-num {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.3);
  color: var(--gold, #fbbf24);
  font-weight: 800; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
.wl10-mcq-body { flex: 1; }
.wl10-mcq-sentence {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  margin-bottom: 14px;
}
.wl10-mcq-gap {
  display: inline-block;
  min-width: 80px;
  border-bottom: 2px solid var(--gold, #fbbf24);
  text-align: center;
  color: var(--gold, #fbbf24);
  font-weight: 700;
  letter-spacing: .08em;
  margin: 0 4px;
  vertical-align: baseline;
}
.wl10-mcq-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.wl10-mcq-opt {
  padding: 7px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.82);
  font-size: .97rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .13s, border-color .13s, color .13s;
}
.wl10-mcq-opt:hover {
  background: rgba(251,191,36,0.12);
  border-color: rgba(251,191,36,0.45);
  color: var(--gold, #fbbf24);
}
.wl10-mcq-opt.correct {
  background: rgba(52,211,153,0.15);
  border-color: rgba(52,211,153,0.5);
  color: #6ee7b7;
  cursor: default;
}
.wl10-mcq-opt.wrong {
  background: rgba(248,113,113,0.12);
  border-color: rgba(248,113,113,0.4);
  color: #fca5a5;
  cursor: default;
}
.wl10-mcq-opt.dim {
  opacity: .35;
  cursor: default;
}
.wl10-mcq-fb {
  font-size: .93rem;
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.6;
  margin-top: 6px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.wl10-mcq-fb.correct {
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.22);
  color: rgba(255,255,255,0.75);
}
.wl10-mcq-fb.wrong {
  background: rgba(248,113,113,0.07);
  border: 1px solid rgba(248,113,113,0.2);
  color: rgba(255,255,255,0.75);
}
.wl10-mcq-fb strong { color: #fbbf24; }
.wl10-mcq-retry {
  margin-left: auto;
  flex-shrink: 0;
  padding: 4px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .13s;
}
.wl10-mcq-retry:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }

/* Responsive */
@media (max-width: 900px) {
  .wl10-columns  { grid-template-columns: 1fr; }
  .wl10-left     { position: static; }
  .wl10-vb-grid  { grid-template-columns: 1fr; }
}
