@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 {
    width: 1320px;
    margin: 0 auto;
}

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

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

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

.board-title-wrap .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 {
    width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    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;
}

/* ========================
   상단 주요 업데이트 카드
   ======================== */

.update-featured-section {
    padding: 10px 0 12px;
}

.update-featured-card {
    border-radius: 18px;
    padding: 18px 20px 16px;
    background: rgba(255,255,255,0.95);
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 32px rgba(148,163,184,0.5);
}

.badge-line {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 11px;
    padding: 3px 9px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #4b5563;
}

.badge-type {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.badge-new {
    border-color: #fed7aa;
    background: #fffbeb;
    color: #ea580c;
}

.update-featured-card .featured-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.update-featured-card .featured-desc {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
}

.update-featured-card .featured-meta {
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}

.featured-meta .divider {
    margin: 0 6px;
}

/* ========================
   업데이트 목록 테이블
   ======================== */

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

.board-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.96);
    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;
}

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

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

/* 구분 태그 */

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #4b5563;
}

.tag.pin {
    border-color: #f97316;
    background: #fff7ed;
    color: #ea580c;
}

.tag.type-patch {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.tag.type-system {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #15803d;
}

.tag.type-event {
    border-color: #f9a8d4;
    background: #fdf2f8;
    color: #be185d;
}

.tag.type-etc {
    border-color: #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
}

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

/* NEW 작은 뱃지 */
.badge-mini {
    display: inline-block;
    margin-left: 6px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

/* 날짜/조회수 컬럼 */
.board-table td:nth-child(3),
.board-table td:nth-child(4),
.board-table th:nth-child(3),
.board-table th:nth-child(4) {
    text-align: center;
    white-space: nowrap;
}

/* ========================
   페이징
   ======================== */

.pagination {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.page-btn {
    min-width: 32px;
    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);
}