/* Selah 피드백 게시판 — style.css 의 :root 변수(vellum/gold/ink)를 재사용 */

.board-wrap {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 20px 96px;
}

/* ── 헤더 ── */
.board-hero { margin-bottom: 28px; }
.board-hero-nav { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.board-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vellum-dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.board-back:hover { color: var(--gold-bright); }
.board-title h1 {
  font-family: "Cormorant Garamond", "Gowun Batang", serif;
  font-size: 40px;
  font-weight: 500;
  color: var(--vellum);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}
.board-title p { color: var(--vellum-dim); font-size: 14px; margin: 0; }

/* ── 툴바 ── */
.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.board-tabs { display: flex; gap: 6px; }
.tab {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--vellum-dim);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s;
}
.tab:hover { border-color: var(--gold-line); color: var(--vellum-2); }
.tab.active {
  background: var(--gold-soft);
  border-color: var(--gold-line);
  color: var(--gold-bright);
}

/* ── 버튼 ── */
.btn-primary, .btn-ghost, .btn-danger {
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--ink-deep);
  font-weight: 600;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--vellum-2);
}
.btn-ghost:hover { border-color: var(--gold-line); color: var(--vellum); }
.btn-danger {
  background: transparent;
  border-color: rgba(165, 74, 90, 0.4);
  color: var(--wine);
  margin-right: auto;
}
.btn-danger:hover { background: var(--wine-bg); }

/* ── 목록 ── */
.board-list { display: flex; flex-direction: column; gap: 10px; }
.board-empty { color: var(--vellum-faint); text-align: center; padding: 48px 0; }

.post-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.16s;
}
.post-card:hover { border-color: var(--gold-line); background: var(--ink-3); }
.post-cat {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid var(--hairline-strong);
  color: var(--vellum-2);
}
.post-cat.bug { color: var(--wine); border-color: rgba(165, 74, 90, 0.3); }
.post-cat.feature { color: var(--moss); border-color: rgba(122, 153, 129, 0.3); }
.post-main { flex: 1; min-width: 0; }
.post-title {
  color: var(--vellum);
  font-size: 15px;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-sub { color: var(--vellum-faint); font-size: 12px; display: flex; gap: 8px; }
.post-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-open { color: var(--vellum-dim); border: 1px solid var(--hairline-strong); }
.status-planned { color: var(--gold-bright); border: 1px solid var(--gold-line); }
.status-done { color: var(--moss); border: 1px solid rgba(122, 153, 129, 0.4); }
.status-wontfix { color: var(--vellum-faint); border: 1px solid var(--hairline); text-decoration: line-through; }
.post-lock { color: var(--gold); font-size: 13px; }
.post-reply-dot { color: var(--gold-bright); font-size: 12px; }

/* ── 모달 ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}
.modal-overlay[hidden] { display: none; }
.modal {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--hairline-strong);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--hairline);
}
.modal-head h2 {
  margin: 0;
  font-size: 19px;
  color: var(--vellum);
  font-weight: 500;
  word-break: break-word;
}
.modal-x {
  background: none;
  border: none;
  color: var(--vellum-dim);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.modal-x:hover { color: var(--vellum); }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--hairline);
}

/* ── 폼 ── */
.field-row { margin-bottom: 14px; }
.seg { display: inline-flex; border: 1px solid var(--hairline-strong); border-radius: 10px; overflow: hidden; }
.seg-btn {
  background: transparent;
  border: none;
  color: var(--vellum-dim);
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.seg-btn.active { background: var(--gold-soft); color: var(--gold-bright); }
.inp {
  width: 100%;
  box-sizing: border-box;
  background: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  color: var(--vellum);
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 12px;
}
.inp:focus { outline: none; border-color: var(--gold-line); }
.inp::placeholder { color: var(--vellum-faint); }
.ta { min-height: 160px; resize: vertical; line-height: 1.6; }
.field-two { display: flex; gap: 12px; }
.field-two .inp { margin-bottom: 12px; }
.chk { display: flex; align-items: center; gap: 8px; color: var(--vellum-2); font-size: 13px; cursor: pointer; }
.chk input { accent-color: var(--gold); }
.form-hint {
  margin: -2px 0 14px;
  padding: 10px 12px;
  background: var(--gold-whisper);
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  color: var(--vellum-dim);
  font-size: 12.5px;
  line-height: 1.6;
}
.form-hint b { color: var(--gold-bright); font-weight: 600; }
.form-err { color: var(--wine); font-size: 13px; min-height: 18px; margin: 8px 0 0; }

/* ── 상세 ── */
.v-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--vellum-faint); font-size: 12px; margin-bottom: 16px; }
.v-body { color: var(--vellum-2); font-size: 15px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.v-reply {
  margin-top: 22px;
  padding: 16px;
  background: var(--gold-whisper);
  border: 1px solid var(--gold-line);
  border-radius: 12px;
}
.v-reply-label { color: var(--gold-bright); font-size: 12px; letter-spacing: 0.05em; margin-bottom: 8px; }
#v-reply-body { color: var(--vellum-2); font-size: 14px; line-height: 1.7; white-space: pre-wrap; }

@media (max-width: 560px) {
  .board-title h1 { font-size: 32px; }
  .field-two { flex-direction: column; gap: 0; }
  .board-toolbar { flex-direction: column; align-items: stretch; }
  .btn-primary#new-btn { width: 100%; }
}
