.community-page-container {
    background: #fff;
    overflow: hidden;
}

/* 네비게이션 탭 스타일 */
.community-nav-tabs {
    display: flex;
    gap: 8px;
    padding: 15px 20px;
    overflow-x: auto;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    color: var(--color-text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-tab:hover {
    background: var(--color-primary);
    color: var(--color-secondary);
    border: 1px solid var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--color-shadow);
}

.nav-tab.active {
    background: var(--color-primary);
    color: var(--color-secondary);
    border: 1px solid var(--color-primary);
}

.nav-tab-icon {
    font-size: 14px;
}

.nav-tab-text {
    font-weight: 500;
}

.nav-tab-count {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-left: 4px;
}

.category-description {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin: 16px;
    animation: slideDown 0.3s ease-out;
}

.category-description-content {
    font-size: 14px;
    line-height: 1.6;
    color: #6c757d;
    white-space: pre-line;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 로딩 스피너 */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 더 이상 게시글이 없을 때 */
.no-more-posts {
    text-align: center;
    padding: 20px;
    color: var(--color-text-muted);
    font-size: 14px;
}

.community-post-list {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--color-shadow);
    box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.community-post-item {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.community-post-item:last-child {
    border-bottom: none;
}

.community-post-content {
    width: 100%;
}

.community-post-category {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.community-post-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.community-post-username {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.community-post-time {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 8px;
}

.community-post-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.community-post-excerpt {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.community-post-metrics {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 8px;
}

.community-metric-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.community-metric-icon {
    font-size: 14px;
}

/* 반응형 스타일 */
@media (max-width: 480px) {
    .community-page-container {
        padding: 15px;
    }
    
    .community-nav-tabs {
        padding: 15px 0;
    }

    .category-description {
        margin: 16px 0;
    }

    .community-post-item {
        padding: 16px 8px;
    }

    .community-post-title {
        font-size: 15px;
    }

    .community-post-excerpt {
        font-size: 13px;
    }
}

/* 플로팅 글쓰기 버튼 */
.floating-write-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-write-btn:hover {
    transform: translateY(-2px) scale(1.05);
}