@charset "UTF-8";

/* 공통 폰트 */
body {
    font-family: 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body.board-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, #e0f2fe 0%, transparent 55%),
        radial-gradient(circle at 90% 0%, #fef3c7 0%, transparent 60%),
        linear-gradient(to bottom, #eff6ff 0%, #e5e7eb 70%, #e5e7eb 100%);
    color: #111827;
    padding-top: 76px; /* 고정 헤더 높이 */
}

.page {
    min-width: 1320px;
}

.board-main {
    padding-bottom: 60px;
}

.board-inner,
.board-header-inner,
.board-toolbar-inner {
    width: 1320px;
    margin: 0 auto;
}

/* ========================
   상단 헤더 영역
======================== */

.board-header {
    padding: 26px 0 14px;
}

.board-header-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-end;
}

.breadcrumb {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.board-title-wrap h1 {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

.board-title-wrap .board-desc {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

/* 상단 탭 (자유/스크린샷/팬아트 등) */
.board-tabs {
    display: flex;
    gap: 8px;
}

.board-tabs button {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    font-size: 12px;
    background: rgba(255,255,255,0.9);
    color: #4b5563;
    cursor: pointer;
    white-space: nowrap;
}

.board-tabs button.active {
    border-color: transparent;
    background: linear-gradient(135deg,#6366f1,#f97316);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(99,102,241,0.35);
}

/* ========================
   검색 / 툴바
======================== */

.board-toolbar-section {
    padding: 10px 0 8px;
}

.board-toolbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.board-count {
    font-size: 13px;
    color: #4b5563;
}

.board-count span {
    font-weight: 700;
    color: #111827;
}

.board-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.board-search select,
.board-search input {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 7px 12px;
    font-size: 13px;
    background: rgba(255,255,255,0.96);
    outline: none;
    color: #111827;
}

.board-search input {
    min-width: 220px;
}

.board-search input::placeholder {
    color: #9ca3af;
}

.board-search button {
    border-radius: 999px;
    border: none;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: #111827;
    color: #f9fafb;
}

/* ========================
   리스트 테이블
======================== */

.board-list-section {
    padding: 10px 0 26px;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.97);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 28px rgba(148,163,184,0.45);
    font-size: 13px;
}

.board-table thead {
    background: #f3f4f6;
}

.board-table th,
.board-table td {
    padding: 10px 12px;
    text-align: left;
}

.board-table th {
    font-size: 12px;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.board-table tbody tr + tr {
    border-top: 1px solid #e5e7eb;
}

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

/* 번호 칸 */
.board-table td.no,
.board-table th:first-child {
    text-align: center;
    white-space: nowrap;
}

/* 제목 칸 */
.title-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-cell a {
    color: #111827;
    text-decoration: none;
}

.title-cell a:hover {
    text-decoration: underline;
}

/* 상단 고정(공지) 행 */
.row-pin {
    background: #fffdf7;
}

/* 카테고리 태그 (잡담/질문/자랑/공략 등) */
.category-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
    white-space: nowrap;
}

/* 댓글 수 뱃지 */
.comment-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 11px;
    background: #e5edff;
    color: #1d4ed8;
}

/* 날짜/조회수/추천 컬럼 중앙정렬 */
.board-table td:nth-child(4),
.board-table td:nth-child(5),
.board-table td:nth-child(6),
.board-table th:nth-child(4),
.board-table th:nth-child(5),
.board-table th:nth-child(6) {
    text-align: center;
    white-space: nowrap;
}

/* ========================
   페이징 + 글쓰기 버튼
======================== */

.board-bottom-bar {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination {
    flex-grow: 1;
    display: flex;
    justify-content: center; /* ⭐ 중앙 정렬 */
    gap: 4px;
}

.page-btn {
    min-width: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 12px;
    cursor: pointer;
    color: #4b5563;
}

.page-btn.active {
    border-color: transparent;
    background: linear-gradient(135deg,#6366f1,#f97316);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(99,102,241,0.35);
}

.page-btn:hover:not(.active) {
    background: #f3f4f6;
}

/* 글쓰기 버튼 */
.write-wrap {
    min-width: 100px; /* 여백 확보 */
    display: flex;
    justify-content: flex-end;
}

.btn-write {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    background: #111827;
    color: #f9fafb;
}