@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 10px;
}

.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;
    line-height: 1.6;
}

/* ========================
   검색 / 필터
======================== */

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

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

.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;
}

/* ========================
   길드 안내 카드
======================== */

.guild-info-card {
    margin-top: 10px;
    margin-bottom: 14px;
    padding: 16px 18px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.96);
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 26px rgba(148,163,184,0.45);
}

.guild-info-card h2 {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.guild-info-card p {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 6px;
}

.guild-info-card ul {
    margin-left: 14px;
    font-size: 12px;
    color: #6b7280;
    list-style: disc;
}

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

.board-list-section {
    padding: 4px 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;
}

/* 상단 강조 행 (고정/인기 길드 등) */
.row-pin {
    background: #fffdf7;
}

/* 제목 영역 */
.title-cell a {
    color: #111827;
    text-decoration: none;
    font-weight: 500;
}

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

.title-meta {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* 서버 태그 */
.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;
}

.server-frost {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.server-abyss {
    border-color: #c4b5fd;
    background: #f5f3ff;
    color: #6d28d9;
}

.server-legacy {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

/* 길드 성향 라벨 */
.label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
}

.label-raid {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.label-hardcore {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.label-casual {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #15803d;
}

.label-social {
    border-color: #f9a8d4;
    background: #fdf2f8;
    color: #be185d;
}

.label-voice {
    border-color: #c4b5fd;
    background: #f5f3ff;
    color: #6d28d9;
}

.label-relax {
    border-color: #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
}

/* 날짜/조회수 중앙 정렬 */
.board-table td:nth-child(4),
.board-table td:nth-child(5),
.board-table th:nth-child(4),
.board-table th:nth-child(5) {
    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: 130px;
    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;
}