/* Breadcrumb Section */
.breadcrumb-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0 40px;
    color: white;
    margin-bottom: 60px;
}

.breadcrumb-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.breadcrumb-section nav {
    font-size: 0.95rem;
    opacity: 0.9;
}

.breadcrumb-section nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb-section nav a:hover {
    opacity: 0.8;
}

.breadcrumb-section nav span {
    margin: 0 10px;
}

/* Board Section */
.board-section {
    padding: 0 0 80px;
}

.board-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: white;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.category-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Board Toolbar */
.board-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.search-box form {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
    background: white;
    transition: border-color 0.3s;
}

.search-box form:focus-within {
    border-color: #667eea;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 0.95rem;
}

.search-box button {
    padding: 12px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.search-box button:hover {
    color: #667eea;
}

.btn-write {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-write:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Board Table */
.board-table {
    background: white;
    border-radius: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.board-table table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    table-layout: fixed;
}

.board-table thead {
    background: #f8f9fa;
}

.board-table thead th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    border-bottom: 2px solid #e0e0e0;
}

.board-table tbody td {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 0.95rem;
}

.board-table tbody td.col-category {
    padding-right: 15px;
    vertical-align: middle !important;
}

.board-table tbody td.col-title {
    padding-left: 15px;
    vertical-align: middle !important;
}

.board-table tbody tr {
    transition: background 0.2s;
}

.board-table tbody tr:hover {
    background: #f8f9ff;
}

.board-table tbody tr.notice-row {
    background: #fffbf0;
}

.board-table tbody tr.notice-row:hover {
    background: #fff8e1;
}

/* Column Widths */
.col-no {
    width: 80px;
    text-align: center;
}
.col-category {
    width: 120px;
    max-width: 120px;
    vertical-align: middle;
    white-space: nowrap;
    text-align: left;
}
.col-title {
    width: auto;
    vertical-align: middle;
}
.col-author { width: 150px; }
.col-date { width: 120px; }
.col-views { width: 100px; text-align: center; }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    vertical-align: middle !important;
}

.badge-notice {
    background: #ffe0b2;
    color: #e65100;
}

.badge-question {
    background: #e1f5fe;
    color: #0277bd;
}

.badge-free {
    background: #f3e5f5;
    color: #6a1b9a;
}

.badge-common {
    background: #f3e5f5;
    color: #6a1b9a;
}

.notice-icon {
    font-size: 1.2rem;
}

.post-title {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.post-title:hover {
    color: #667eea;
}

.new-badge {
    display: inline-block;
    background: #ff5252;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.page-btn:hover:not(.disabled) {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.page-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.page-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .breadcrumb-section h1 {
        font-size: 2rem;
    }

    .category-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

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

    .search-box {
        max-width: 100%;
    }

    .board-table {
        overflow-x: auto;
    }

    .board-table table {
        min-width: 800px;
    }

    .col-category {
        width: 120px;
        vertical-align: middle !important;
    }

    .board-table tbody td.col-category {
        vertical-align: middle !important;
        padding-right: 10px;
    }

    .board-table tbody td.col-title {
        vertical-align: middle !important;
        padding-left: 10px;
    }

    .badge {
        vertical-align: middle !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .col-author,
    .col-views {
        display: none;
    }
}

@media (max-width: 480px) {
    .breadcrumb-section {
        padding: 40px 0 30px;
    }

    .breadcrumb-section h1 {
        font-size: 1.75rem;
    }

    .board-table table {
        min-width: 650px;
    }

    .col-no {
        width: 60px;
    }

    .col-category {
        width: 120px;
        vertical-align: middle !important;
    }

    .board-table tbody td.col-category {
        vertical-align: middle !important;
        padding-right: 8px;
    }

    .board-table tbody td.col-title {
        vertical-align: middle !important;
        padding-left: 8px;
    }

    .col-date {
        display: none;
    }

    .badge {
        font-size: 0.75rem;
        padding: 4px 8px;
        vertical-align: middle !important;
        display: inline-flex !important;
        align-items: center !important;
    }
}