@charset "UTF-8";

/* ================================================================
   게시판 목록 (bbsList) — 리뉴얼 2026-03-31
   ================================================================ */

/* ── 1. 기본 레이아웃 ── */
.ecommerce-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 100px;
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: #333;
}

.section-divider {
    text-align: center;
    margin: 16px 0 8px;
    font-size: 13px;
    color: #aaa;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.new-section h2 {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    color: #111;
    letter-spacing: -0.5px;
}

/* ── 2. 탭 네비게이션 ── */
.bbs-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
    border-bottom: 1px solid #e8e8e8;
}
.bbs-tab {
    display: inline-block;
    padding: 14px 28px;
    font-size: 15px;
    color: #999;
    text-decoration: none;
    position: relative;
    transition: color .2s;
    font-weight: 500;
}
.bbs-tab:hover {
    color: #333;
    text-decoration: none;
}
.bbs-tab.is-active {
    color: #111;
    font-weight: 700;
}
.bbs-tab.is-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: #111;
    border-radius: 2px 2px 0 0;
}

/* ── 3. 이벤트 그리드 ── */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.event-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    border: 1px solid #f0f0f0;
}
.event-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
}
.event-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f5;
}
.event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.event-card:hover .event-thumb img {
    transform: scale(1.06);
}
.event-ended-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 2;
    backdrop-filter: blur(2px);
}
.ended-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.ended-sub {
    font-size: 13px;
    opacity: .8;
}
.event-card.ended .event-info {
    opacity: .5;
}
.event-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.event-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.45;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}
.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    margin-top: auto;
}
.badge {
    background: #f3f4f6;
    color: #666;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

/* ── 4. 일반 게시판 리스트 ── */
.bbs-content-title {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #fafafa;
    border-top: 2px solid #111;
    border-bottom: 1px solid #e5e5e5;
    font-size: 13px;
    font-weight: 600;
    color: #777;
}
.bbs-content {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f2f2f2;
    font-size: 14px;
    color: #555;
    transition: background .15s;
}
.bbs-content:hover {
    background: #fafbfc;
}

/* 컬럼 너비 */
.bbs-sec         { width: 72px; flex-shrink: 0; text-align: center; }
.bbs-subject     { flex: 1; text-align: left; padding: 0 16px; font-weight: 500; }
.bbs-write-name  { width: 120px; flex-shrink: 0; text-align: center; color: #777; font-size: 13px; }
.bbs-time        { width: 110px; flex-shrink: 0; text-align: center; color: #999; font-size: 13px; }
.bbs-readcount   { width: 72px; flex-shrink: 0; text-align: center; color: #999; font-size: 13px; }

.bbs-sec button {
    background: #f1f3f5;
    border: none;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: #666;
    font-weight: 500;
    cursor: default;
}
.bbs-subject a {
    text-decoration: none;
    color: #222;
    transition: color .15s;
}
.bbs-subject a:hover {
    color: #0b7b5b;
}
.bbs-subject span {
    color: #0b7b5b;
    font-size: 13px;
    font-weight: 700;
    margin-left: 6px;
}

/* 모바일 라벨 (PC 숨김) */
.bbs-content .bbs-write-name span,
.bbs-content .bbs-time span,
.bbs-content .bbs-readcount span {
    display: none;
}

/* 빈 목록 */
.bbs-empty {
    padding: 100px 0;
    text-align: center;
    color: #bbb;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* ── 5. 페이지네이션 ── */
.pagination-wrapper {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}
.pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pagination a,
.pagination strong {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    background: #fff;
    transition: all .15s;
}
.pagination a:hover {
    background: #f5f5f5;
    border-color: #ccc;
}
.pagination strong,
.pagination .active a {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ── 6. 반응형 ── */
@media (min-width: 769px) and (max-width: 1024px) {
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ecommerce-main {
        padding: 24px 16px 60px;
    }
    .new-section h2 {
        font-size: 22px;
        margin-bottom: 28px;
    }

    /* 탭 스크롤 */
    .bbs-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        margin-bottom: 24px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .bbs-tabs::-webkit-scrollbar { display: none; }
    .bbs-tab {
        padding: 12px 18px;
        font-size: 14px;
    }

    /* 이벤트 1열 */
    .event-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 일반 게시판 → 카드형 */
    .bbs-content-title { display: none; }
    .bbs-content {
        flex-wrap: wrap;
        padding: 18px 4px;
        align-items: flex-start;
        gap: 4px;
    }
    .bbs-sec {
        width: auto;
        margin-bottom: 4px;
    }
    .bbs-subject {
        width: 100%;
        padding: 0;
        flex: none;
        margin-bottom: 8px;
    }
    .bbs-subject a {
        font-size: 15px;
        font-weight: 600;
        display: block;
        line-height: 1.4;
    }
    .bbs-write-name,
    .bbs-time,
    .bbs-readcount {
        width: auto;
        font-size: 12px;
        color: #999;
        display: flex;
        align-items: center;
        margin-right: 14px;
        text-align: left;
    }
    .bbs-content .bbs-write-name span,
    .bbs-content .bbs-time span,
    .bbs-content .bbs-readcount span {
        display: inline-block;
        margin-right: 4px;
        color: #bbb;
        font-size: 11px;
    }
}
