/* 탭 게시판 스타일 (tab-board.css) */
.tab-board-container {
    max-width: 100%;
    margin: 0 auto;
    background-color: #fff;
    overflow: hidden;
}

/* 탭 스타일 */
.tab-board-tabs {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 100;
}

.tab-board-tab {
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    text-align: center;
    flex: 1;
    border-bottom: 2px solid transparent;
}

.tab-board-tab.active {
    color: #4285f4;
    border-bottom: 2px solid #4285f4;
    font-weight: 600;
}

.tab-board-tab:hover {
    background-color: #f0f2f5;
}

/* 게시물 컨테이너 */
.tab-board-content {
    padding: 0;
    min-height: 300px;
}

/* 게시물 리스트 */
.tab-board-posts {
    padding: 0;
}

/* 게시물 아이템 */
.tab-board-post {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.tab-board-post:hover {
    background-color: #f8f9fa;
}

.tab-board-post:last-child {
    border-bottom: none;
}

/* 게시물 제목 */
.tab-board-post-title {
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.4;
    position: relative;
}

.tab-board-post-title a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.tab-board-post-title a:hover {
    color: #4285f4;
}

/* 새 글 표시 */
.tab-board-new {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 5px;
    background-color: #ff4957;
    color: white;
    font-size: 11px;
    border-radius: 4px;
    font-weight: bold;
    vertical-align: middle;
    line-height: 1.3;
}

/* 게시물 메타 정보 */
.tab-board-post-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
}

/* 더보기 버튼 */
.tab-board-load-more {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-top: 1px solid #eaeaea;
}

.tab-board-load-more:hover {
    background-color: #f0f2f5;
    color: #333;
}

/* 내용 없음 메시지 */
.tab-board-no-posts, 
.tab-board-no-categories {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* 로딩 표시 */
.tab-board-loading {
    text-align: center;
    padding: 20px;
    color: #888;
}

/* 로딩 애니메이션 */
.tab-board-loading:after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    vertical-align: text-bottom;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .tab-board-tabs {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .tab-board-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    
    .tab-board-tab {
        padding: 12px 15px;
        font-size: 14px;
        flex: 0 0 auto;
    }
    
    .tab-board-post {
        padding: 14px 15px;
    }
    
    .tab-board-post-title {
        font-size: 14px;
    }
}