/* ===============================
   자유게시판 전용 CSS
   파일: app/static/css/board_free.css
   =============================== */

/* 기본 컨테이너 */
.board-free { max-width: 1000px; margin: 0 auto; }

/* 글쓰기 버튼 & 등록 버튼 */
.board-free .btn,
.board-free .write-btn,
.board-free button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  border: none;
  cursor: pointer;

  /* ✅ nav.png 실사 사진을 버튼 배경으로 */
  background: url("/static/images/banners/nav.png") center/cover no-repeat;

  /* fallback 색상 */
  background-color: #2563eb;

  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.board-free .btn:hover,
.board-free .write-btn:hover,
.board-free button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.board-free .btn:active,
.board-free .write-btn:active,
.board-free button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* 리스트 테이블 */
.board-free table.board-list {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
.board-free table.board-list th {
  background: #f3f4f6;
  padding: 8px;
}
.board-free table.board-list td {
  border-bottom: 1px solid #f1f5f9;
  padding: 8px;
  text-align: center;
}
.board-free table.board-list td.title {
  text-align: left;
}

/* 상세 본문 */
.board-free .board-detail-body {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 댓글 영역 */
.board-free .comment-list {
  list-style: none;
  margin: 0; padding: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.board-free .comment-item { padding: 12px; border-bottom: 1px solid #f1f5f9; }
.board-free .comment-item:last-child { border-bottom: none; }

.board-free .comment-body { text-align: left; }
.board-free .comment-meta {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 4px;
}

/* 반응형 */
@media (max-width: 768px) {
  .board-free table.board-list th,
  .board-free table.board-list td {
    font-size: 0.9rem;
    padding: 6px;
  }
}
/* ===== 자유게시판: 제목 칼럼 중앙 강제 ===== */
.board-free table.board-list th:nth-child(2),
.board-free table.board-list td.title {
  text-align: center !important;
}
/* 댓글 삭제 버튼 보이도록 조정 */
.board-free .comment-item form {
  display: inline-block;
  margin-top: 6px;
}

.board-free .comment-item form button {
  display: inline-block;
  background-image: url("/static/images/banners/nav.png");
  background-size: cover;
  background-position: center;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  transition: filter .15s ease, transform .15s ease;
}

.board-free .comment-item form button:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.board-free .comment-item form button:active {
  filter: brightness(0.9);
  transform: translateY(0);
}
/* 댓글 삭제 버튼 보이도록 조정 */
.board-free .comment-item form {
  display: inline-block;
  margin-top: 6px;
}

.board-free .comment-item form button {
  display: inline-block;
  background-image: url("/static/images/banners/nav.png");
  background-size: cover;
  background-position: center;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  transition: filter .15s ease, transform .15s ease;
}

.board-free .comment-item form button:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.board-free .comment-item form button:active {
  filter: brightness(0.9);
  transform: translateY(0);
}
/* 댓글 삭제 버튼은 우측 정렬 */
.comment-item form {
  text-align: right;
  margin-top: 6px;
}
/* ===== 댓글 삭제 버튼 우측 정렬 ===== */
.board-free .comment-actions {
  display: flex;
  justify-content: flex-end;  /* 오른쪽 끝으로 정렬 */
  margin-top: 6px;
}
.board-free .comment-actions .btn {
  margin-left: 8px;
}
/* QnA 리스트 테이블 확장 */
.board-qna table.qna-list {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;

  /* ✅ 시원하게 보이는 효과 */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-top: 16px;
}

.board-qna table.qna-list th,
.board-qna table.qna-list td {
  padding: 14px 16px;   /* ✅ 셀 높이 키우기 */
  font-size: 1rem;      /* ✅ 글자 크기 살짝 확대 */
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
}

/* 헤더 스타일 강화 */
.board-qna table.qna-list th {
  background: #f9fafb;  /* 기존보다 밝게 */
  font-weight: 700;
  font-size: 1.05rem;
}
