/* ===================================
   게시판 목록형 스타일 CSS
   style-board-list.css
   =================================== */

/* ===================================
   기본 목록형 게시판
   =================================== */
.board-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.board-list .table {
    margin-bottom: 0;
}

.board-list th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding: 1rem;
}

.board-list td {
    padding: 1rem;
    vertical-align: middle;
}

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

.board-list tbody tr:hover {
    background-color: #f8f9fa;
}

/* ===================================
   향상된 목록형 게시판
   =================================== */
.board-list.enhanced {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.board-list.enhanced .table {
    margin-bottom: 0;
}

.board-list.enhanced th {
    background: linear-gradient(to bottom, #f8f9fa, #f1f3f5);
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid var(--color-primary);
    padding: 1.25rem 1rem;
    white-space: nowrap;
}

.board-list.enhanced td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
}

.board-list.enhanced tr {
    transition: all 0.2s;
}

.board-list.enhanced tbody tr:hover {
    background: #f8f9fa;
    transform: translateX(2px);
}

/* 향상된 게시글 제목 영역 */
.board-list.enhanced .post-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.board-list.enhanced .post-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
}

.board-list.enhanced .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-list.enhanced .post-info {
    flex: 1;
}

.board-list.enhanced .post-badges {
    display: flex;
    gap: 0.375rem;
    margin-top: 0.25rem;
}

.board-list.enhanced .post-badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    font-size: 0.7rem;
    border-radius: 3px;
    font-weight: 500;
}

.board-list.enhanced .badge-new {
    background: #e7f3ff;
    color: #0066cc;
}

.board-list.enhanced .badge-hot {
    background: #fee;
    color: #dc3545;
}

.board-list.enhanced .badge-attach {
    background: #f0f0f0;
    color: #6c757d;
}

/* ===================================
   심플 목록형 게시판
   =================================== */
.board-list.simple {
    background: transparent;
    box-shadow: none;
}

.board-list.simple .table {
    border: none;
}

.board-list.simple th {
    background: transparent;
    border-top: none;
    border-bottom: 1px solid #dee2e6;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.board-list.simple td {
    border-top: 1px solid #f0f0f0;
    padding: 0.75rem 0.5rem;
}

.board-list.simple tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* ===================================
   컴팩트 목록형
   =================================== */
.board-list.compact th,
.board-list.compact td {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.board-list.compact .comment-count {
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
}

/* ===================================
   목록형 반응형
   =================================== */
@media (max-width: 768px) {
    /* 목록형 테이블 반응형 */
    .board-list {
        overflow-x: auto;
    }
    
    .board-list table {
        min-width: 600px;
    }
    
    /* 향상된 목록형 모바일 조정 */
    .board-list.enhanced tbody tr:hover {
        transform: none;
    }
}

@media (max-width: 576px) {
    /* 목록형 향상된 스타일 모바일 */
    .board-list.enhanced .post-thumbnail {
        display: none;
    }
    
    /* 특정 컬럼 숨기기 */
    .board-list th:nth-child(3),
    .board-list td:nth-child(3),
    .board-list th:nth-child(5),
    .board-list td:nth-child(5) {
        display: none;
    }
    
    .board-list.enhanced th:nth-child(3),
    .board-list.enhanced td:nth-child(3),
    .board-list.enhanced th:nth-child(5),
    .board-list.enhanced td:nth-child(5) {
        display: none;
    }
    
    /* 컴팩트 스타일 강제 적용 */
    .board-list th,
    .board-list td {
        padding: 0.5rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .board-list .post-title {
        font-size: 0.9rem;
    }
}