/* ============================================================
   lesson-lv4.css — Level 4: Real Conversations
   ============================================================ */

/* ---- Chapter navigation ---- */
.lv4-ch-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.ch-btn {
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid #c8d8ee;
  background: #f4f7fb;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.ch-btn:hover { border-color: #378ADD; color: #185FA5; background: #e8f1fb; }
.ch-btn.on    { background: #185FA5; color: #fff; border-color: #185FA5; }

/* ---- Chapter panels ---- */
.lv4-panel { animation: fadeIn4 0.2s ease; }
@keyframes fadeIn4 { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

.lv4-lesson-title {
  font-size: 20px;
  font-weight: 700;
  color: #185FA5;
  margin-bottom: 4px;
}
.lv4-lesson-sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
}

/* ---- Tense rule cards ---- */
.tense-rule-section { display: flex; flex-direction: column; gap: 20px; margin: 20px 0; }

.tense-rule-card {
  border: 2px solid #e4eaf3;
  border-radius: 14px;
  overflow: hidden;
}
.tr-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  font-size: 15px; font-weight: 700; color: #fff;
}
.tr-header.ao  { background: #185FA5; }
.tr-header.eo  { background: #3B6D11; }
.tr-header.hae { background: #BA7517; }
.tr-badge {
  font-size: 18px; font-weight: 900;
  background: rgba(255,255,255,0.2); padding: 2px 10px; border-radius: 8px;
}
.tr-body { padding: 16px 18px; }

/* Conjugation rows */
.conj-list4 { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.conj-row4 {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 12px; background: #fafafa; border-radius: 8px;
  border: 1px solid #f0f0f0; font-size: 13px;
}
.conj-row4:hover { background: #f5f8ff; border-color: #c7d9f5; }
.conj-dict4  { min-width: 110px; font-weight: 700; color: #333; }
.conj-meaning4 { font-weight: 400; color: #999; font-size: 13px; margin-left: 4px; }
.conj-formula4 { color: #555; font-size: 13px; min-width: 160px; }
.conj-formula4 s { color: #ef4444; }
.conj-eq4    { color: #bbb; font-size: 14px; }
.conj-result4 { font-size: 16px; font-weight: 700; min-width: 80px; }
.conj-result4.ao  { color: #185FA5; }
.conj-result4.eo  { color: #3B6D11; }
.conj-result4.hae { color: #BA7517; }
.conj-note4  { font-size: 12px; color: #999; }
.conj-eng4   { flex: 1; font-size: 13px; color: #777; min-width: 100px; }

/* Verb summary */
.verb-summary4 {
  background: #f4f7fb; border-radius: 12px; padding: 16px 20px; margin: 20px 0;
}
.verb-summary4 h4 { font-size: 14px; font-weight: 700; color: #042C53; margin-bottom: 12px; }
.vs4-rules { display: flex; flex-direction: column; gap: 8px; }
.vs4-rule  { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.vs4-tag {
  font-weight: 700; padding: 3px 10px; border-radius: 6px; white-space: nowrap;
}
.vs4-tag.ao  { background: #dbeafe; color: #185FA5; }
.vs4-tag.eo  { background: #dcfce7; color: #3B6D11; }
.vs4-tag.hae { background: #fef3c7; color: #BA7517; }
.vs4-examples { color: #555; }

/* ---- Future: side-by-side comparison ---- */
.future-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0;
}
.fc-card {
  border-radius: 14px; overflow: hidden;
  border: 2px solid #e4eaf3;
}
.fc-header {
  padding: 10px 16px; font-size: 15px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.fc-header.plan  { background: #185FA5; }
.fc-header.prm   { background: #7C3AED; }
.fc-body { padding: 14px 16px; background: #fff; }
.fc-form { font-size: 22px; font-weight: 900; color: #185FA5; margin-bottom: 6px; }
.fc-body .purple { color: #7C3AED; }
.fc-rule { font-size: 12px; color: #555; margin-bottom: 10px; line-height: 1.6; }
.fc-ex   { font-size: 13px; color: #333; line-height: 1.8; }
.fc-ex mark { background: transparent; font-weight: 700; color: #185FA5; }
.fc-body.purple-bg .fc-form { color: #7C3AED; }
.fc-body.purple-bg mark { color: #7C3AED; }

/* ---- Negation compare ---- */
.neg-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0;
}
.neg-card {
  border-radius: 14px; overflow: hidden; border: 2px solid #e4eaf3;
}
.neg-header {
  padding: 10px 16px; font-size: 15px; font-weight: 700; color: #fff;
}
.neg-header.ann  { background: #D85A30; }
.neg-header.mot  { background: #7C3AED; }
.neg-body { padding: 14px 16px; background: #fff; }
.neg-marker { font-size: 28px; font-weight: 900; color: #D85A30; margin-bottom: 4px; }
.neg-body.purple .neg-marker { color: #7C3AED; }
.neg-meaning { font-size: 13px; color: #555; margin-bottom: 10px; line-height: 1.5; }
.neg-ex { font-size: 13px; color: #333; line-height: 1.8; }
.neg-ex mark { background: transparent; font-weight: 700; color: #D85A30; }
.neg-body.purple .neg-ex mark { color: #7C3AED; }

/* ---- Connector cards ---- */
.connector-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0;
}
.conn-card {
  background: #f8faff; border: 1.5px solid #d0e3f8;
  border-radius: 12px; padding: 14px 16px;
}
.conn-word { font-size: 22px; font-weight: 900; color: #185FA5; }
.conn-rom  { font-size: 13px; color: #888; margin-bottom: 4px; }
.conn-mean { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 8px; }
.conn-ex   { font-size: 12px; color: #555; line-height: 1.7; }
.conn-ex mark { background: transparent; font-weight: 700; color: #185FA5; }

/* Grammar connectors */
.gram-conn-list { display: flex; flex-direction: column; gap: 14px; margin: 16px 0; }
.gc-card {
  background: #fff; border: 1.5px solid #e4eaf3; border-radius: 12px; padding: 14px 18px;
}
.gc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.gc-form { font-size: 18px; font-weight: 800; color: #185FA5; min-width: 80px; }
.gc-mean { font-size: 13px; color: #333; font-weight: 600; }
.gc-rule { font-size: 12px; color: #888; margin-bottom: 8px; }
.gc-ex   { font-size: 13px; color: #555; line-height: 1.8; }
.gc-ex mark { background: transparent; font-weight: 700; color: #D85A30; }

/* ---- Question word grid ---- */
.qword-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px; margin: 16px 0;
}
.qw-card {
  background: #fff; border: 2px solid #d0e3f8; border-radius: 14px;
  padding: 14px 12px; text-align: center; cursor: pointer;
  transition: all 0.15s;
}
.qw-card:hover { border-color: #185FA5; background: #e8f1fb; }
.qw-kr   { font-size: 24px; font-weight: 900; color: #185FA5; }
.qw-rom  { font-size: 13px; color: #888; margin: 2px 0; }
.qw-eng  { font-size: 12px; font-weight: 600; color: #333; }

.qword-examples { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.qw-ex-row {
  display: flex; align-items: center; gap: 10px;
  background: #f8faff; border: 1px solid #e4eaf3;
  border-radius: 10px; padding: 10px 14px;
}
.qw-ex-word { font-size: 18px; font-weight: 700; color: #185FA5; min-width: 60px; }
.qw-ex-sent { font-size: 14px; font-weight: 600; color: #042C53; flex: 1; }
.qw-ex-eng  { font-size: 12px; color: #888; }

/* ---- 주세요 expression list ---- */
.expr-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.expr-card {
  background: #fff; border: 1.5px solid #e4eaf3; border-radius: 12px;
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.expr-kr  { font-size: 18px; font-weight: 700; color: #185FA5; flex: 1; }
.expr-eng { font-size: 12px; color: #888; }
.expr-speak {
  background: #e8f1fb; border: none; border-radius: 8px;
  width: 34px; height: 34px; font-size: 15px;
  cursor: pointer; flex-shrink: 0; transition: background 0.15s;
}
.expr-speak:hover { background: #185FA5; }
.expr-speak.playing { background: #D85A30; }

/* Register compare */
.register-table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px;
}
.register-table th {
  background: #185FA5; color: #fff; padding: 10px; text-align: left; font-weight: 700;
}
.register-table td { padding: 10px; border-bottom: 1px solid #e4eaf3; }
.register-table tr:nth-child(even) td { background: #f8faff; }
.reg-formal   { font-size: 15px; font-weight: 700; color: #185FA5; }
.reg-polite   { font-size: 15px; font-weight: 700; color: #3B6D11; }
.reg-casual   { font-size: 15px; font-weight: 700; color: #BA7517; }
.reg-eng      { font-size: 12px; color: #888; }

/* ---- 4-7 Situation tabs ---- */
.situation4-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}
.sit4-btn {
  padding: 7px 14px; border-radius: 20px;
  border: 1.5px solid #c8d8ee; background: #f4f7fb;
  color: #555; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.sit4-btn:hover { border-color: #378ADD; color: #185FA5; }
.sit4-btn.on    { background: #185FA5; color: #fff; border-color: #185FA5; }
.sit4-panel { display: none; }
.sit4-panel.on  { display: block; }

/* Situation cards - shared with lv3 styles already in style.css or lv3.css */
/* Reuse .sit-sentences / .sit-card / .sit-num / .sit-text / .sit-kr / .sit-rom / .sit-eng / .sit-speak */
/* Reuse .sit-vocab / .sv-chip / .sv-dict / .sv-eng / .sv-arrow / .sv-form / .sv-note */

/* ---- Quiz section (lv4 versions) ---- */
.lv4-quiz-box {
  background: #f4f7fb; border: 1.5px solid #d0e3f8;
  border-radius: 14px; padding: 20px; margin-top: 24px;
}
.lv4-quiz-box h4 { font-size: 14px; font-weight: 700; color: #185FA5; margin: 0 0 16px; }

.lv4-opts {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 14px;
}
.lv4-opt {
  padding: 10px; border-radius: 10px;
  border: 2px solid #d0e3f8; background: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer;
  text-align: center; transition: all 0.15s; color: #185FA5;
}
.lv4-opt:hover   { border-color: #185FA5; background: #e8f1fb; }
.lv4-opt.correct { border-color: #16a34a; background: #dcfce7; color: #166534; }
.lv4-opt.wrong   { border-color: #dc2626; background: #fee2e2; color: #991b1b; }
.lv4-opt:disabled { cursor: default; }

.lv4-result { text-align: center; font-weight: 700; font-size: 14px; min-height: 22px; margin-bottom: 8px; }
.lv4-result.ok { color: #16a34a; }
.lv4-result.no { color: #dc2626; }

.lv4-next-btn {
  display: block; margin: 0 auto;
  padding: 9px 28px; background: #185FA5; color: #fff;
  border: none; border-radius: 20px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background 0.15s;
}
.lv4-next-btn:hover { background: #0C447C; }

.lv4-score-row {
  display: flex; justify-content: center; gap: 24px; margin-top: 14px;
}
.lv4-score-item { text-align: center; }
.lv4-score-num  { font-size: 24px; font-weight: 700; }
.lv4-score-lbl  { font-size: 13px; color: #888; }

/* ---- 4-8 Sentence Game ---- */
.game4-wrap {
  background: #f4f7fb; border: 1.5px solid #d0e3f8;
  border-radius: 14px; padding: 20px;
}
.game4-prompt {
  background: #f0fdf4; border: 1.5px solid #a7f3d0;
  border-radius: 12px; padding: 14px 20px;
  text-align: center; margin-bottom: 16px;
}
.game4-eng  { font-size: 18px; font-weight: 700; color: #166534; }
.game4-progress { font-size: 12px; color: #888; margin-top: 4px; }

/* Drop zone, tiles: reuse game-drop-zone / game-tile / game-selected-tile from lv3 */
.game4-score-row {
  display: flex; justify-content: center; gap: 24px; margin-top: 14px;
}

/* ---- Easy tip box (same as lv3 but also available here) ---- */
.easy-tip4 {
  background: #fffbeb; border: 1.5px solid #fde68a;
  border-radius: 12px; padding: 12px 16px; margin: 14px 0;
}
.easy-tip4-title { font-size: 12px; font-weight: 700; color: #92400E; margin-bottom: 6px; }
.easy-tip4 p { font-size: 13px; color: #78350F; margin: 0; line-height: 1.7; }

/* ---- Inline example speak button (conjugation rows) ---- */
.ex4-speak-sm {
  background:#e8f1fb;border:none;border-radius:6px;
  width:24px;height:24px;font-size:11px;cursor:pointer;flex-shrink:0;
  transition:background .15s;
}
.ex4-speak-sm:hover { background:#185FA5; }
.ex4-speak-sm.playing { background:#D85A30; }

/* ---- Sentence example row with romanization + speaker ---- */
.ex4-line {
  display:flex; align-items:center; gap:10px;
  padding:9px 0; border-bottom:1px solid #f0f3f8;
}
.ex4-line:last-child { border-bottom:none; }
.ex4-text { flex:1; }
.ex4-kr  { font-size:14px; color:#333; font-weight:600; }
.ex4-kr mark { background:transparent; font-weight:800; }
.ex4-rom { font-size:13px; color:#378ADD; margin-top:2px; }
.ex4-eng { font-size:13px; color:#888; margin-top:2px; }
.ex4-speak {
  background:#e8f1fb; border:none; border-radius:8px;
  width:30px; height:30px; font-size:13px; cursor:pointer;
  flex-shrink:0; transition:background .15s;
}
.ex4-speak:hover { background:#185FA5; }
.ex4-speak.playing { background:#D85A30; }

/* ---- Completion bridge ---- */
.lv4-completion {
  background: linear-gradient(135deg, #EFF6FF, #F0FDF4);
  border: 2px solid #93C5FD; border-radius: 16px;
  padding: 32px 24px; text-align: center; margin-top: 24px;
}
.lv4-completion h3 { font-size: 22px; color: #042C53; margin-bottom: 8px; }
.lv4-completion p  { font-size: 14px; color: #555; max-width: 480px; margin: 0 auto 20px; line-height: 1.7; }
.lv4-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px;
}
.lv4-badge {
  background: #fff; border: 1.5px solid #93C5FD; border-radius: 20px;
  padding: 7px 16px; font-size: 13px; font-weight: 600; color: #1e40af;
}
