/* =====================================================================
   HWebGuard 의견 게시판 (R65) — 스타일
   ===================================================================== */
.board-section {
  padding: 80px 0 120px;
  min-height: calc(100vh - 200px);
}

.board-header {
  margin-bottom: 32px;
}
.board-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: #e3e9f1;
  margin: 0 0 8px;
}
.board-header p {
  color: #8b95a4;
  font-size: 15px;
  line-height: 1.6;
}

.board-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.board-count {
  color: #8b95a4;
  font-size: 13px;
  font-family: 'IBM Plex Mono', monospace;
}

/* 글 목록 카드 */
.post-card {
  display: block;
  padding: 16px 20px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s, border 0.15s, transform 0.1s;
}
.post-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(110, 231, 183, 0.2);
  transform: translateY(-1px);
}
.post-card-title {
  color: #e3e9f1;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-card-meta {
  color: #8b95a4;
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
}

.post-empty {
  padding: 60px 20px;
  text-align: center;
  color: #8b95a4;
  font-size: 14px;
}

/* 페이저 */
.board-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.board-pager button {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e3e9f1;
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
}
.board-pager button:hover:not(:disabled) {
  background: rgba(110, 231, 183, 0.12);
  border-color: rgba(110, 231, 183, 0.3);
}
.board-pager button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.pager-info {
  color: #8b95a4;
  font: 600 13px/1 'IBM Plex Mono', monospace;
  min-width: 60px;
  text-align: center;
}

/* 글 작성 폼 */
.board-form {
  max-width: 720px;
  margin-top: 20px;
}
.form-row {
  display: block;
  margin-bottom: 16px;
}
.form-label {
  display: block;
  color: #8b95a4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.board-form input[type=text],
.board-form input[type=email],
.board-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e3e9f1;
  font: 400 14px/1.5 'Noto Sans KR', 'Space Grotesk', sans-serif;
  padding: 10px 14px;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.board-form textarea {
  resize: vertical;
  min-height: 120px;
  font-family: 'Noto Sans KR', monospace;
}
.board-form input:focus,
.board-form textarea:focus {
  outline: none;
  border-color: rgba(110, 231, 183, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.form-msg {
  margin-top: 12px;
  font-size: 13px;
  color: #8b95a4;
}
.form-msg.is-error {
  color: #f87171;
}

/* honeypot — 화면에서 완전히 숨김 (봇은 채움) */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 글 상세 */
.post-detail {
  margin-top: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.post-detail h2 {
  color: #e3e9f1;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px;
}
.post-detail-meta {
  color: #8b95a4;
  font: 600 12px/1 'IBM Plex Mono', monospace;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.post-detail-body {
  color: #d1d8e0;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.post-detail-actions {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: flex-end;
}
.btn-sm {
  padding: 6px 12px !important;
  font-size: 12px !important;
}

/* 댓글 */
.comments-section {
  margin-top: 32px;
}
.comments-section h3 {
  color: #e3e9f1;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
}
.cmt-count {
  color: #8b95a4;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
}
.comment-item {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid rgba(110, 231, 183, 0.3);
  border-radius: 0 8px 8px 0;
  margin-bottom: 8px;
}
.comment-meta {
  color: #8b95a4;
  font: 600 11px/1 'IBM Plex Mono', monospace;
  margin-bottom: 6px;
}
.comment-body {
  color: #d1d8e0;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.comment-empty {
  padding: 20px;
  text-align: center;
  color: #8b95a4;
  font-size: 13px;
}

/* 상태 표시 */
.board-state {
  text-align: center;
  padding: 40px 20px;
  color: #8b95a4;
  font-size: 14px;
}
.state-error {
  color: #f87171;
}

@media (max-width: 760px) {
  .board-section {
    padding: 40px 0 80px;
  }
  .board-header h1 {
    font-size: 26px;
  }
  .board-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .form-actions {
    flex-direction: column-reverse;
  }
  .form-actions .btn {
    width: 100%;
  }
}
