/* ============================================================
   vocab.css — VOCA 학습 (analysis-vocab.js) · 단어 시험 (words.html · words.js)
   ============================================================ */

/* -------------------- VOCA 학습 (analysis-vocab.js) -------------------- */
.vc-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--color-border); margin: 0 0 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.vc-tab {
  background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 10px 14px; font: inherit; font-size: var(--fs-sm); color: var(--color-text-secondary); cursor: pointer; white-space: nowrap;
}
.vc-tab.is-active { color: var(--color-text); border-bottom-color: var(--an-burgundy); font-weight: 700; }
.vc-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 18px; }
.vc-scope[hidden] { display: none; }
.vc-scope label { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--color-text-secondary); }
.vc-scope select, .vc-setup select, .vc-spell input {
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-s); background: var(--color-bg);
  color: var(--color-text); padding: 7px 10px; font-size: var(--fs-sm); font-family: inherit;
}
.vc-scope select { max-width: min(100%, 360px); }
.vc-scope select:focus, .vc-setup select:focus, .vc-spell input:focus { outline: none; border-color: var(--color-accent); }
.vc-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.vc-chip {
  font: inherit; font-size: var(--fs-sm); padding: 4px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--color-border-strong); background: transparent; color: var(--color-text-secondary);
}
.vc-chip span { color: var(--color-text-tertiary); margin-left: 2px; }
.vc-chip.is-on { background: var(--ink, var(--color-text)); border-color: var(--ink, var(--color-text)); color: var(--color-bg); }
.vc-chip.is-on span { color: inherit; opacity: 0.75; }
.vc-summary { font-size: var(--fs-sm); font-weight: 700; color: var(--an-burgundy); margin: 0 0 14px; }
.vc-summary-hint { display: block; font-weight: 400; color: var(--color-text-tertiary); font-size: var(--fs-xs); margin-top: 2px; }
.vc-table tbody { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.vc-table tr { grid-template-columns: 28px minmax(0, 1.2fr) 44px minmax(0, 2fr) 54px !important; }
.vc-mark-cell { text-align: right; }
.vc-mark-btn { background: none; border: none; padding: 2px 4px; cursor: pointer; font: inherit; display: inline-flex; gap: 4px; align-items: center; }
.vc-mark { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; font-size: var(--fs-xs); font-weight: 800; }
.vc-mark.is-known { background: var(--color-success); color: #fff; }
.vc-mark.is-unknown { background: var(--color-error); color: #fff; }
.vc-mark.is-none { color: var(--color-text-tertiary); }
.vc-wrong { font-size: var(--fs-xs); color: var(--color-error); white-space: nowrap; }
.vc-setup { max-width: 560px; }
.vc-setup-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 14px; font-size: var(--fs-sm); }
.vc-setup-row label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.vc-setup-label { font-size: var(--fs-sm); font-weight: 700; color: var(--color-text-secondary); min-width: 4em; }
.vc-recent { font-size: var(--fs-sm); color: var(--color-text-tertiary); margin-top: 14px; }
.vc-cards, .vc-test { max-width: 560px; margin: 0 auto; }
.vc-progress { height: 3px; background: var(--color-border); margin-bottom: 8px; }
.vc-progress span { display: block; height: 100%; background: var(--an-burgundy); transition: width 0.2s; }
.vc-count { font-size: var(--fs-xs); color: var(--color-text-tertiary); text-align: center; margin: 0 0 12px; }
.vc-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%;
  min-height: 220px; padding: 28px 20px 40px; position: relative; cursor: pointer; font: inherit; color: inherit;
  background: var(--color-surface, var(--color-bg)); border: 1px solid var(--color-border-strong); border-top: 3px solid var(--an-burgundy);
}
.vc-card.is-flipped { border-top-color: var(--color-success); }
.vc-card-face, .vc-card-back { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.vc-card-face[hidden], .vc-card-back[hidden] { display: none; }
.vc-card-word, .vc-q-word { font-size: var(--fs-2xl); font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.vc-card-meaning, .vc-q-meaning { font-size: var(--fs-xl); font-weight: 600; margin: 0; line-height: 1.5; }
.vc-card-pos { font-size: var(--fs-sm); color: var(--color-text-tertiary); font-style: italic; margin: 0; }
.vc-card-src { font-size: var(--fs-xs); color: var(--color-text-tertiary); margin-top: 8px; }
.vc-card-hint { position: absolute; bottom: 10px; font-size: var(--fs-xs); color: var(--color-text-tertiary); }
.vc-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.vc-card-actions button { padding: 12px 0; font-size: var(--fs-md); }
.vc-card-stop { justify-content: center; margin-top: 10px; }
.vc-q { text-align: center; padding: 18px 10px 20px; border-top: 3px solid var(--an-burgundy); border-bottom: 1px solid var(--color-border); margin-bottom: 16px; }
.vc-choices { display: grid; gap: 8px; }
.vc-choice {
  text-align: left; font: inherit; font-size: var(--fs-md); padding: 12px 14px; cursor: pointer;
  background: transparent; color: inherit; border: 1px solid var(--color-border-strong); border-radius: var(--radius-m, 4px);
}
.vc-choice b { color: var(--color-text-tertiary); margin-right: 6px; font-weight: 600; }
.vc-choice:hover:not(:disabled) { border-color: var(--an-burgundy); }
.vc-choice:disabled { cursor: default; }
.vc-choice.is-right { border-color: var(--color-success); background: var(--color-success-soft); }
.vc-choice.is-wrong { border-color: var(--color-error); background: var(--color-error-soft, transparent); }
.vc-spell { display: flex; gap: 8px; }
.vc-spell input { flex: 1; min-width: 0; font-size: var(--fs-lg); padding: 10px 12px; }
.vc-fb { margin-top: 14px; padding: 10px 14px; border-left: 3px solid var(--color-success); font-size: var(--fs-md); }
.vc-fb.is-ng { border-left-color: var(--color-error); }
.vc-fb p { margin: 0 0 6px; }
.vc-fb-head { font-weight: 800; }
.vc-fb.is-ok .vc-fb-head { color: var(--color-success); }
.vc-fb.is-ng .vc-fb-head { color: var(--color-error); }
.vc-done { max-width: 620px; margin: 0 auto; text-align: center; padding: 10px 0; }
.vc-done .admin-form-actions { justify-content: center; }
.vc-done-title { font-size: var(--fs-lg); font-weight: 800; margin: 0 0 6px; }
.vc-done-pct { color: var(--an-burgundy); margin-left: 6px; }
.vc-done-sub { font-size: var(--fs-sm); color: var(--color-text-secondary); margin: 0 0 14px; }
.vc-done-words { font-size: var(--fs-md); line-height: 1.8; margin: 0 0 14px; }
.vc-wrong-table { width: 100%; border-collapse: collapse; text-align: left; margin: 0 0 16px; font-size: var(--fs-sm); }
.vc-wrong-table td { padding: 6px 8px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.vc-student { border-bottom: 1px solid var(--color-border); padding: 10px 0; }
.vc-student summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; cursor: pointer; list-style: none; }
.vc-student summary::-webkit-details-marker { display: none; }
.vc-student-name { font-weight: 700; }
.vc-student-stat { font-size: var(--fs-sm); color: var(--color-text-secondary); }
.vc-often { font-size: var(--fs-sm); color: var(--color-text-secondary); margin: 8px 0; }
.vc-score-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin-top: 6px; }
.vc-score-table th, .vc-score-table td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.vc-score-table th { font-weight: 600; color: var(--color-text-tertiary); font-size: var(--fs-xs); }
@media (max-width: 560px) {
  .vc-table tr { grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1.4fr) 44px !important; }
  .vc-table .an-voca-pos { display: none; }
  .vc-card-word, .vc-q-word { font-size: var(--fs-2xl); }
  .vc-score-table td:last-child, .vc-score-table th:last-child { display: none; }
}

/* -------------------- 단어 시험 (words.html · words.js) — 대부분 VOCA(vc-*) 모양을 같이 쓴다 -------------------- */
.wt-speak { display: inline-flex; width: 28px; height: 28px; vertical-align: middle; margin-left: 2px; }
.wt-speak svg { width: 16px; height: 16px; }
.vc-count .wt-speak { width: 24px; height: 24px; }
.wt-example { display: block; font-size: var(--fs-xs); color: var(--color-text-tertiary); margin-top: 3px; line-height: 1.5; }
.wt-table tr { align-items: start; }
.wt-modes label.is-off { opacity: 0.45; cursor: not-allowed; }
.wt-blank-sentence { font-size: var(--fs-lg); line-height: 1.7; margin: 0 0 10px; text-align: left; }
.wt-blank { display: inline-block; min-width: 4em; padding: 0 4px; border-bottom: 2px solid var(--an-navy); color: var(--an-navy); font-weight: 600; letter-spacing: 0.08em; text-align: center; }
.wt-blank-hint { font-size: var(--fs-sm); color: var(--color-text-secondary); margin: 0; text-align: left; }
.wt-blank-answer { color: var(--color-success); text-decoration: underline; text-underline-offset: 3px; }
.wt-accept-note { font-size: var(--fs-xs); font-weight: 600; color: var(--an-navy); margin-left: 6px; }
.wt-ed-count { font-size: var(--fs-sm); margin: 10px 0 8px; }
#wt-ed-drop.is-dragover { outline: 2px dashed var(--color-accent); outline-offset: 4px; border-radius: var(--radius-m); background: var(--color-accent-soft); }
@media (max-width: 520px) {
  .wt-blank-sentence { font-size: var(--fs-lg); }
  .wt-modes { flex-direction: column; align-items: flex-start; gap: 10px; } /* 시험 유형은 휴대폰에서 한 줄에 하나 */
}
