/* ========================================
   LMS: 공지사항 목록 + 상세
======================================== */

/* ───── 필터 탭 ───── */
.np-filter { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }
.np-tab {
    padding: 8px 24px;
    border: 1.5px solid var(--border);
    border-radius: 40px;
    font-size: 16px; font-weight: 600; color: var(--text-3);
    background: transparent; cursor: pointer;
    transition: var(--transition);
}
.np-tab:hover { border-color: var(--point); color: var(--point); }
.np-tab.active {
    background: var(--point); border-color: var(--point); color: #fff;
    font-weight: 700;
}

/* ───── 테이블 ───── */
.np-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-light); }
.np-table thead { background: var(--surface); }
.np-table th { padding: 14px 16px; font-size: 17px; font-weight: 700; color: var(--text-2); text-align: left; border-bottom: 2px solid var(--border); }
.np-table td { padding: 14px 16px; font-size: 16px; color: var(--text-2); border-bottom: 1px solid var(--border-light); }
.np-table tr:hover td { background: rgba(85,58,231,.03); }
.np-table tr.np-pinned td { background: rgba(85,58,231,.04); }

.np-th-num { width: 60px; text-align: center; }
.np-th-cat { width: 80px; }
.np-th-date { width: 100px; }
.np-th-view { width: 60px; text-align: center; }
.np-num { text-align: center; color: var(--text-3); font-size: 17px; }
.np-date { color: var(--text-3); font-size: 17px; }
.np-view { text-align: center; color: var(--text-3); font-size: 17px; }
.np-title-cell { font-weight: 500; }
.np-pin { color: var(--point); font-size: 17px; margin-right: 2px; }

/* ───── 배지 ───── */
.np-badge { display: inline-block; padding: 3px 10px; border-radius: 5px; font-size: 17px; font-weight: 700; }
.np-badge--notice { background: var(--primary-bg); color: var(--point); }
.np-badge--event { background: var(--success-bg, #ecfdf5); color: var(--success, #059669); }

/* ───── 페이지네이션 ───── */
.np-pagination { display: flex; justify-content: center; gap: 4px; margin-top: 32px; }
.np-pag-btn {
    width: 36px; height: 36px;
    border: 1px solid var(--border); border-radius: 8px;
    background: #fff; color: var(--text-3);
    font-size: 17px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.np-pag-btn:hover { border-color: var(--point); color: var(--point); }
.np-pag-btn.active { background: var(--point); border-color: var(--point); color: #fff; }

/* ───── 빈 상태 ───── */
.np-empty {
    text-align: center; padding: 64px 16px; color: var(--text-3);
}
.np-empty i { font-size: 48px; margin-bottom: 16px; display: block; opacity: .3; }
.np-empty p { font-size: 17px; }
.np-loading { text-align: center; padding: 48px; color: var(--text-3); font-size: 16px; }

/* ═══════ 상세 페이지 ═══════ */

.nd-header {
    border-bottom: 2px solid var(--text);
    padding-bottom: 20px; margin-bottom: 32px;
}
.nd-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.nd-pin { font-size: 16px; color: var(--point); font-weight: 600; }
.nd-title { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1.4; margin-bottom: 12px; }
.nd-info { display: flex; gap: 16px; font-size: 17px; color: var(--text-3); }
.nd-info i { margin-right: 4px; }

.nd-body {
    min-height: 200px; padding: 32px 0;
    font-size: 17px; line-height: 1.8; color: var(--text-2);
    border-bottom: 1px solid var(--border-light);
}
.nd-body p { margin-bottom: 12px; }

/* ───── 이전글/다음글 ───── */
.nd-nav { border-bottom: 1px solid var(--border-light); }
.nd-nav-item {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 16px; color: var(--text-2);
    transition: var(--transition);
}
.nd-nav-item:last-child { border-bottom: none; }
a.nd-nav-item:hover { color: var(--point); }
.nd-nav-label { flex-shrink: 0; width: 80px; font-size: 16px; font-weight: 700; color: var(--text-3); }
.nd-nav-label i { margin-right: 4px; }
.nd-nav-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-disabled { color: var(--text-3); opacity: .5; }

.nd-actions { padding-top: 24px; text-align: center; }
.btn-outline-default {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 24px; border: 1.5px solid var(--border);
    border-radius: 8px; font-size: 16px; font-weight: 600;
    color: var(--text-2); background: #fff;
    transition: var(--transition);
}
.btn-outline-default:hover { border-color: var(--point); color: var(--point); }

/* ───── 반응형 ───── */
@media (max-width: 768px) {
    .np-th-num, .np-num { display: none; }
    .np-th-view, .np-view { display: none; }
    .np-table th, .np-table td { padding: 12px 10px; }
    .nd-title { font-size: 20px; }
    .nd-nav-item { gap: 10px; }
    .nd-nav-label { width: 60px; font-size: 17px; }
}
