﻿/* 게시판 목록 리뉴얼(2B 시안) 다크 테마 */
.list-page { background: #0a0e1f; color: #e8ecf7; font-family: 'Pretendard', system-ui, sans-serif; }

.list-grid { max-width: 1200px; margin: 0 auto; padding: 34px 32px 90px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; }
/* 메인 컬럼(그리드 아이템)이 콘텐츠보다 좁아질 수 있게 → 긴 제목이 목록 셀 안에서 줄바꿈 */
.list-grid > div { min-width: 0; }

/* 목록 헤더 */
.list-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.list-head .heading { font-family: 'Press Start 2P'; font-size: 14px; color: #e8ecf7; }
.list-head .tools { display: flex; align-items: center; gap: 12px; }
.list-head .total { font-size: 13px; color: #6f7ea8; font-family: monospace; }

/* 다크 폼 컨트롤 */
.prefix-select { padding: 8px 12px; border: 1px solid #23306a; border-radius: 8px; background: #0a0e1f; color: #c3cdec; font-size: 13px; outline: none; cursor: pointer; }
.prefix-select option { background: #0a0e1f; color: #c3cdec; }

/* 목록 (table → 반응형 div 리스트) */
.post-list { border-top: 2px solid #2c3c7e; }
.post-head, .post-item {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 13px 12px;
}
.post-head { background: #0c1230; border-bottom: 1px solid #23306a; font-size: 13px; font-weight: 700; color: #8da0d6; }
.post-item { border-bottom: 1px solid #1b2a4e; font-size: 13px; }
.post-item:hover { background: #0c1230; }
.post-item.is-notice { background: rgba(245,197,66,0.06); }

/* 전체공개가 아닌 글 — 공지 표시보다 뒤에 두어, 공지이면서 비공개인 줄은 공개 설정이
   이깁니다. 둘 중 더 알아야 하는 것이 "남에게 보이지 않는다" 쪽입니다.
   바탕만으로 가리기 어려운 화면을 위해 왼쪽에 띠를 함께 둡니다. */
.post-item.is-members { background: rgba(111,160,232,0.07); box-shadow: inset 3px 0 0 #2c3c7e; }
.post-item.is-private { background: rgba(226,132,111,0.08); box-shadow: inset 3px 0 0 #7a3f36; }
.post-item.is-members:hover { background: rgba(111,160,232,0.12); }
.post-item.is-private:hover { background: rgba(226,132,111,0.13); }
.post-empty { text-align: center; color: #6f7ea8; padding: 48px 12px; border-bottom: 1px solid #1b2a4e; }

.c-no { text-align: center; font-family: monospace; color: #6f7ea8; }
.notice-badge { font-size: 11px; font-weight: 700; background: #f5c542; color: #0a1130; padding: 3px 9px; border-radius: 5px; }

.c-subject { min-width: 0; text-align: left; }
.subject-link { text-decoration: none; display: inline-flex; align-items: flex-start; gap: 9px; color: #e8ecf7; font-size: 15px; font-weight: 500; min-width: 0; max-width: 100%; }
.subject-link > span { overflow-wrap: anywhere; }
.subject-link:hover { color: #f5c542; }
.post-item.is-notice .subject-link { color: #f5c542; font-weight: 700; }
.subject-muted { color: #6f7ea8; font-size: 15px; }
.reply-arrow { color: #6f7ea8; --mi: 14px; margin-right: 0; }
.cmt-count { font-size: 12px; font-family: monospace; color: #f5c542; font-weight: 700; margin-left: 6px; }

/* 메타(글쓴이·날짜·조회·추천) — 데스크톱은 고정폭으로 열 정렬 */
.c-meta { display: flex; align-items: center; }
.c-meta .c-writer { width: 96px; text-align: center; color: #a9b6df; }
.c-meta .c-date { width: 104px; text-align: center; font-family: monospace; color: #8da0d6; }
.c-meta .c-views, .c-meta .c-likes { width: 64px; text-align: center; font-family: monospace; color: #8da0d6; }
.m-label { display: none; }

/* 모바일: 헤더 숨기고 각 글을 카드형으로(제목 위 · 메타 아래) 리플로우 */
@media (max-width: 768px) {
	.post-head { display: none; }
	.post-item {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "subject" "meta";
		row-gap: 8px;
		column-gap: 10px;
		padding: 14px 12px;
	}
	/* 일련번호(번호)는 모바일에서 숨김 */
	.post-item .c-no { display: none; }
	.post-item .c-subject { grid-area: subject; }
	.post-item .c-meta { grid-area: meta; flex-wrap: wrap; gap: 6px 14px; }
	/* 공지글은 "공지" 배지를 유지 */
	.post-item.is-notice {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-areas: "no subject" "meta meta";
	}
	.post-item.is-notice .c-no { display: block; grid-area: no; }
	.c-meta .c-writer, .c-meta .c-date, .c-meta .c-views, .c-meta .c-likes { width: auto; }
	.m-label { display: inline; color: #6f7ea8; }
}

/* 하단 컨트롤 */
.list-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.list-controls .rss { font-size: 13px; color: #5f6f9f; font-family: monospace; padding: 9px 12px; }
.mbtn-gold { text-decoration: none; font-size: 14px; font-weight: 700; color: #0a1130; background: #f5c542; padding: 10px 20px; border-radius: 8px; border: 0; display: inline-block; cursor: pointer; }
.mbtn-gold:hover { background: #ffe48f; color: #0a1130; }

/* 페이지네이션(.pager)은 사이트 공용 site.css 로 이동됨 */

/* 하단 검색 — select · input · button 높이 통일(42px) */
.search-box { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 28px; }
.search-box select, .search-box input, .search-box .btn { height: 42px; box-sizing: border-box; }
.search-box select, .search-box input { padding: 0 14px; border: 1px solid #23306a; border-radius: 8px; background: #0a0e1f; color: #c3cdec; font-size: 13px; line-height: 1.5; outline: none; }
.search-box input { width: 260px; max-width: 60vw; }
/* select·button 은 줄지 않게(입력창만 flex), 버튼 글자는 한 줄 유지 */
.search-box select, .search-box .btn { flex: 0 0 auto; }
.search-box .btn { display: inline-flex; align-items: center; padding: 0 18px; background: #f5c542; color: #0a1130; border: 0; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.search-box .btn:hover { background: #ffe48f; color: #0a1130; }

/* 사이드바 */
.list-aside { display: flex; flex-direction: column; gap: 20px; }
.aside-card { border: 1px solid #23306a; border-radius: 12px; background: #111938; padding: 18px; }
.aside-title { font-family: 'Press Start 2P'; font-size: 12px; color: #f5c542; margin-bottom: 14px; }
.cat-list { display: flex; flex-direction: column; gap: 1px; }
.cat-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 7px; text-decoration: none; }
.cat-row:hover { background: #16235e; }
.cat-row .name { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #c3cdec; }
.cat-row .dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

@media (max-width: 900px) {
	/* 모바일: 단일 컬럼 + 좌우 여백 축소(32px → 14px)로 좁은 폭 확보 */
	.list-grid { grid-template-columns: minmax(0, 1fr); padding: 20px 14px 60px; }
	/* 하단에 노출되던 사이드바 카테고리 숨김 */
	.list-aside { display: none; }
	/* 하단 검색: 화면 폭에 꽉 차게(입력창이 남는 공간 채움) */
	.search-box { justify-content: stretch; }
	.search-box input { width: auto; flex: 1 1 auto; min-width: 0; max-width: none; }
	/* 페이저 모바일 전환(pg-mobile)은 사이트 공용 site.css 로 이동됨 */
}
