/* entry-test.css — Kiểm tra đầu vào (entry test) page styles.
   Piggybacks on theme.css variables with inline fallbacks. */

.et-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 80px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--text, #e2e8f0);
}

.et-card {
  background: var(--surf, #131b2e);
  border: 1px solid var(--border, rgba(255, 255, 255, .1));
  border-radius: 16px;
  padding: 22px 20px;
  margin-bottom: 14px;
}

.et-accent { height: 4px; border-radius: 4px 4px 0 0; background: var(--grad, linear-gradient(135deg, #7C5CBF, #20B9B9)); margin: -22px -20px 18px; }

.et-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -.01em; }
.et-lead  { font-size: .92rem; line-height: 1.6; opacity: .88; }
.et-note  { font-size: .82rem; color: var(--dim, #7880a0); margin-top: 10px; line-height: 1.5; }

.et-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 11px 22px;
  border: none;
  border-radius: 12px;
  background: var(--grad, linear-gradient(135deg, #7C5CBF, #20B9B9));
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
}
.et-btn:disabled { opacity: .6; cursor: default; }
.et-btn-ghost {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  border: 1px solid var(--border, rgba(255, 255, 255, .15));
  border-radius: 12px;
  background: transparent;
  color: var(--text, #e2e8f0);
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
}
.et-btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.et-link { color: var(--accent, #20B9B9); font-weight: 700; text-decoration: none; }

/* ── MCQ ── */
.et-progress { font-size: .8rem; font-weight: 700; color: var(--dim, #7880a0); margin-bottom: 6px; letter-spacing: .5px; }
.et-bar { height: 6px; border-radius: 3px; background: var(--border, rgba(255,255,255,.08)); overflow: hidden; margin-bottom: 18px; }
.et-bar-fill { height: 100%; background: var(--grad, linear-gradient(135deg, #7C5CBF, #20B9B9)); transition: width .25s ease; }
.et-prompt { font-size: 1.05rem; font-weight: 600; line-height: 1.55; margin-bottom: 16px; }
.et-opts { display: flex; flex-direction: column; gap: 9px; }
.et-opt {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border, rgba(255, 255, 255, .12));
  border-radius: 12px;
  background: var(--surf2, rgba(255, 255, 255, .03));
  color: var(--text, #e2e8f0);
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.et-opt:hover { border-color: var(--accent, #20B9B9); }
.et-opt.sel { border-color: var(--accent, #20B9B9); background: rgba(32, 185, 185, .12); }
.et-opt:disabled { cursor: default; }

/* ── Dictation ── */
.et-dict-item { margin-bottom: 18px; }
.et-dict-head { font-size: .85rem; font-weight: 700; margin-bottom: 8px; color: var(--dim, #7880a0); }
.et-dict-missing { font-size: .85rem; color: var(--dim, #7880a0); padding: 10px 12px; border: 1px dashed var(--border, rgba(255,255,255,.15)); border-radius: 10px; }
.et-play-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.et-play-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--grad, linear-gradient(135deg, #7C5CBF, #20B9B9));
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}
.et-play-btn:disabled { opacity: .4; cursor: default; }
.et-play-count { font-size: .78rem; color: var(--dim, #7880a0); }
.et-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--border, rgba(255, 255, 255, .12));
  border-radius: 10px;
  background: var(--surf2, rgba(255, 255, 255, .03));
  color: var(--text, #e2e8f0);
  font-family: inherit;
  font-size: .95rem;
  resize: vertical;
}
.et-textarea:focus { outline: none; border-color: var(--accent, #20B9B9); }

/* ── Self report ── */
.et-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.et-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border, rgba(255, 255, 255, .15));
  background: transparent;
  color: var(--text, #e2e8f0);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.et-chip.on { border-color: var(--accent, #20B9B9); background: rgba(32, 185, 185, .14); }
.et-q-label { font-size: .92rem; font-weight: 700; margin-top: 6px; }
.et-band-select {
  margin-left: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255, 255, 255, .15));
  background: var(--surf, #131b2e);
  color: var(--text, #e2e8f0);
  font-family: inherit;
  font-size: .88rem;
}

/* ── Result ── */
.et-level-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border, rgba(255,255,255,.07)); }
.et-level-row:last-of-type { border-bottom: none; }
.et-level-name { font-size: .92rem; font-weight: 600; }
.et-level-badge {
  font-weight: 800;
  font-size: .95rem;
  color: var(--accent, #20B9B9);
  border: 1px solid var(--accent, #20B9B9);
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
}
.et-caveat { font-size: .76rem; color: var(--dim, #7880a0); margin-top: 10px; }

.et-rec-head { font-size: .74rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--dim, #7880a0); font-weight: 700; margin: 20px 0 10px; }
.et-rec-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border, rgba(255, 255, 255, .1));
  border-radius: 14px;
  background: var(--surf, #131b2e);
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--text, #e2e8f0);
}
.et-rec-card:hover { border-color: var(--accent, #20B9B9); }
.et-rec-icon { font-size: 1.5rem; line-height: 1; margin-top: 2px; }
.et-rec-name { font-weight: 800; font-size: .95rem; margin-bottom: 3px; }
.et-rec-reason { font-size: .84rem; line-height: 1.5; opacity: .85; }
.et-rec-cta .et-rec-reason { color: var(--dim, #7880a0); }
.et-routine-ok { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35); font-size: .88rem; font-weight: 600; }

.et-resume-note { margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(124, 92, 191, .12); border: 1px solid rgba(124, 92, 191, .35); font-size: .86rem; font-weight: 600; }

.et-err { margin-top: 12px; font-size: .88rem; color: #f87171; }
.et-spin { font-size: .88rem; color: var(--dim, #7880a0); margin-top: 8px; }
