@import "theme.css";

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* 상단: GNB(fixed) 높이(~72px) + 여유(1.5rem) 확보 */
    padding: 6.5rem 1.5rem 5rem 1.5rem;
    text-align: center;
}

.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.bg-glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    backdrop-filter: blur(28px) saturate(120%);
    -webkit-backdrop-filter: blur(28px) saturate(120%);
    background:
        linear-gradient(160deg,
            rgba(26, 58, 42, 0.45) 0%,
            rgba(46, 107, 138, 0.40) 50%,
            rgba(139, 111, 71, 0.35) 100%),
        radial-gradient(ellipse at 20% 80%, rgba(13, 46, 31, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 10%, rgba(30, 77, 107, 0.5) 0%, transparent 65%),
        linear-gradient(180deg, rgba(10, 31, 20, 0.4) 0%, rgba(46, 107, 138, 0.7) 100%);
}

/* 배경 장식 원 */
.bg-glass-overlay::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(242, 240, 235, 0.08);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.page-inner {
    position: relative;
    z-index: 1;
    animation: fadeIn 0.6s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* .top-nav 제거됨 — GNB (.gnb-header) 로 대체 */

/* 아이콘 */
.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.75rem;
    background: rgba(242, 240, 235, 0.12);
    border: 1px solid rgba(242, 240, 235, 0.25);
    border-radius: 18px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* 브랜드명 */
.brand-name {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 0.20em;
    color: #F2F0EB;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.brand-sub {
    font-size: 0.80rem;
    letter-spacing: 0.12em;
    color: rgba(242, 240, 235, 0.70);
    text-transform: uppercase;
    margin-bottom: 2rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* 구분선 */
.divider {
    width: 32px;
    height: 1px;
    background: rgba(242, 240, 235, 0.35);
    margin: 0 auto 2rem;
}

/* 타이틀 */
.coming-title {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 600;
    color: rgba(242, 240, 235, 0.95);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* 관리자 링크 */
.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.35rem;
    background: rgba(242, 240, 235, 0.12);
    border: 1px solid rgba(242, 240, 235, 0.25);
    border-radius: 8px;
    color: rgba(242, 240, 235, 0.85);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
    transition: background 0.22s ease, color 0.22s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-link:hover {
    background: rgba(242, 240, 235, 0.20);
    color: #FFF;
}

/* 공지사항 색션 */
.notices-section {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notice-card {
    background: rgba(242, 240, 235, 0.10);
    border: 1px solid rgba(242, 240, 235, 0.20);
    border-radius: 12px;
    padding: 1.25rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.notice-card:hover {
    background: rgba(242, 240, 235, 0.15);
    border-color: rgba(242, 240, 235, 0.30);
    transform: translateY(-2px);
}

.notice-card .notice-title {
    font-size: 1rem;
    font-weight: 600;
    color: #FFF;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notice-card .badge-pinned {
    font-size: 0.8rem;
}

.notice-card .notice-date {
    font-size: 0.75rem;
    color: rgba(242, 240, 235, 0.65);
    margin-top: 0.4rem;
}

.notice-card .notice-preview {
    font-size: 0.85rem;
    color: rgba(242, 240, 235, 0.85);
    margin-top: 0.6rem;
    line-height: 1.5;
}

/* Zone Scroll-telling Structure */
.zones-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding-bottom: 4rem;
}

.zone-section {
    background: rgba(242, 240, 235, 0.04);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: left;
    /* GSAP will animate starting state */
}

.zone-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.zone-name {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.zone-type {
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: #fff;
    font-weight: 500;
}

.zone-desc {
    font-size: 0.95rem;
    color: rgba(242, 240, 235, 0.8);
    margin-bottom: 2rem;
}

/* 캠프사이트 그리드 (Zone 내부) */
.sites-grid {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.site-card {
    background: rgba(242, 240, 235, 0.10);
    border: 1px solid rgba(242, 240, 235, 0.20);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.site-card:hover {
    background: rgba(242, 240, 235, 0.16);
    border-color: rgba(242, 240, 235, 0.30);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.site-card .site-link {
    text-decoration: none;
    display: block;
    height: 100%;
    color: #FFF;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.site-card .site-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.site-card .site-image-placeholder {
    width: 100%;
    height: 140px;
    background: rgba(242, 240, 235, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(242, 240, 235, 0.60);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.site-card .site-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.site-card .site-zone {
    font-size: 0.80rem;
    color: rgba(242, 240, 235, 0.70);
    margin-bottom: 0.6rem;
}

.site-card .site-spec {
    font-size: 0.75rem;
    color: rgba(242, 240, 235, 0.60);
    line-height: 1.4;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: rgba(148, 163, 184, 0.5);
    font-size: 0.95rem;
}

/* 하단 문구 */
.footer-note {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5rem;
    /* 명시적 높이 → 다른 요소가 계산에 활용 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.68rem;
    color: rgba(242, 240, 235, 0.22);
    letter-spacing: 0.04em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    /* 콘텐츠 클릭 차단 방지 */
    z-index: 100;
    /* GNB(500)보다 낮게 — 드롭다운에 가리지 않음 */
    /* 미세한 그라데이션 배경으로 콘텐츠와 분리 */
    background: linear-gradient(to top, rgba(2, 6, 23, 0.55) 0%, transparent 100%);
}

.footer-note span {
    pointer-events: auto;
    cursor: default;
    /* 숨김 영역이므로 기본 커서 유지 등 */
}

/* notices (overflow:hidden) 페이지에서 footer 영역 확보 */
body.nb-page .footer-note {
    display: none;
}

/* ── Content Page (cp) 공통 시스템 ── */
body.cp-body {
    text-align: left;
    align-items: stretch;
    /* 상단: GNB(~60px) + 여유, 하단: footer(2.5rem) + 여유 */
    padding: 6rem 1.5rem 5rem;
}

.cp-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease both;
}

.cp-wrap--sm {
    max-width: 700px;
}

.cp-wrap--md {
    max-width: 860px;
}

.cp-wrap--lg {
    max-width: 1100px;
}

.cp-title {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    color: #F2F0EB;
    margin-bottom: 0.5rem;
    margin-top: 2.5rem;
    line-height: 1.3;
}

.cp-sub {
    color: rgba(242, 240, 235, 0.5);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.cp-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(242, 240, 235, 0.55);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 1.75rem;
    transition: color 0.2s, gap 0.2s;
}

.cp-back svg {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cp-back:hover {
    color: rgba(94, 234, 212, 0.9);
    gap: 0.6rem;
}

.cp-back:hover svg {
    transform: translateX(-3px);
}

.cp-meta {
    font-size: 0.9rem;
    color: rgba(242, 240, 235, 0.5);
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(242, 240, 235, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.cp-article {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(165, 243, 252, 0.1);
    border-radius: 12px;
    padding: 2rem 2.25rem;
    line-height: 1.85;
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.97rem;
    letter-spacing: -0.01em;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-align: left;
}

.cp-article p {
    margin: 0 0 1em;
}

.cp-article p:last-child {
    margin-bottom: 0;
}

.cp-article h1,
.cp-article h2,
.cp-article h3,
.cp-article h4 {
    color: #ffffff;
    font-weight: 700;
    margin: 1.5em 0 0.6em;
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.cp-article h1 {
    font-size: 1.5rem;
}

.cp-article h2 {
    font-size: 1.25rem;
}

.cp-article h3 {
    font-size: 1.1rem;
}

.cp-article strong {
    color: #ffffff;
    font-weight: 700;
}

.cp-article a {
    color: rgb(94, 234, 212);
    text-underline-offset: 3px;
}

.cp-article a:hover {
    color: rgb(165, 243, 252);
}

.cp-article ul,
.cp-article ol {
    padding-left: 1.5rem;
    margin: 0 0 1em;
}

.cp-article li {
    margin-bottom: 0.35em;
}

.cp-article blockquote {
    border-left: 3px solid rgba(94, 234, 212, 0.4);
    margin: 1em 0;
    padding: 0.6em 1.2em;
    color: rgba(226, 232, 240, 0.7);
    font-style: italic;
}

.cp-article img {
    max-width: 100% !important;
    width: auto;
    height: auto !important;
    border-radius: 8px;
    margin: 0.75em 0;
    display: block;
}

.cp-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 0.92rem;
}

.cp-article th,
.cp-article td {
    border: 1px solid rgba(165, 243, 252, 0.15);
    padding: 0.55em 0.85em;
    text-align: left;
}

.cp-article th {
    background: rgba(30, 58, 70, 0.5);
    color: #ffffff;
    font-weight: 600;
}

.cp-article pre,
.cp-article code {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    font-size: 0.88rem;
    font-family: 'Consolas', monospace;
}

.cp-article pre {
    padding: 1em 1.25em;
    overflow-x: auto;
}

.cp-article code {
    padding: 0.15em 0.4em;
}

@media (max-width: 640px) {
    .cp-article {
        padding: 1.25rem 1.1rem;
        font-size: 0.93rem;
    }
}

.cp-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #F2F0EB;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(242, 240, 235, 0.15);
}

.cp-badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
}

.cp-badge--lake {
    background: rgba(46, 107, 138, 0.2);
    border: 1px solid rgba(46, 107, 138, 0.4);
    color: rgba(242, 240, 235, 0.8);
}

.cp-badge--warn {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: rgba(255, 193, 7, 0.85);
}

.cp-badge--muted {
    background: rgba(242, 240, 235, 0.12);
    border: 1px solid rgba(242, 240, 235, 0.2);
    color: rgba(242, 240, 235, 0.8);
}

.cp-paginator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0 2rem;
}

.cp-paginator__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: rgba(242, 240, 235, 0.08);
    border: 1px solid rgba(242, 240, 235, 0.15);
    color: rgba(242, 240, 235, 0.8);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.88rem;
    transition: background 0.2s, color 0.2s;
}

.cp-paginator__link:hover {
    background: rgba(242, 240, 235, 0.15);
    color: #F2F0EB;
}

.cp-paginator__info {
    color: rgba(242, 240, 235, 0.5);
    font-size: 0.88rem;
}

.cp-back-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(242, 240, 235, 0.10);
    text-align: center;
}

.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.cp-btn--ghost {
    background: rgba(242, 240, 235, 0.07);
    border: 1px solid rgba(242, 240, 235, 0.14);
    color: rgba(242, 240, 235, 0.75);
}

.cp-btn--ghost:hover {
    background: rgba(242, 240, 235, 0.12);
    border-color: rgba(242, 240, 235, 0.22);
    color: #F2F0EB;
    transform: translateY(-1px);
}

.cp-btn--earth {
    background: rgba(139, 111, 71, 0.28);
    border: 1px solid rgba(139, 111, 71, 0.45);
    color: #F2F0EB;
}

.cp-btn--earth:hover {
    background: rgba(139, 111, 71, 0.42);
    border-color: rgba(139, 111, 71, 0.65);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 111, 71, 0.2);
}

/* ── 검색창 공통 ── */
.search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.5rem;
    background: rgba(24, 39, 55, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(165, 243, 252, 0.15);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.search-bar:focus-within {
    border-color: rgba(165, 243, 252, 0.4);
}

.search-bar__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e2e8f0;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
}

.search-bar__input::placeholder {
    color: rgba(148, 163, 184, 0.45);
}

.search-bar__btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.75rem 1rem;
    color: rgba(148, 163, 184, 0.6);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.search-bar__btn:hover {
    color: rgb(94, 234, 212);
}

/* ── 소식(News) 카드 그리드 ── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    row-gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: rgba(2, 6, 23, 0.30);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(6, 182, 212, 0.10);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.28);
}

.news-card__thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 */
    overflow: hidden;
    background: rgba(15, 23, 42, 0.6);
    flex-shrink: 0;
}

.news-card__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-card__thumb img {
    transform: scale(1.05);
}

.news-card__placeholder {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: rgba(15, 23, 42, 0.5);
    flex-shrink: 0;
}

.news-card__placeholder svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.news-card__body {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.news-card__date {
    font-size: 0.72rem;
    color: rgba(148, 196, 220, 0.85);
    letter-spacing: 0.01em;
}

.news-card__title {
    font-size: 1.0625rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.45;
    letter-spacing: -0.02em;
    margin: 0;
    word-break: keep-all;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(, 1fr);
    }
}

@media (max-width: 640px) {
    body.cp-body {
        padding: 5.5rem 1rem 4.5rem;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        row-gap: 1rem;
    }

    .news-card__body {
        padding: 0.65rem 0.75rem 0.75rem;
    }

    .news-card__title {
        font-size: 0.875rem;
        -webkit-line-clamp: 2;
    }

    .news-card__date {
        font-size: 0.65rem;
    }

    .cp-wrap {
        margin: 0 auto;
    }

    .cp-article {
        padding: 1.5rem;
    }
}

/* base.css 또는 <style> */
.interactive-zone {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 마우스 오버 시 살짝 떠오르는 효과 및 색상 변경 */
.interactive-zone:hover .zone-shape {
    filter: brightness(0.85);
    stroke: #1A3A2A;
    stroke-width: 2px;
}

/* 클릭되어 활성화된 상태 */
.interactive-zone.is-active .zone-shape {
    fill: var(--active-color, #2E6B8A) !important;
    stroke: #1A3A2A;
    stroke-width: 3px;
}

/* ══════════════════════════════════════════════════
   NoticeBoard (nb-*) — 공지사항 페이지
══════════════════════════════════════════════════ */

body.nb-page {
    overflow: hidden;
    height: 100vh;
    padding-bottom: 0;
}

body.nb-page .cp-wrap {
    height: calc(100vh - 6rem);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

/* ── 2컬럼 그리드 레이아웃 ── */
.nb-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

/* ── 컬럼 컨테이너 ── */
.nb-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

/* ── 섹션 헤더 ── */
.nb-section-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.6rem;
    flex-shrink: 0;
}

.nb-section-head svg {
    flex-shrink: 0;
}

.nb-section-title {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin: 0;
}

.nb-section-title--pinned {
    color: rgb(253, 164, 175);
}

.nb-section-title--recent {
    color: rgb(103, 232, 249);
}

/* ── 스크롤 영역 ── */
.nb-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.25) transparent;
    padding-right: 4px;
    /* 하단 페이드: 더 콘텐츠가 있음을 암시 */
    mask-image: linear-gradient(to bottom, black calc(100% - 2rem), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 2rem), transparent 100%);
}

.nb-scroll::-webkit-scrollbar {
    width: 4px;
}

.nb-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.nb-scroll::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.3);
    border-radius: 2px;
}

.nb-scroll.at-bottom,
.nb-scroll.no-scroll {
    mask-image: none;
    -webkit-mask-image: none;
}

/* ── 공지 카드 ── */
.nb-item {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    border-radius: 0.6rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nb-item:last-child {
    margin-bottom: 0;
}

.nb-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nb-item:focus-visible {
    outline: 2px solid rgb(103, 232, 249);
    outline-offset: 2px;
}

/* 고정 카드 */
.nb-item--pinned {
    background: rgba(136, 19, 55, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.2);
    backdrop-filter: blur(12px);
}

.nb-item--pinned:hover {
    border-color: rgba(244, 63, 94, 0.45);
}

/* 일반 카드 */
.nb-item--regular {
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(6, 182, 212, 0.1);
    backdrop-filter: blur(12px);
}

.nb-item--regular:hover {
    border-color: rgba(6, 182, 212, 0.3);
}

/* ── 썸네일 ── */
.nb-thumb {
    flex-shrink: 0;
    width: 80px;
    align-self: stretch;
    position: relative;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.6);
}

.nb-thumb__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nb-item:hover .nb-thumb__img {
    transform: scale(1.05);
}

.nb-thumb__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}

.nb-thumb__placeholder img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ── 카드 본문 ── */
.nb-body {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

/* ── 배지 ── */
.nb-badges {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-bottom: 0.15rem;
}

.nb-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid;
    white-space: nowrap;
}

.nb-badge--important {
    background: rgba(244, 63, 94, 0.18);
    color: rgb(253, 164, 175);
    border-color: rgba(244, 63, 94, 0.32);
}

.nb-badge--ongoing {
    background: rgba(20, 184, 166, 0.18);
    color: rgb(94, 234, 212);
    border-color: rgba(20, 184, 166, 0.32);
}

.nb-badge--permanent {
    background: rgba(100, 116, 139, 0.2);
    color: rgb(203, 213, 225);
    border-color: rgba(100, 116, 139, 0.32);
}

.nb-badge--ended {
    background: rgba(71, 85, 105, 0.15);
    color: rgba(148, 163, 184, 0.6);
    border-color: rgba(71, 85, 105, 0.25);
}

/* ── 제목 ── */
.nb-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ── 메타 정보 (날짜 + 미리보기) ── */
.nb-meta-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.nb-date {
    font-size: 0.68rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.nb-date--pinned {
    color: rgba(253, 164, 175, 0.6);
}

.nb-date--regular {
    color: rgba(100, 116, 139, 0.85);
}

.nb-preview {
    font-size: 0.72rem;
    color: rgba(203, 213, 225, 0.45);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

/* ── 빈 상태 ── */
.nb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-size: 0.85rem;
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 0.6rem;
}

.nb-empty--pinned {
    color: rgba(253, 164, 175, 0.35);
    border: 1px dashed rgba(244, 63, 94, 0.18);
}

.nb-empty--regular {
    color: rgba(100, 116, 139, 0.55);
    border: 1px dashed rgba(100, 116, 139, 0.2);
}

/* ── 모바일 반응형 ── */
@media (max-width: 900px) {
    body.nb-page .cp-wrap {
        height: calc(100vh - 5.5rem);
        padding: 0 1rem;
    }

    .nb-layout {
        grid-template-columns: 1fr 1.5fr;
        gap: 1rem;
    }

    .nb-thumb {
        width: 72px;
    }

    .nb-title {
        font-size: 0.8rem;
    }

    .nb-preview {
        display: none;
    }
}

@media (max-width: 720px) {
    body.nb-page .cp-wrap {
        height: calc(100vh - 5rem);
        padding: 0 0.75rem;
    }

    .nb-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        gap: 0.75rem;
    }

    .nb-col:first-child {
        max-height: 35vh;
    }

    .nb-thumb {
        width: 64px;
    }

    .nb-body {
        padding: 0.5rem 0.7rem;
        gap: 0.2rem;
    }

    .nb-title {
        font-size: 0.78rem;
        -webkit-line-clamp: 1;
    }

    .nb-badge {
        font-size: 9px;
        padding: 1px 6px;
    }

    .nb-date {
        font-size: 0.62rem;
    }

    .nb-section-title {
        font-size: 0.75rem;
    }
}