@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: 20px;
       display: flex;
       gap: 6px;
       justify-content: center;
       align-items: center;
   }

   .page-btn {
       min-width: 32px;
       height: 32px;
       padding: 0 8px;
       border-radius: 999px;
       border: 1px solid #d0d5e6;
       background: #fff;
       font-size: 13px;
       cursor: pointer;
       display: inline-flex;
       justify-content: center;
       align-items: center;
       color: #333f6b;
       text-decoration: none;
   }

   .page-btn:hover {
       background: #eef3ff;
   }

   .page-btn.active {
       background: #3f6cff;
       color: #fff;
       border-color: #3f6cff;
       font-weight: 600;
   }

   .page-btn.disabled {
       opacity: 0.4;
       cursor: default;
       pointer-events: none;
   }
   
   .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;
   }
   
   /* 제목 + 자물쇠 아이콘 정렬 */
.title-cell .title-link {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* 제목과 자물쇠 사이 간격 */
}

/* 자물쇠 스타일 */
.secret-icon {
    font-size: 14px;
    color: #ef4444; /* 살짝 눈에 띄는 빨간 계열 */
}

/* 🔹 상단 주요 공지 카드 제목 링크 */
.update-featured-card .featured-title a {
    display: inline-block;
    text-decoration: none;
    color: #111827;             /* 기본 진한 글자색 */
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: color 0.15s ease, transform 0.15s ease;
}

/* 방문 여부와 관계없이 같은 색상 유지 */
.update-featured-card .featured-title a:link,
.update-featured-card .featured-title a:visited {
    color: #111827;
}

/* 호버 시만 살짝 강조 */
.update-featured-card .featured-title a:hover {
    color: #4f46e5;             /* 살짝 포인트 컬러 */
    transform: translateY(-1px);
}

/* 🔹 공지 목록 테이블 제목 링크 */
.board-table .title-cell .title-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #111827;
    font-weight: 500;
    max-width: 100%;
}

/* 방문 여부와 상관없이 동일한 색 */
.board-table .title-cell .title-link:link,
.board-table .title-cell .title-link:visited {
    color: #111827;
}

/* 호버 시 */
.board-table tbody tr:hover .title-cell .title-link {
    color: #4f46e5;
}

/* 보드 메인 안의 링크 공통 정리 */
.board-main a {
    text-decoration: none;
    color: inherit;
}

.board-main a:hover {
    text-decoration: none;
}