/* =====================================================
   main_preview.css /2026.01.14
   역할: 메인 프리뷰 엔진 전용 스타일
  공지 (Table + Pagination + Grid + Night)
===================================================== */
.content-inner {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 60px;
}
/* 공지 */
#notice-section {
 margin-bottom: 60px;  
 } 
 /* 공지 리스트 - 게시판형 */
.notice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  cursor: pointer;
  font-size: 14px;
}

/* 번호 */
.notice-no {
  width: 24px;
  text-align: center;
  color: #94a3b8;
}

/* 작성자 */
.notice-writer {
  width: 60px;
  text-align: center;
  color: #cbd5f5;
  font-weight: 500;
}

/* 제목 */
.notice-title {
  flex: 1;
  font-weight: 600;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 날짜 */
.notice-date {
  font-size: 13px;
  color: #94a3b8;
  white-space: nowrap;
}
.board-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.main-board-header { 
  width: 100%;
  margin-left: auto;
  margin-right: auto; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 12px;
}

/* --------------------- Table --------------------- */
.post-table {
  width: 100%;
  table-layout: fixed; 
  border-collapse: collapse;
  border-top: 1px solid rgba(255,255,255,0.15); 
  margin-top: 10px;
}

.post-table th {
  text-align: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15); 
  font-size: 15px;
  color: #ddd; 
}

.post-table td {
  padding: 6px 10px;
  border-bottom: none; 
  font-size: 14px;
  color: #ccc; 
}

.post-table td:nth-child(1),
.post-table td:nth-child(2) {
  text-align: center;
}

.post-table td:nth-child(4) {
  text-align: right;
  font-size: 14px;
  color: #aaa; 
}

.title-link {
  display: block; 
  text-align: left;  
  font-weight: 600;
  color: #e6ebff; 
  text-decoration: none;
  transition: color 0.2s; 
}
.title-link:hover {
  color: #7aa2ff;
}
.empty {
  text-align: center;
  padding: 18px 0;
  color: #999;  
}
/* 링크 배경 완전 제거 */
.post-table a,
.post-table a:visited,
.post-table a:focus,
.post-table a:hover {
  text-decoration: none;
  background: transparent;
}
/* --------------------- Pagination --------------------- */
.pagination {
  margin: 18px 0 8px;
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap; 
}

.page-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25); 
  font-size: 15px;
  font-weight: 600;
  color: #cdd9ff; 
  text-decoration: none;
}
.page-btn.active {
  background: #3558A8;
  color: #fff;
  border-color: #3558A8;
}
.main-page .post-table {
  border-top: 2px solid rgba(255,255,255,0.5);
}

.main-page .post-table th {
  border-bottom: 2px solid rgba(255,255,255,0.35);
}

/* --------------------- Grid --------------------- */
.main-grid {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;  
}
.grid-item {
  border-radius: 12px;
  transition: .25s;
}

/* --------------------- Night Mode --------------------- */
body.night .grid-item {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(120,150,255,0.35);
  color: #E5E7EB;
}

body.night .grid-item:hover {
  border-color: #60A5FA;
  box-shadow: 0 10px 26px rgba(80,120,255,0.25);
}

body.night .card-title { color:#F8FAFC; }
body.night .card-preview { color:#CBD5E1; }
body.night .card-meta { color:#9FB2FF; }

