/* 네이버 카페 스타일 게시판 목록 */

.board-container {
  background: white;
  border-radius: 8px;
  margin: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* 게시판 헤더 */
.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid #f1f3f5;
  background: #fafbfc;
}

.board-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.board-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.board-count {
  font-size: 14px;
  color: #868e96;
  padding: 4px 12px;
  background: #e9ecef;
  border-radius: 12px;
}

.btn-write {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #03c75a;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-write:hover {
  background: #02b350;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(3, 199, 90, 0.3);
}

/* 게시글 목록 테이블 */
.board-list-wrapper {
  overflow-x: auto;
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.board-table thead {
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}

.board-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #495057;
  font-size: 13px;
}

.board-table tbody tr {
  border-bottom: 1px solid #f1f3f5;
  transition: background-color 0.2s;
}

.board-table tbody tr:hover {
  background-color: #f8f9fa;
}

.board-table tbody tr.notice {
  background-color: #fff5e1;
}

.board-table tbody tr.notice:hover {
  background-color: #fff0d4;
}

.board-table td {
  padding: 14px 16px;
  color: #495057;
  vertical-align: middle;
}

/* 열 너비 */
.col-number {
  width: 60px;
  text-align: center;
}

.col-title {
  width: auto;
  min-width: 300px;
}

.col-author {
  width: 120px;
}

.col-date {
  width: 100px;
}

.col-views {
  width: 60px;
  text-align: center;
}

.col-likes {
  width: 60px;
  text-align: center;
}

/* 제목 스타일 */
.post-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-title {
  color: #212529;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
}

.post-title:hover {
  color: #03c75a;
  text-decoration: underline;
}

.post-badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
  color: white;
}

.badge-notice {
  background: #ff6b6b;
}

.badge-new {
  background: #4c6ef5;
}

.badge-hot {
  background: #ff922b;
}

.comment-count {
  color: #03c75a;
  font-size: 12px;
  font-weight: 600;
  margin-left: 4px;
}

.has-image {
  color: #868e96;
  font-size: 16px;
  margin-left: 4px;
}

/* 작성자 */
.post-author {
  color: #495057;
  font-size: 13px;
}

/* 날짜 */
.post-date {
  color: #868e96;
  font-size: 13px;
}

/* 조회수/추천수 */
.post-views, .post-likes {
  color: #868e96;
  font-size: 13px;
  text-align: center;
}

/* 페이지네이션 */
.board-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 24px 20px;
}

.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 12px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #495057;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(.active):not(:disabled) {
  background: #f8f9fa;
  border-color: #adb5bd;
}

.page-btn.active {
  background: #03c75a;
  border-color: #03c75a;
  color: white;
  font-weight: 600;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-ellipsis {
  padding: 0 8px;
  color: #868e96;
}

/* 빈 상태 */
.board-empty {
  padding: 80px 20px;
  text-align: center;
  color: #868e96;
}

.board-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.board-empty-text {
  font-size: 16px;
  margin-bottom: 8px;
}

.board-empty-subtext {
  font-size: 14px;
  color: #adb5bd;
}

/* 로딩 상태 */
.loading-row td {
  padding: 60px 20px;
}

/* 반응형 */
@media (max-width: 768px) {
  .board-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .board-table {
    font-size: 12px;
  }

  .board-table th,
  .board-table td {
    padding: 10px 8px;
  }

  .col-number,
  .col-author,
  .col-date,
  .col-views,
  .col-likes {
    display: none;
  }

  .col-title {
    min-width: auto;
  }

  .btn-write {
    width: 100%;
    justify-content: center;
  }
}
