/* 블로그 참여 위젯(조회수·좋아요·댓글) 스킨 — A안 카드형(.eg--a) · B안 라인형(.eg--b) */

.eg { margin: 48px 0 0; font-family: inherit; letter-spacing: -0.01em; }
.eg *, .eg *::before, .eg *::after { box-sizing: border-box; }
.eg button, .eg input, .eg textarea { font-family: inherit; letter-spacing: inherit; }

/* ── 좋아요 ───────────────────────────────── */
.eg-heart { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; cursor: pointer; font-weight: 800; }
.eg-heart b { font-variant-numeric: tabular-nums; }
.eg-heart:hover { border-color: var(--accent); color: var(--accent); }
.eg-heart.on { border-color: var(--accent); background: var(--accent); color: #fff; }

/* ── 댓글 공통 ────────────────────────────── */
.eg-h { font-size: 18px; font-weight: 800; color: var(--ink); margin: 0 0 14px; }
.eg-h b { color: var(--accent); }
.eg-list { list-style: none; margin: 0; padding: 0; }
.eg-empty { color: var(--muted); font-size: 14.5px; padding: 26px 0; text-align: center; }
.eg-name { font-weight: 800; color: var(--ink); font-size: 14.5px; }
.eg-tag { display: inline-block; margin-left: 6px; font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 1px 5px; vertical-align: 1px; }
.eg-date { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.eg-text { font-size: 15px; line-height: 1.75; color: #24262c; margin: 8px 0 0; white-space: pre-wrap; word-break: break-word; }
.eg-acts { display: flex; gap: 12px; margin-top: 10px; }
.eg-acts button { border: none; background: none; padding: 0; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 700; }
.eg-acts button:hover { color: var(--ink); }
.eg-acts .eg-adm { color: var(--accent); }
.eg-replies { list-style: none; }
.eg-replies ul { list-style: none; margin: 0; padding: 0; }

/* 폼 */
.eg-form { margin: 0; }
.eg-fields { display: flex; gap: 10px; margin-bottom: 10px; }
.eg-f { flex: 1; display: block; }
.eg-f span { display: block; font-size: 12.5px; font-weight: 700; color: var(--gray); margin-bottom: 5px; }
.eg input, .eg textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 14.5px; color: var(--ink); background: #fff; }
.eg input:focus, .eg textarea:focus { outline: none; border-color: var(--ink); }
.eg textarea { resize: vertical; line-height: 1.7; }
.eg-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.eg-cnt { font-size: 12.5px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.eg-pw { flex: none; width: 140px; }
.eg-btns { margin-left: auto; display: flex; gap: 8px; }
.eg-submit { border: none; background: var(--ink); color: #fff; border-radius: 10px; padding: 11px 20px; font-size: 14px; font-weight: 800; cursor: pointer; }
.eg-submit:hover { background: var(--accent); }
.eg-cancel { border: 1.5px solid var(--line); background: #fff; color: var(--gray); border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 700; cursor: pointer; }
.eg-err { color: var(--accent); font-size: 13px; font-weight: 700; margin: 8px 0 0; }
.eg-open { width: 100%; border: 1.5px dashed var(--line); background: #fff; color: var(--gray); border-radius: 12px; padding: 14px; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.eg-open:hover { border-color: var(--ink); color: var(--ink); }
.eg-admin { margin-top: 18px; display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.eg-admin span { font-size: 12.5px; color: var(--accent); font-weight: 700; }
.eg-admin button { border: none; background: none; color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0; }

/* ── A안: 카드형 ──────────────────────────── */
.eg--a .eg-like { text-align: center; border: 1px solid var(--line); border-radius: 18px; padding: 30px 20px; background: var(--soft); }
.eg--a .eg-heart { padding: 14px 26px; font-size: 17px; }
.eg--a .eg-like-t { font-size: 13.5px; color: var(--gray); margin: 12px 0 0; font-weight: 600; }
.eg--a .eg-cmts { margin-top: 34px; }
.eg--a .eg-form { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; }
.eg--a .eg-list { margin-top: 18px; }
.eg--a .eg-c { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 12px; background: #fff; }
.eg--a .eg-c-head { display: flex; align-items: center; gap: 10px; }
.eg--a .eg-av { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.eg--a .eg-date { margin-left: auto; }
.eg--a .eg-text { padding-left: 44px; }
.eg--a .eg-acts { padding-left: 44px; }
.eg--a .eg-replies { position: relative; margin: -4px 0 12px 28px; }
.eg--a .eg-c--reply { background: var(--soft); border-color: transparent; margin-bottom: 8px; }
.eg--a .eg-slot:not(:empty) { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ── B안: 라인형 ──────────────────────────── */
.eg--b .eg-like { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.eg--b .eg-heart { padding: 9px 16px; font-size: 14.5px; }
.eg--b .eg-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 700; }
.eg--b .eg-meta:first-of-type { margin-left: 4px; }
.eg--b .eg-meta b { color: var(--gray); font-variant-numeric: tabular-nums; }
.eg--b .eg-cmts { margin-top: 28px; }
.eg--b .eg-c { padding: 18px 0; border-bottom: 1px solid var(--line); }
.eg--b .eg-c-head { display: flex; align-items: baseline; gap: 8px; }
.eg--b .eg-date { margin-left: auto; }
.eg--b .eg-c--reply { padding-left: 18px; border-left: 2px solid var(--line); border-bottom: none; padding-bottom: 6px; }
.eg--b .eg-replies { margin: 0 0 10px; }
.eg--b .eg-form { margin-top: 18px; }
.eg--b .eg-fields { max-width: 420px; }
.eg--b .eg-slot:not(:empty) { margin-top: 12px; }
.eg--b .eg-list { margin-top: 6px; }

@media (max-width: 560px) {
  .eg-fields { flex-direction: column; gap: 8px; }
  .eg-pw { width: 100%; }
  .eg-btns { margin-left: 0; width: 100%; }
  .eg-btns button { flex: 1; }
  .eg--a .eg-text, .eg--a .eg-acts { padding-left: 0; }
  .eg--a .eg-replies { margin-left: 14px; }
  .eg--b .eg-like { flex-wrap: wrap; }
}
