/* Copyright © 2026 Barrett Kim. All rights reserved. Unauthorized modification, reproduction, or redistribution is prohibited. */
/* 건의게시판 (board.js가 그림) */
.bd { padding-top: clamp(28px, 4vw, 44px); padding-bottom: 120px; }
.bd .wrap { max-width: 920px; }
.lcd { cursor: default; }

/* 머리 */
.bd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bd-head h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -.02em; }
.bd-head p { color: var(--muted); margin-top: 4px; }
.bd-from { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--blue-tint); color: var(--blue); font-size: 13px; font-weight: 600; }
.bd-from button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .08); color: inherit; cursor: pointer; line-height: 1; }

/* 거르기 */
.bd-filters { display: grid; gap: 10px; margin: 22px 0 14px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); color: var(--text-2); font-size: 13px; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { border-color: transparent; background: var(--text); color: var(--bg); font-weight: 600; }
.bd-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bd-tools select, .bd-tools input[type="search"], .bd-form select, .bd-form input[type="text"], .bd-form textarea, .bd-admin select, .bd-admin textarea, .bd-admin input {
  font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 9px; padding: 7px 10px;
}
.bd-tools input[type="search"] { flex: 1; min-width: 160px; }
.bd-tools .opt { font-size: 13px; align-items: center; }

/* 목록 */
.bd-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: var(--shadow-card); }
.bd-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); color: var(--text); cursor: pointer; }
.bd-row:first-child { border-top: 0; }
.bd-row:hover { background: var(--section-alt); text-decoration: none; }
.bd-row .t { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; }
.bd-row .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-row .m { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.bd-row .r { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.bd-row .r svg, .bd-row .t svg { width: 13px; height: 13px; flex: none; }
.bd-row .t svg { color: var(--muted); }
.bd-row.secret .t { font-weight: 500; }
.bd-row.hid { opacity: .55; }
.bd-empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.bd-more { margin-top: 12px; text-align: center; color: var(--muted); font-size: 13px; }

/* 상태 배지 */
.st { flex: none; display: inline-block; min-width: 54px; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 650; text-align: center; white-space: nowrap; }
.st-open { background: var(--surface-3); color: var(--text-2); }
.st-review { background: var(--blue-tint); color: var(--blue); }
.st-planned { background: rgba(120, 90, 220, .14); color: #6a4fd0; }
.st-doing { background: var(--amber-tint); color: var(--amber); }
.st-done { background: var(--green-tint); color: var(--green); }
.st-hold { background: rgba(0, 0, 0, .07); color: var(--muted); }
.st-dup { background: rgba(0, 0, 0, .05); color: var(--muted); text-decoration: line-through; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; background: var(--section-alt); color: var(--text-2); font-size: 12px; }
.tag.lock { background: rgba(0, 0, 0, .06); }
.tag.hidden { background: var(--red-tint); color: var(--red); }
.tag svg { width: 12px; height: 12px; }

/* 글 */
.bd-back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; cursor: pointer; }
.bd-post { margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: var(--shadow-card); overflow: hidden; }
.bd-post-h { padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.bd-post-h .tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bd-post-h h2 { margin-top: 12px; font-size: 24px; letter-spacing: -.015em; line-height: 1.3; }
.bd-post-h .m { margin-top: 8px; color: var(--muted); font-size: 13px; }
.bd-reply { margin: 18px 24px 0; padding: 14px 16px; border-radius: 12px; background: var(--blue-tint); }
.bd-reply b { display: flex; align-items: center; gap: 6px; color: var(--blue); font-size: 13px; }
.bd-reply b svg { width: 14px; height: 14px; }
.bd-reply p { margin-top: 6px; white-space: pre-wrap; line-height: 1.6; }
.bd-reply small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.bd-body { padding: 18px 24px 4px; white-space: pre-wrap; line-height: 1.7; overflow-wrap: anywhere; }
.bd-imgs { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 24px 4px; }
.bd-imgs figure { position: relative; margin: 0; }
.bd-imgs img { display: block; width: 180px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; background: var(--section-alt); }
.bd-imgs .del { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(215, 0, 21, .9); color: #fff; cursor: pointer; }
.bd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 24px 22px; }
.bd-actions .sp { flex: 1; }
.bd-vote { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.bd-vote svg { width: 15px; height: 15px; }
.bd-vote[aria-pressed="true"] { border-color: transparent; background: rgba(255, 59, 48, .12); color: var(--red); }
.bd-vote:disabled { opacity: .5; cursor: default; }
.linkbtn { border: 0; background: none; padding: 4px 6px; color: var(--link); font: inherit; font-size: 14px; cursor: pointer; }
.linkbtn.muted { color: var(--muted); }
.bd-locked { display: grid; justify-items: center; gap: 8px; padding: 46px 24px; text-align: center; color: var(--muted); }
.bd-locked svg { width: 34px; height: 34px; color: var(--text-2); }
.bd-locked b { color: var(--text); font-size: 16px; }

/* 관리자 줄 */
.bd-admin { margin-top: 16px; padding: 16px 18px; border: 1px dashed var(--amber); border-radius: 14px; background: var(--amber-tint); }
.bd-admin h4 { font-size: 13px; color: var(--amber); }
.bd-admin .rowf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.bd-admin textarea { width: 100%; min-height: 84px; margin-top: 10px; resize: vertical; }
.bd-admin input[type="number"] { width: 90px; }

/* 글쓰기 */
dialog.bd-sheet { width: min(620px, calc(100vw - 24px)); }
.bd-form { display: grid; gap: 14px; }
.bd-form label > span, .bd-form .lbl { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.bd-form input[type="text"], .bd-form textarea, .bd-form select { width: 100%; }
.bd-form textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.bd-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bd-form .count { float: right; font-weight: 400; color: var(--muted); }
.kinds { display: flex; gap: 6px; flex-wrap: wrap; }
.sim { padding: 10px 12px; border-radius: 10px; background: var(--section-alt); font-size: 13px; }
.sim b { display: block; margin-bottom: 4px; color: var(--text-2); }
.sim a { display: block; padding: 2px 0; }
.drop { display: grid; gap: 10px; padding: 14px; border: 2px dashed var(--line-strong); border-radius: 12px; text-align: center; color: var(--muted); font-size: 13px; }
.drop.over { border-color: var(--blue); background: var(--blue-tint); }
.drop .pick { color: var(--link); cursor: pointer; text-decoration: underline; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.thumb { position: relative; width: 150px; text-align: left; }
.thumb img { display: block; width: 150px; height: 100px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.thumb small { display: block; margin-top: 4px; font-size: 11px; line-height: 1.35; color: var(--muted); }
.thumb button { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; }
.secretbox { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--section-alt); }
.secretbox .warn { color: var(--amber); font-size: 13px; font-weight: 600; }
.fine { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.bd-radios { display: grid; gap: 8px; }

/* 이미지 크게 */
.bd-lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(0, 0, 0, .86); }
.bd-lightbox[hidden] { display: none; }
.bd-lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lb-x, .lb-nav { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; border-radius: 50%; }
.lb-x { top: 18px; right: 18px; width: 38px; height: 38px; font-size: 16px; }
.lb-nav { top: 50%; width: 44px; height: 44px; margin-top: -22px; font-size: 26px; line-height: 1; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-n { position: absolute; bottom: 18px; color: rgba(255, 255, 255, .8); font-size: 13px; }

@media (max-width: 680px) {
  .bd-row { grid-template-columns: minmax(0, 1fr) auto; }
  .bd-row > .st { grid-column: 1 / -1; justify-self: start; }
  .bd-post-h, .bd-body, .bd-actions, .bd-imgs { padding-left: 16px; padding-right: 16px; }
  .bd-reply { margin-left: 16px; margin-right: 16px; }
  .bd-imgs img { width: 140px; height: 96px; }
  .bd-form .two { grid-template-columns: 1fr; }
  dialog.bd-sheet { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
}

/* 첨부파일 */
.bd-files { display: grid; gap: 6px; margin: 14px 24px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--section-alt); }
.bd-files.locked { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.bd-files.locked svg { width: 15px; height: 15px; }
.bd-files .fl { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 0; border-top: 1px solid var(--line); overflow: hidden; }
.bd-files .fl:first-child { border-top: 0; }
.bd-files .fl b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.bd-files .fl small { flex: none; color: var(--muted); font-size: 12px; }
.bd-files .fl .sp { flex: 1; }
.bd-files .ext { flex: none; min-width: 38px; padding: 3px 5px; border-radius: 6px; background: var(--blue-tint); color: var(--blue); font: 700 10px/1.2 var(--font-mono); text-align: center; }
.bd-files .fine { margin-top: 2px; }
.bd-files.up { margin: 0; padding: 0; border: 0; background: none; text-align: left; }
.bd-files.up:empty { display: none; }
.bd-files .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--blue); transition: width .1s; }
@media (max-width: 680px) { .bd-files { margin-left: 16px; margin-right: 16px; } }

/* 새 플러그인 제안 */
.bd-new { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, rgba(91, 86, 201, .12), rgba(0, 113, 227, .08)); }
.bd-new b { display: block; font-size: 15px; }
.bd-new span { color: var(--text-2); font-size: 13.5px; }
.newtag { color: #5b56c9; font-weight: 650; }
.tag.newtag { background: rgba(91, 86, 201, .12); }

.bd-noreply { margin: 14px 24px 0; }
@media (max-width: 680px) { .bd-noreply { margin-left: 16px; margin-right: 16px; } }

/* 실제 게시판에서 더한 것 */
.bd-note { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--amber-tint); color: var(--amber); font-size: 13.5px; }
.bd-note button { margin-left: 6px; }
.bd-loading { padding: 40px 0; text-align: center; color: var(--muted); }
.bd-err { color: var(--red); font-size: 13.5px; min-height: 1em; }
.bd-mfa { display: grid; gap: 12px; justify-items: center; text-align: center; }
.bd-mfa img { width: 190px; height: 190px; background: #fff; border-radius: 10px; padding: 8px; }
.bd-mfa code { font-size: 12px; word-break: break-all; }
.bd-up { display: grid; gap: 6px; }
.bd-up .row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.bd-up .row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.bd-up progress { width: 120px; }
.board-links { margin-top: 18px; font-size: 15px; }
