/* ─────────────────────────────────────────────────────────────
   icons.css — SVG 아이콘 배선 전용 파일 (신규)

   ⚠ 이 파일은 아직 HTML에 연결되어 있지 않다.
      index.html   <head> 안, css/board.css   다음 줄에
      teacher.html <head> 안, css/teacher.css 다음 줄에
      각각 <link rel="stylesheet" href="css/icons.css"> 를 추가해야 적용된다.
      (board.css / teacher.css 보다 반드시 뒤에 와야 한다)

   ⚠ 이 파일이 대체하는 이모지 — JS/HTML에서 아래 글자를 지워야 중복되지 않는다.
      js/board.js  : 명단 배지 ✅ 📷 🥛   → .stu .badge (빈 span만 남길 것)
      js/board.js  : 버튼 라벨 📷 🥛 🐄   → .big 에 ic-full / ic-empty / ic-nomilk 클래스 추가
      index.html   : 톱니 버튼 ⚙          → 빈 <button class="gear"> 로
      (common.css 의 .cow-slot:empty::before '🐄' 는 젖소 담당자 몫 — 여기서 건드리지 않음)

   ⚠ 경로는 css/ 폴더 기준 상대경로이므로 ../assets/ 이다.
   ───────────────────────────────────────────────────────────── */


/* ── 1. 명단 배지 (board.css:130 .stu .badge 를 덮어쓴다) ──────────
   font-size → width/height 로 바꾼다. 컨테이너 쿼리 단위(cqh)는 유지되므로
   셀 크기에 따라 배지가 12~40px 사이에서 그대로 스케일된다. */
.roster .stu .badge {
  position: absolute;
  top: 6cqh;
  right: 6cqw;
  width: 18cqh;
  height: 18cqh;
  font-size: 0;            /* 혹시 이모지가 남아 있어도 보이지 않게 */
  line-height: 0;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.roster .stu[data-state="done"] .badge { background-image: url(../assets/badge-done.svg); }
.roster .stu[data-state="half"] .badge { background-image: url(../assets/badge-half.svg); }
.roster .stu[data-state="skip"] .badge { background-image: url(../assets/badge-skip.svg); }
.roster .stu[data-state="nocheck"] .badge { background-image: url(../assets/badge-skip.svg); }


/* ── 2. 하단 집계 .tally — 명단 배지 재사용 (신규 파일 0개) ────────── */
.bottom .tally.done::before,
.bottom .tally.half::before,
.bottom .tally.skip::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  margin-right: .35em;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.bottom .tally.done::before { background-image: url(../assets/badge-done.svg); }
.bottom .tally.half::before { background-image: url(../assets/badge-half.svg); }
.bottom .tally.skip::before { background-image: url(../assets/badge-skip.svg); }


/* ── 3. 큰 버튼 아이콘 (라벨 앞) ─────────────────────────────────
   makeBtn()이 textContent를 쓰므로 ::before 는 지워지지 않는다. */
.big.ic-full::before,
.big.ic-empty::before,
.big.ic-nomilk::before {
  content: '';
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.16em;
  margin-right: .45em;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.big.ic-full::before   { background-image: url(../assets/ic-pack-full.svg); }
.big.ic-empty::before  { background-image: url(../assets/ic-pack-empty.svg); }
.big.ic-nomilk::before { background-image: url(../assets/ic-nomilk.svg); }


/* ── 4. 촬영 가이드 (board.css:313 .guide / .guide.rect 를 덮어쓴다) ──
   점선 원·점선 사각 테두리를 없애고 SVG 오버레이로 교체한다.
   SVG가 4:3 캔버스 전체를 설계하므로 inset 은 0. */
.cam-box .guide {
  position: absolute;
  inset: 0;
  border: none;
  border-radius: 0;
  pointer-events: none;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url(../assets/guide-after.svg);
}
.cam-box .guide.rect {
  border-radius: 0;
  inset: 0;
  background-image: url(../assets/guide-before.svg);
}


/* ── 5. 교사 설정 톱니 (board.css:77 .gear 를 덮어쓴다) ────────────
   .gear.holding 규칙은 두지 않는다 — 길게 누르기 동작이 제거되어
   holding 상태가 더 이상 생기지 않으므로 파일을 하나 아끼는 편이 낫다. */
.top .gear {
  color: transparent;      /* 남아 있을 수 있는 ⚙ 글리프 숨김 */
  background-color: rgba(255,255,255,.7);
  background-image: url(../assets/ic-gear.svg);
  background-position: center;
  background-size: 48%;
  background-repeat: no-repeat;
}


/* ── 6. 촬영 예시 그림 (좋은 예 / 나쁜 예) ────────────────────────
   예상 마크업:
     <div class="examples">
       <figure class="ex good"><span class="ex-img" data-ex="after-good"></span>
         <figcaption>이렇게 찍어요</figcaption></figure>
       <figure class="ex bad"><span class="ex-img" data-ex="after-bad-upright"></span>
         <figcaption>입구가 안 보여요</figcaption></figure>
       ...
     </div>
   판정 표시(✓ / ✕)는 CSS ::after 문자다 — SVG 안에는 판정 표시가 없다. */
.examples {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(14px, 2.2vw, 34px);
  margin: clamp(6px, 1.2vh, 18px) 0;
}
.examples .ex {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5em;
  width: clamp(100px, 15vh, 140px);
  padding: clamp(8px, 1.2vh, 14px);
  border: 3px solid;
  border-radius: var(--r);
  background: rgba(255,255,255,.75);
  box-shadow: var(--shadow);
}
.examples .ex .ex-img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.examples .ex figcaption {
  font-size: clamp(13px, 1.9vh, 22px);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  letter-spacing: -0.02em;
}
.examples .ex::after {
  position: absolute;
  top: -.55em;
  right: -.45em;
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: clamp(14px, 1.9vh, 22px);
  font-weight: 900;
  line-height: 1;
  color: #FFFCF5;
}
.examples .ex.good            { border-color: var(--green); }
.examples .ex.good figcaption { color: var(--green-d); }
.examples .ex.good::after     { content: '\2713'; background: var(--green); }

.examples .ex.bad             { border-color: var(--red); }
.examples .ex.bad figcaption  { color: var(--ink-2); }
.examples .ex.bad::after      { content: '\2715'; background: var(--red); }

.ex-img[data-ex="after-good"]        { background-image: url(../assets/ex-after-good.svg); }
.ex-img[data-ex="after-bad-upright"] { background-image: url(../assets/ex-after-bad-upright.svg); }
.ex-img[data-ex="after-bad-left"]    { background-image: url(../assets/ex-after-bad-left.svg); }
.ex-img[data-ex="before-good"]       { background-image: url(../assets/ex-before-good.svg); }
.ex-img[data-ex="before-bad"]        { background-image: url(../assets/ex-before-bad.svg); }


/* ── 7. 교사 대시보드 빈 사진 자리 (teacher.css:207 .no-photo) ─────
   "없음" / "사진 정리됨" 글자는 그대로 두고 뒤에 옅은 그림만 깐다. */
.scard-photos .no-photo {
  background-image: url(../assets/ic-nophoto.svg);
  background-position: center 28%;
  background-size: 40px;
  background-repeat: no-repeat;
  padding-top: 30px;
}
