/* ============================================
   BOARD PAGE STYLES
   ============================================ */

.board-section {
    background: var(--bg);
    padding: var(--spacing-xl) 0;
}

.board-container {
    max-width: 1000px;
    margin: 0 auto;
}

.board-header {
    text-align: center;
    margin-bottom: 3rem;
}

.board-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.board-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Board Table */
.board-table-container {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 3rem;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.board-table th,
.board-table td {
    padding: 1.25rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.board-table tbody tr:last-child td {
    border-bottom: none;
}

.board-table th {
    background: var(--bg-soft);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.board-table td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.board-table tbody tr {
    transition: background-color 0.2s;
}

.board-table tbody tr:hover {
    background: var(--bg-soft);
}

/* Column Widths */
.th-num {
    width: 80px;
}

.th-title {
    width: auto;
}

.th-date {
    width: 120px;
}

.th-views {
    width: 100px;
}

/* Title Column */
.td-title {
    text-align: left !important;
    padding-left: 2rem !important;
}

.td-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.td-title a:hover {
    color: var(--accent);
}

/* Badges */
.badge-notice {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.badge-normal {
    background: var(--bg-soft);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

/* Pagination */
.board-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0 1rem;
}

.page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.page-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Responsive Board */
@media (max-width: 768px) {

    .th-num,
    .td-num,
    .th-views,
    .td-views,
    .th-date,
    .td-date {
        display: none;
    }

    .board-table thead {
        display: none;
    }

    .board-table tr {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-light);
    }

    .board-table td {
        display: block;
        padding: 0;
        border: none;
        text-align: left;
    }

    .td-title {
        padding-left: 0 !important;
        margin-bottom: 0.5rem;
    }

    .td-title a {
        font-size: 1.1rem;
        font-weight: 600;
    }
}