/* 게시판 스타일 */

.board-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 게시판 헤더 */
.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1a9d8e;
}

.board-header h2 {
    font-size: 24px;
    color: #333;
}

.btn-write {
    padding: 10px 20px;
    background-color: #1a9d8e;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-write:hover {
    background-color: #158f81;
}

/* 게시판 테이블 */
.board-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
}

.board-table thead {
    background-color: #f5f5f5;
    border-top: 2px solid #333;
    border-bottom: 1px solid #ddd;
}

.board-table th {
    padding: 15px 10px;
    text-align: center;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.board-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s;
}

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

.board-table td {
    padding: 15px 10px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* 컬럼 너비 */
.col-no {
    width: 60px;
}

.col-title {
    width: auto;
    text-align: left !important;
}

.col-author {
    width: 140px;
    padding: 8px 10px;
}

.author-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 0;
}

.author-wrapper img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.author-wrapper span {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.col-views {
    width: 80px;
}

.col-likes {
    width: 80px;
}

.col-date {
    width: 120px;
}

/* 제목 스타일 */
.post-title {
    color: #333;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.post-title:hover {
    color: #1a9d8e;
    text-decoration: underline;
}

.comment-count {
    color: #ff6b6b;
    font-size: 12px;
    margin-left: 5px;
}

/* 추천 수 강조 */
.high-likes {
    color: #ff6b6b;
    font-weight: bold;
}

/* 로딩 메시지 */
.loading-message {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 30px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.page-btn:hover {
    background-color: #f5f5f5;
    border-color: #1a9d8e;
    color: #1a9d8e;
}

.page-btn.active {
    background-color: #1a9d8e;
    color: #fff;
    border-color: #1a9d8e;
}

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

#pageNumbers {
    display: flex;
    gap: 5px;
}

/* 검색 영역 */
.search-section {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
}

.search-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 300px;
}

.search-input:focus {
    outline: none;
    border-color: #1a9d8e;
}

.btn-search {
    padding: 10px 30px;
    background-color: #1a9d8e;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-search:hover {
    background-color: #158f81;
}

/* 반응형 */
@media (max-width: 768px) {
    .board-wrapper {
        padding: 12px;
        overflow: hidden;
    }

    .board-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-write {
        width: 100%;
    }

    .board-table {
        font-size: 12px;
    }

    .board-table th,
    .board-table td {
        padding: 10px 5px;
    }

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

    .col-no {
        width: 40px;
    }

    .col-date {
        width: 80px;
        font-size: 11px;
    }

    /* 페이지네이션 모바일 */
    .pagination {
        flex-wrap: wrap;
        gap: 4px;
        padding: 0 5px;
    }

    #pageNumbers {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .page-btn {
        padding: 6px 9px;
        font-size: 12px;
        min-width: 32px;
    }

    .search-section {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .btn-search {
        width: 100%;
    }
}


/* 크롤링 배지 스타일 */
.crawled-badge {
    display: inline-block;
    padding: 2px 6px;
    background-color: #17a2b8;
    color: white;
    font-size: 10px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}
