/* ============================================================
   Writing Lesson 8 — How to Paraphrase  (5 screens)
   ============================================================ */

/* ── Page wrapper — full width ── */
.wl8-page {
  width: 100%;
  padding: 0 0 60px;
  box-sizing: border-box;
}

/* ── Section title ── */
.wl8-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  border-bottom: 2px solid rgba(251,191,36,0.25);
  padding-bottom: 10px;
  margin: 0 0 24px;
}

/* ══════════════════════════════════════════════════════
   SCREEN 1 — TECHNIQUES  (full-width stacked cards)
   ══════════════════════════════════════════════════════ */

.wl8-technique-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 24px;
}

.wl8-tc-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.wl8-tc-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); color: #000;
  font-weight: 900; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wl8-tc-title  { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.wl8-tc-expl   { font-size: 1.05rem; color: rgba(255,255,255,0.72); margin: 0 0 20px; line-height: 1.6; }

/* Original / Paraphrase sentence rows */
.wl8-sent-block { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.wl8-sent-row   { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wl8-sent-lbl {
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 5px; flex-shrink: 0;
}
.wl8-orig-lbl { background: rgba(100,116,139,0.3); color: #94a3b8; }
.wl8-para-lbl { background: rgba(251,191,36,0.15); color: var(--gold); }
.wl8-sent-text { font-size: 1.05rem; color: var(--text); line-height: 1.6; }
.wl8-para-text { color: rgba(251,191,36,0.9); }

/* Comparison table */
.wl8-table {
  width: auto; border-collapse: collapse; font-size: 1rem;
  table-layout: auto;
}
.wl8-table th {
  background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.55);
  font-weight: 700; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase;
  padding: 8px 14px; text-align: left;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.wl8-table td {
  padding: 8px 14px;
  border: 1px solid var(--border);
  color: rgba(255,255,255,0.82); line-height: 1.5; vertical-align: middle;
  white-space: nowrap;
}
.wl8-table td:first-child { color: rgba(255,255,255,0.52); }
.wl8-table td:last-child  { color: rgba(251,191,36,0.88); font-weight: 600; }

.wl8-note {
  font-size: .95rem; color: rgba(251,191,36,0.82); margin: 14px 0 0; line-height: 1.55;
}

/* Guided examples */
.wl8-guided-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 14px; padding: 26px 32px;
  margin-bottom: 22px;
}
.wl8-guided-num {
  font-size: .85rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.wl8-reasons {
  margin: 14px 0 0; padding-left: 22px;
  font-size: .98rem; color: rgba(255,255,255,0.7); line-height: 1.8;
}
.wl8-reasons li::marker { color: var(--gold); }

/* ══════════════════════════════════════════════════════
   SCREEN 2 — MISTAKES  (full-width stacked)
   ══════════════════════════════════════════════════════ */

.wl8-mistake-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 26px 32px;
  margin-bottom: 22px;
}
.wl8-mistake-num {
  font-size: .9rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #f87171; margin-bottom: 14px;
}
.wl8-mrow {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap;
}
.wl8-mlbl {
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 5px; flex-shrink: 0;
}
.wl8-mrow .wl8-mlbl     { background: rgba(100,116,139,0.25); color: #94a3b8; }
.wl8-bad .wl8-mlbl      { background: rgba(248,113,113,0.15); color: #f87171; }
.wl8-better .wl8-mlbl   { background: rgba(52,211,153,0.15); color: #34d399; }
.wl8-mtext              { font-size: 1.05rem; color: var(--text); line-height: 1.55; }
.wl8-bad .wl8-mtext     { color: rgba(248,113,113,0.82); text-decoration: line-through; }
.wl8-better .wl8-mtext  { color: rgba(52,211,153,0.9); font-weight: 600; }
.wl8-mistake-reason {
  font-size: .95rem; color: rgba(255,255,255,0.55);
  margin: 2px 0 12px; font-style: italic; line-height: 1.55;
}

/* Tip box */
.wl8-tip-box {
  background: rgba(251,191,36,0.07);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 14px; padding: 24px 32px; margin-top: 8px;
}
.wl8-tip-title { font-size: 1.1rem; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.wl8-tip-list  {
  margin: 0; padding-left: 22px;
  font-size: 1.02rem; color: rgba(255,255,255,0.8); line-height: 2;
}
.wl8-tip-list li::marker { color: var(--gold); }

/* ══════════════════════════════════════════════════════
   SCREEN 3 — MATCHING  (all 10 in 2-column grid)
   ══════════════════════════════════════════════════════ */

/* 2-column grid: 5 rows × 2 activities */
.wl8-match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Individual activity card */
.wl8-match-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
}
.wl8-match-card-title {
  font-size: .82rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.wl8-match-card-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(251,191,36,0.15); border: 1px solid rgba(251,191,36,0.35);
  color: var(--gold); font-size: .82rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Two-column match panel inside each card */
.wl8-match-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.wl8-match-side    { display: flex; flex-direction: column; gap: 7px; }
.wl8-match-side-title {
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,0.38); margin-bottom: 2px;
}

/* Match items */
.wl8-match-item {
  padding: 10px 13px;
  border: 2px solid var(--border); border-radius: 8px;
  font-size: .97rem; color: rgba(255,255,255,0.8);
  cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  transition: border-color .15s, background .15s, color .15s;
  line-height: 1.35; min-height: 44px;
}
.wl8-match-item:hover    { border-color: rgba(251,191,36,0.5); background: rgba(251,191,36,0.04); }
.wl8-match-item.selected { border-color: var(--gold); background: rgba(251,191,36,0.1); color: var(--gold); }
.wl8-match-item.matched  { border-color: rgba(99,102,241,0.55); background: rgba(99,102,241,0.07); }
.wl8-match-item.correct  { border-color: #34d399; background: rgba(52,211,153,0.08); color: #34d399; }
.wl8-match-item.wrong    { border-color: #f87171; background: rgba(248,113,113,0.08); color: #f87171; }
.wl8-match-badge {
  font-size: .72rem; font-weight: 800;
  background: rgba(99,102,241,0.3); color: #a5b4fc;
  border-radius: 4px; padding: 2px 6px; flex-shrink: 0;
}

/* Footer bar for each card */
.wl8-match-footer {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 4px;
}

/* ══════════════════════════════════════════════════════
   SCREEN 4 — FILL IN THE BLANK
   ══════════════════════════════════════════════════════ */

.wl8-fill-list { display: flex; flex-direction: column; gap: 0; }

.wl8-fill-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.wl8-fill-item:first-child { padding-top: 0; }
.wl8-fill-item:last-child  { border-bottom: none; }

.wl8-fill-orig {
  font-size: .95rem; color: rgba(255,255,255,0.48);
  margin-bottom: 10px; line-height: 1.5;
  font-style: italic;
}
.wl8-fill-sentence {
  font-size: 1.1rem; color: var(--text); line-height: 2.2;
}
.wl8-fill-num {
  font-weight: 800; color: var(--gold);
  margin-right: 6px;
}
.wl8-fill-input {
  display: inline-block; min-width: 130px; max-width: 200px;
  border: none; border-bottom: 2px solid var(--gold); background: transparent;
  color: var(--gold); font-size: 1.1rem; font-weight: 700;
  padding: 2px 8px; text-align: center; outline: none;
  transition: border-color .15s;
}
.wl8-fill-input.correct { border-color: #34d399; color: #34d399; }
.wl8-fill-input.wrong   { border-color: #f87171; color: #f87171; }
.wl8-fill-feedback {
  font-size: .98rem; margin-top: 8px; font-weight: 600; line-height: 1.5;
}
.wl8-fill-feedback.correct { color: #34d399; }
.wl8-fill-feedback.wrong   { color: #f87171; }

/* ══════════════════════════════════════════════════════
   SCREEN 5 — MULTIPLE CHOICE
   ══════════════════════════════════════════════════════ */

.wl8-mcq-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.wl8-mcq-item:first-child { padding-top: 0; }
.wl8-mcq-item:last-child  { border-bottom: none; }

.wl8-mcq-qnum {
  font-size: .85rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.wl8-act-question-box {
  background: rgba(255,255,255,0.05);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px; margin-bottom: 16px;
  font-size: 1.05rem; color: var(--text); line-height: 1.6;
}
.wl8-act-qlbl {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 6px;
}
.wl8-mc-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.wl8-mc-option {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 18px; border: 2px solid var(--border); border-radius: 10px;
  cursor: pointer; font-size: 1.05rem; color: rgba(255,255,255,0.8);
  line-height: 1.55; transition: border-color .15s, background .15s;
  user-select: none;
}
.wl8-mc-option:hover    { border-color: rgba(251,191,36,0.4); background: rgba(251,191,36,0.04); }
.wl8-mc-option.selected { border-color: var(--gold); background: rgba(251,191,36,0.08); }
.wl8-mc-option.correct  { border-color: #34d399; background: rgba(52,211,153,0.08); color: #34d399; }
.wl8-mc-option.wrong    { border-color: #f87171; background: rgba(248,113,113,0.08); color: #f87171; }
.wl8-mc-key {
  font-weight: 900; font-size: 1rem; color: var(--gold);
  flex-shrink: 0; min-width: 20px; padding-top: 1px;
}
.wl8-mc-explanation {
  font-size: .95rem; color: rgba(255,255,255,0.65);
  padding: 8px 16px; border-left: 3px solid rgba(255,255,255,0.15);
  margin-top: 4px; line-height: 1.55;
}

/* ══════════════════════════════════════════════════════
   SHARED — Buttons & Score
   ══════════════════════════════════════════════════════ */

.wl8-check-btn {
  background: var(--gold); color: #000; font-weight: 900; font-size: 1rem;
  border: none; border-radius: 9px; padding: 12px 28px; cursor: pointer;
  transition: background .15s, opacity .15s;
}
.wl8-check-btn:disabled { opacity: .38; cursor: not-allowed; }
.wl8-check-btn:not(:disabled):hover { background: #fbbf24; }
.wl8-reset-btn { background: rgba(255,255,255,0.1) !important; color: var(--text) !important; }
.wl8-reset-btn:hover { background: rgba(255,255,255,0.18) !important; }

.wl8-score {
  display: inline-block;
  background: rgba(52,211,153,0.15); border: 1px solid rgba(52,211,153,0.35);
  color: #34d399; font-size: 1rem; font-weight: 700;
  border-radius: 20px; padding: 7px 18px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .wl8-match-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .wl8-match-panel { grid-template-columns: 1fr; gap: 10px; }
}
