/* ========================================
   Board Page — 게시판
   ======================================== */

.bd-page {
    background: #0B1120;
    min-height: 100vh;
    font-family: var(--font-family);
    color: #E2E8F0;
}

/* --- Hero --- */
.bd-hero {
    padding: 140px 0 48px;
    text-align: center;
    background: linear-gradient(180deg, #0F172A 0%, #0B1120 100%);
    position: relative;
    overflow: hidden;
}

.bd-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.bd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #A5B4FC;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 20px;
}

.bd-hero h1 {
    font-size: 38px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
}

.bd-hero p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* --- Category Tabs --- */
.bd-categories {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 32px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bd-cat-btn {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-family);
}

.bd-cat-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: rgba(255, 255, 255, 0.8);
    background: rgba(99, 102, 241, 0.08);
}

.bd-cat-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: #A5B4FC;
    font-weight: 600;
}

.bd-cat-count {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 7px;
    border-radius: 6px;
    margin-left: 6px;
}

.bd-cat-btn.active .bd-cat-count {
    background: rgba(99, 102, 241, 0.25);
}

/* --- Toolbar --- */
.bd-toolbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bd-toolbar-left {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.bd-toolbar-left strong {
    color: #A5B4FC;
    font-weight: 700;
}

.bd-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bd-search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0 12px;
    transition: all 0.2s;
}

.bd-search-box:focus-within {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.bd-search-box i {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

.bd-search-box input {
    background: none;
    border: none;
    outline: none;
    color: #FFFFFF;
    font-size: 13px;
    padding: 10px 8px;
    width: 180px;
    font-family: var(--font-family);
}

.bd-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.bd-write-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-family);
}

.bd-write-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* --- Post List --- */
.bd-list {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

.bd-post {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    margin-bottom: 8px;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.bd-post:hover {
    border-color: rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

/* Post Status/Category */
.bd-post-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 64px;
}

.bd-post-cat {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.bd-post-cat.cat-tax { background: rgba(37, 99, 235, 0.15); color: #93B4FF; }
.bd-post-cat.cat-biz { background: rgba(16, 185, 129, 0.15); color: #6EE7B7; }
.bd-post-cat.cat-tip { background: rgba(245, 158, 11, 0.15); color: #FCD34D; }
.bd-post-cat.cat-free { background: rgba(148, 163, 184, 0.12); color: #94A3B8; }
.bd-post-cat.cat-notice { background: rgba(239, 68, 68, 0.15); color: #FCA5A5; }

/* Post Content */
.bd-post-content {
    min-width: 0;
}

.bd-post-title {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bd-post-title .bd-comment-count {
    color: #A5B4FC;
    font-size: 13px;
    font-weight: 500;
    margin-left: 8px;
}

.bd-post-preview {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.bd-post-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.bd-post-meta i {
    margin-right: 4px;
    font-size: 11px;
}

/* Post Stats */
.bd-post-stats {
    display: flex;
    gap: 16px;
    min-width: 100px;
    justify-content: flex-end;
}

.bd-post-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.bd-post-stat-num {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.bd-post-stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Pinned Post --- */
.bd-post.pinned {
    border-color: rgba(239, 68, 68, 0.15);
    background: rgba(239, 68, 68, 0.03);
}

.bd-post.pinned .bd-post-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #EF4444;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* --- Popular Tag --- */
.bd-popular-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: rgba(239, 68, 68, 0.12);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #FCA5A5;
    margin-left: 8px;
    vertical-align: middle;
}

/* --- Pagination --- */
.bd-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 24px 64px;
}

.bd-page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-family);
}

.bd-page-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: #FFFFFF;
}

.bd-page-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: #A5B4FC;
    font-weight: 700;
}

/* --- Empty --- */
.bd-empty {
    text-align: center;
    padding: 80px 24px;
}

.bd-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.15);
}

.bd-empty h3 {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.bd-empty p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .bd-hero {
        padding: 110px 0 32px;
    }

    .bd-hero h1 {
        font-size: 24px;
    }

    .bd-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .bd-toolbar-right {
        justify-content: space-between;
    }

    .bd-search-box input {
        width: 120px;
    }

    .bd-post {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .bd-post-status {
        flex-direction: row;
    }

    .bd-post-stats {
        justify-content: flex-start;
    }

    .bd-categories {
        gap: 6px;
    }

    .bd-cat-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}
