/* ===== 단어 사이트 공통 스타일 (2026-10-05) =====
   디자인 기준 = 기존 사이트의 **랜딩 페이지**(D:\Personally\styles.css).
   색 토큰·카드·알약 버튼·헤더·푸터를 그대로 맞췄다. 관리자 화면(admin.css)은 기준이 아님.
   폰트: Noto Sans KR (기존 사이트와 같게, PROJECT-RULES.md의 폰트 예외를 이 프로젝트에도 적용).
   통합 때 styles.css를 함께 읽지 않아도 되도록 스스로 완결되게 만든다 — 이름은 모두 vc- 로 시작. */

:root {
  /* styles.css :root 와 같은 값 — 바꿀 때는 두 곳을 함께 */
  --bg: #ffffff;
  --ink: #3d3a4a;
  --muted: #9a97a8;
  --purple: #6f5f97;
  --purple-2: #8a7ab5;
  --lav: #f5f2fb;
  --lav-2: #efe9f8;
  --line: #ece9f3;
  --shadow: 0 6px 24px rgba(111, 95, 151, 0.08);
  --radius: 18px;
  --max: 1080px;
  /* 랜딩의 상담 신청 창에서 쓰는 값 */
  --field-line: #e3def0;
  --placeholder: #b3afc0;
  --danger: #c0556f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* scrollbar-gutter: 확인 창이 열려 스크롤을 잠글 때 화면이 옆으로 흔들리지 않게 */
html { overflow-x: clip; scrollbar-gutter: stable; }
body {
  font-family: "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }
[hidden] { display: none !important; }

/* ===== 헤더 — 랜딩과 같음 (가운데 로고 + 오른쪽 알약 버튼) ===== */
.vc-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.vc-header__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}
.vc-logo { display: inline-flex; align-items: center; line-height: 1; }
.vc-logo img { display: block; height: 40px; width: auto; }
.vc-logo:hover { opacity: 0.8; }
/* 왼쪽: 지금 어느 화면인지 — 그냥 글자 (알약 태그는 쓰지 않음, 2026-10-05) */
.vc-header__tag {
  position: absolute;
  left: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--purple);
}
/* 오른쪽: 기존 관리자 페이지로 — 랜딩의 .btn-login 모양 */
.vc-header__btn {
  position: absolute;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lav-2);
  color: var(--purple);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.vc-header__btn:hover { background: #e6def5; }

/* ===== 본문 ===== */
.vc-main { flex: 1; width: 100%; }
/* 아래 선택 도구가 떠 있는 동안 마지막 세트가 가려지지 않게 */
body.has-sel .vc-main { padding-bottom: 64px; }
.vc-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* 머리 — 랜딩 히어로의 축소판: 큰 제목(첫 글자 강조) + 옅은 설명 + 오른쪽 숫자 카드 */
.vc-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 40px;
  padding: 48px 0 28px;
}
.vc-intro__title {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}
.vc-intro__sub {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.75;
}
/* 숫자 카드 — 이용자 페이지의 점수 상자(70점·통과·67%)와 같은 느낌 */
.vc-stats { display: flex; gap: 10px; }
.vc-stat {
  min-width: 96px;
  padding: 12px 16px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
}
.vc-stat__label { font-size: 0.76rem; color: var(--muted); }
.vc-stat__value {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--purple);
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.vc-stat__unit { font-size: 0.8rem; font-weight: 500; margin-left: 2px; color: var(--purple-2); }

/* 메뉴 — 이용자 페이지의 '결과·피드백 / 위클리T' 토글처럼 연보라 바탕 안에 흰 알약 */
.vc-tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  margin-bottom: 20px;
  background: var(--lav);
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
}
.vc-tabs::-webkit-scrollbar { display: none; }
.vc-tab {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.vc-tab:hover:not(:disabled) { color: var(--purple); }
.vc-tab.is-active {
  background: #fff;
  color: var(--purple);
  box-shadow: 0 2px 10px rgba(111, 95, 151, 0.12);
}
.vc-tab:disabled { cursor: default; opacity: 0.75; }
/* 준비 중 — 테두리 없는 작은 글자 */
.vc-tab__soon {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--placeholder);
}

/* 카드 — 랜딩 .card */
.vc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px 32px;
  margin-bottom: 48px;
}
.vc-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.vc-card__title { font-size: 1.25rem; font-weight: 700; }
.vc-card__count { font-size: 0.9rem; font-weight: 500; color: var(--purple-2); margin-left: 6px; }
.vc-card__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 버튼 — 랜딩 .btn-primary / .btn-outline */
.vc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.vc-btn--primary {
  background: linear-gradient(135deg, var(--purple-2), var(--purple));
  color: #fff;
}
.vc-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(111, 95, 151, 0.28); }
.vc-btn--soft {
  background: var(--lav-2);
  color: var(--purple);
}
.vc-btn--soft:hover { background: #e6def5; }
.vc-btn--line { background: #fff; border: 1px solid var(--purple-2); color: var(--purple); }
.vc-btn--line:hover { background: var(--lav); }
.vc-btn--danger { background: var(--danger); color: #fff; }
.vc-btn--danger:hover { filter: brightness(1.05); box-shadow: 0 8px 20px rgba(192, 85, 111, 0.25); }
.vc-btn:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }

/* 입력칸 — 랜딩 상담 신청 창의 .cs-input. 16px 이상(아이폰 확대 방지) */
.vc-input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.vc-input::placeholder { color: var(--placeholder); }
.vc-input:focus { outline: none; border-color: var(--purple-2); box-shadow: 0 0 0 3px var(--lav-2); }
.vc-input--box { border-radius: 10px; width: 100%; }
.vc-search { position: relative; }
.vc-search .vc-input { width: 240px; padding-left: 40px; }
.vc-search__icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--placeholder);
  pointer-events: none;
  display: inline-flex;
}

/* 세트 목록 머리줄 — 전체 선택 */
.vc-listbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 10px;
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

/* 체크박스 — 동그란 연보라 */
.vc-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex: none;
}
.vc-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vc-check__box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid #d9cef1;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.vc-check input:checked + .vc-check__box {
  background: var(--purple-2);
  border-color: var(--purple-2);
  color: #fff;
}
/* 일부만 선택 = 체크 대신 가로줄 */
.vc-check input:indeterminate + .vc-check__box {
  background: var(--lav-2);
  border-color: var(--purple-2);
}
.vc-check input:indeterminate + .vc-check__box svg { display: none; }
.vc-check input:indeterminate + .vc-check__box::before {
  content: "";
  width: 10px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--purple);
}
.vc-check input:focus-visible + .vc-check__box { box-shadow: 0 0 0 3px var(--lav-2); }

/* 세트 한 줄 — 랜딩 '홍보 채널'(.channel) 모양 */
.vc-sets { display: flex; flex-direction: column; gap: 10px; }
.vc-set {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.vc-set:hover { background: var(--lav); border-color: #ddd4ee; }
.vc-set.is-selected { background: var(--lav); border-color: var(--purple-2); }
/* 카드 수 배지 — 채널 아이콘 자리 */
.vc-set__badge {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #b4a3da, var(--purple-2));
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.vc-set__badge b { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.vc-set__badge small { font-size: 0.66rem; opacity: 0.9; }
/* 세트명·정보를 누르면 편집기로 */
.vc-set__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.vc-set__title {
  font-size: 1rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vc-set__body:hover .vc-set__title { color: var(--purple); }
.vc-set__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 0.8rem;
  color: var(--muted);
}
.vc-set__dot { opacity: 0.5; }
.vc-set__arrow { flex: none; color: var(--muted); font-size: 1.1rem; }
.vc-set:hover .vc-set__arrow { color: var(--purple-2); }

/* 반 이름 칩 — 랜딩 시간표의 반 색(.lesson--*)과 같은 색 */
/* 알약 칩 대신 작은 네모 점 + 글자 (2026-10-05) */
.vc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--c, var(--muted));
}
.vc-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c, var(--placeholder));
}
.vc-chip + .vc-chip { margin-left: 4px; }
.vc-chip--lav   { --c: #8a7ab5; }
.vc-chip--pink  { --c: #b87398; }
.vc-chip--blue  { --c: #6f8bb8; }
.vc-chip--amber { --c: #b8996f; }
.vc-chip--green { --c: #6f9f7f; }
.vc-chip--teal  { --c: #5f9a9f; }
.vc-chip--none  { color: var(--placeholder); font-weight: 400; }
.vc-chip--none::before { display: none; }

/* 비어 있을 때 — 랜딩 상담 접수 완료(.cs-done) 모양 */
.vc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 16px 40px;
}
.vc-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--lav-2);
  color: var(--purple);
}
.vc-empty__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.vc-empty__text { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }

/* 선택 도구 — 아래에 떠 있는 알약 (랜딩 상담 신청 버튼 .cs-fab 모양) */
.vc-selbar {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 32px);
  padding: 6px 6px 6px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-2), var(--purple));
  color: #fff;
  box-shadow: 0 8px 24px rgba(111, 95, 151, 0.32);
  transform: translate(-50%, 0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.vc-selbar.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px);
}
.vc-selbar__count { font-size: 0.92rem; font-weight: 500; margin-right: 10px; white-space: nowrap; }
.vc-selbar__btn {
  height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.12s ease;
}
.vc-selbar__btn:hover { background: rgba(255, 255, 255, 0.28); }
.vc-selbar__btn--danger { background: rgba(255, 255, 255, 0.92); color: var(--danger); }
.vc-selbar__btn--danger:hover { background: #fff; }
.vc-selbar__close {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.vc-selbar__close:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* ===== 확인 창 — 랜딩 상담 신청 창(.cs-modal / .cs-dialog) 모양 =====
   브라우저 기본 alert()/confirm()은 쓰지 않는다 (설계도 5-1) */
html.vc-lock, html.vc-lock body { overflow: hidden; }
.vc-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.vc-modal__backdrop { position: absolute; inset: 0; background: rgba(45, 35, 65, 0.45); }
.vc-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  max-height: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(50, 35, 80, 0.28);
  overflow: hidden;
  outline: none;
}
.vc-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line);
}
.vc-dialog__title { font-size: 1.1rem; font-weight: 700; }
.vc-dialog__close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.vc-dialog__close:hover { background: var(--lav); color: var(--purple); }
.vc-dialog__body { padding: 18px 22px 8px; overflow-y: auto; font-size: 0.92rem; }
.vc-dialog__foot { display: flex; gap: 8px; padding: 14px 22px 18px; }
.vc-dialog__foot .vc-btn { flex: 1; }
.vc-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.vc-label { font-size: 0.85rem; font-weight: 500; color: var(--purple); }
.vc-err { font-size: 0.8rem; color: var(--danger); min-height: 1.3em; }
.vc-del-list {
  margin: 4px 0 12px;
  padding: 10px 14px;
  background: var(--lav);
  border-radius: 12px;
  max-height: 180px;
  overflow-y: auto;
}
.vc-del-list li { padding: 3px 0; font-weight: 500; }
.vc-del-list li::before { content: "· "; color: var(--purple-2); }
.vc-warn {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #fbeef1;
  color: #a2475e;
  font-size: 0.86rem;
  line-height: 1.6;
}
.vc-note { font-size: 0.84rem; color: var(--muted); margin-bottom: 10px; }

/* 짧은 알림 */
.vc-toast {
  position: fixed;
  left: 50%;
  top: 84px;
  z-index: 120;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(61, 58, 74, 0.92);
  color: #fff;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(50, 35, 80, 0.2);
  transform: translate(-50%, -8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  max-width: calc(100% - 32px);
  text-align: center;
}
.vc-toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ===== 푸터 — 랜딩과 같음 ===== */
.vc-footer { background: var(--purple); color: rgba(255, 255, 255, 0.85); }
.vc-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ===== 좁은 화면 ===== */
@media (max-width: 860px) {
  .vc-intro { grid-template-columns: 1fr; align-items: start; padding-top: 36px; }
  .vc-stats { width: 100%; }
  .vc-stat { flex: 1; min-width: 0; }
}
@media (max-width: 640px) {
  .vc-section { padding: 0 16px; }
  .vc-header__inner { padding: 0 16px; }
  .vc-header__tag { left: 16px; }
  .vc-header__btn { right: 16px; padding: 6px 12px; font-size: 0.82rem; }
  .vc-card { padding: 20px 16px 22px; border-radius: 16px; }
  .vc-card__tools { width: 100%; }
  .vc-search { flex: 1; }
  .vc-search .vc-input { width: 100%; }
  .vc-set { padding: 12px; gap: 10px; }
  .vc-set__badge { width: 42px; height: 42px; }
  .vc-selbar { padding-left: 14px; }
  .vc-selbar__count { margin-right: 4px; }
  .vc-selbar__btn { padding: 0 10px; font-size: 0.82rem; }
  .vc-modal { padding: 16px; }
}
@media (max-width: 420px) {
  .vc-header__tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vc-selbar, .vc-toast, .vc-btn { transition: none; }
}
