/* Community Page Styles - Isolated from global styles */

/* CSS 변수 정의 - 커뮤니티 페이지 전용 */
.community-page {
    --cm-primary-color: #667eea;
    --cm-primary-dark: #5a67d8;
    --cm-secondary-color: #764ba2;
    --cm-accent-color: #f093fb;
    --cm-success-color: #48bb78;
    --cm-warning-color: #ed8936;
    --cm-danger-color: #f56565;
    --cm-info-color: #4299e1;
    
    --cm-text-primary: #2d3748;
    --cm-text-secondary: #4a5568;
    --cm-text-muted: #718096;
    
    --cm-bg-primary: #ffffff;
    --cm-bg-secondary: #f7fafc;
    --cm-bg-tertiary: #edf2f7;
    
    --cm-border-light: #e2e8f0;
    --cm-border-medium: #cbd5e0;
    
    --cm-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --cm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --cm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --cm-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --cm-radius-sm: 6px;
    --cm-radius-md: 8px;
    --cm-radius-lg: 12px;
    --cm-radius-xl: 16px;
    
    /* 커뮤니티 페이지 스타일 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    line-height: 1.6;
    color: var(--cm-text-primary);
}

.community-main-wrapper {
    flex: 1;
    padding-top: 20px; /* 헤더와의 적절한 여백 */
}

/* 커뮤니티 헤더 스타일 */
.community-main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.community-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.community-header-left .community-logo {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.community-header-left .community-logo i {
    color: #ffd700;
}

.community-header-nav {
    display: flex;
    gap: 32px;
}

.community-nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.community-nav-link:hover,
.community-nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.community-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.community-user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.community-username {
    color: white;
    font-weight: 500;
}

.community-logout-btn,
.community-login-btn {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.community-logout-btn:hover,
.community-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.community-dark-mode-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.community-dark-mode-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.community-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 24px;
    min-height: calc(100vh - 300px);
}

/* 왼쪽 사이드바 */
.community-sidebar-left {
    background: var(--cm-bg-primary);
    border-radius: var(--cm-radius-lg);
    box-shadow: var(--cm-shadow-lg);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 120px;
    border: 1px solid var(--cm-border-light);
}

/* 회원 정보 카드 */
.community-user-info {
    margin-bottom: 24px;
}

.community-user-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: none;
    color: white;
}

.community-user-header h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.community-user-content {
    text-align: center;
}

.community-points-info {
    margin-bottom: 0;
}

.community-points-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.community-points-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.community-points-icon i {
    color: #ffd700;
}

.community-points-details {
    text-align: left;
}

.community-points-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 2px;
}

.community-points-value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.community-sidebar-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--cm-border-light);
}

.community-sidebar-header h3 {
    margin: 0;
    color: var(--cm-text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.community-sidebar-header h3 i {
    color: var(--cm-primary-color);
    font-size: 1.1rem;
}

.community-board-group {
    margin-bottom: 24px;
}

.community-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--cm-bg-secondary) 0%, var(--cm-bg-tertiary) 100%);
    border-radius: var(--cm-radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--cm-border-light);
}

.community-group-header:hover {
    background: linear-gradient(135deg, var(--cm-primary-color) 0%, var(--cm-secondary-color) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--cm-shadow-md);
}

.community-group-header:hover .community-group-count {
    color: rgba(255, 255, 255, 0.8);
}

.community-group-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.community-group-count {
    color: var(--cm-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.community-group-boards {
    margin-top: 12px;
    padding-left: 12px;
}

.community-board-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 40px 12px 16px; /* RSS 버튼 공간 확보 */
    border-radius: var(--cm-radius-md);
    text-decoration: none;
    color: var(--cm-text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 8px;
    border: 1px solid transparent;
    position: relative;
}

.community-board-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: var(--cm-primary-color);
    transform: translateX(8px);
    border-color: var(--cm-border-light);
    box-shadow: var(--cm-shadow-sm);
}

.community-board-link.current {
    background: linear-gradient(135deg, var(--cm-primary-color) 0%, var(--cm-secondary-color) 100%);
    color: white;
    transform: translateX(8px);
    box-shadow: var(--cm-shadow-md);
}

.community-board-link.current .community-board-stats {
    color: rgba(255, 255, 255, 0.8);
}

.community-board-icon {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

.community-board-info {
    flex: 1;
}

.community-board-name {
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.community-board-stats {
    font-size: 0.8rem;
    color: var(--cm-text-muted);
    font-weight: 500;
}

.community-empty-boards {
    padding: 16px;
    text-align: center;
    background: linear-gradient(135deg, var(--cm-bg-secondary) 0%, var(--cm-bg-tertiary) 100%);
    border-radius: var(--cm-radius-md);
    border: 1px solid var(--cm-border-light);
    margin: 12px 0;
}

.community-empty-boards-text {
    color: var(--cm-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    font-style: italic;
}

/* 메인 콘텐츠 */
.community-main-content {
    background: var(--cm-bg-primary);
    border-radius: var(--cm-radius-lg);
    box-shadow: var(--cm-shadow-lg);
    overflow: hidden;
    border: 1px solid var(--cm-border-light);
}

.community-board-header {
    background: linear-gradient(135deg, var(--cm-primary-color) 0%, var(--cm-secondary-color) 100%);
    color: white;
    padding: 32px 36px;
    position: relative;
    overflow: hidden;
}

.community-board-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.community-board-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.community-board-title i {
    font-size: 2rem;
    color: var(--cm-accent-color);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.community-board-title h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.community-board-description {
    margin: 0;
    opacity: 0.95;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.community-write-btn {
    background: linear-gradient(135deg, var(--cm-accent-color) 0%, var(--cm-warning-color) 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--cm-radius-md);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    float: right;
    margin-top: -16px;
    box-shadow: var(--cm-shadow-md);
    position: relative;
    z-index: 1;
}

.community-write-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--cm-shadow-xl);
    background: linear-gradient(135deg, #e879f9 0%, #fb923c 100%);
}

/* RSS 버튼 스타일 */
.community-board-actions {
    display: flex;
    gap: 12px;
    float: right;
    margin-top: -16px;
    position: relative;
    z-index: 1;
}

.community-rss-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: var(--cm-radius-md);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--cm-shadow-md);
    font-size: 0.9rem;
}

.community-rss-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--cm-shadow-xl);
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
    color: white;
    text-decoration: none;
}

.community-rss-btn i {
    font-size: 1rem;
}

/* 게시판 목록 RSS 버튼 - 유니크 네이밍 */
.community-sidebar-board-rss {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.community-board-link:hover .community-sidebar-board-rss {
    opacity: 1;
}

.community-sidebar-board-rss-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.7rem;
    box-shadow: var(--cm-shadow-sm);
}

.community-sidebar-board-rss-link:hover {
    transform: scale(1.1);
    box-shadow: var(--cm-shadow-md);
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
    color: white;
    text-decoration: none;
}

.community-board-link.current .community-sidebar-board-rss {
    opacity: 1;
}

.community-board-link.current .community-sidebar-board-rss-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.community-board-link.current .community-sidebar-board-rss-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.community-search-bar {
    padding: 24px 36px;
    background: linear-gradient(135deg, var(--cm-bg-secondary) 0%, var(--cm-bg-tertiary) 100%);
    border-bottom: 1px solid var(--cm-border-light);
}

.community-search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.community-search-select {
    padding: 12px 16px;
    border: 2px solid var(--cm-border-light);
    border-radius: var(--cm-radius-md);
    background: var(--cm-bg-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--cm-text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.community-search-select:focus {
    outline: none;
    border-color: var(--cm-primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.community-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--cm-border-light);
    border-radius: var(--cm-radius-md);
    font-size: 14px;
    background: var(--cm-bg-primary);
    color: var(--cm-text-primary);
    transition: all 0.3s ease;
}

.community-search-input:focus {
    outline: none;
    border-color: var(--cm-primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.community-search-input::placeholder {
    color: var(--cm-text-muted);
}

.community-search-btn {
    background: linear-gradient(135deg, var(--cm-primary-color) 0%, var(--cm-secondary-color) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--cm-radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    box-shadow: var(--cm-shadow-sm);
}

.community-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--cm-shadow-md);
}

.community-posts-container {
    padding: 0;
}

.community-posts-table {
    background: var(--cm-bg-primary);
    border-radius: 0;
    overflow: hidden;
    border: none;
    width: 100%;
}

.community-posts-table-inner {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.community-posts-table-inner thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.community-posts-table-inner th {
    padding: 16px 12px;
    text-align: center;
    font-weight: 700;
    color: #ffffff;
    border-bottom: 3px solid #5a67d8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.community-posts-table-inner th:first-child {
    border-top-left-radius: 8px;
}

.community-posts-table-inner th:last-child {
    border-top-right-radius: 8px;
}

.community-posts-table-inner td {
    padding: 16px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    background: white;
    transition: background-color 0.2s ease;
}

.community-posts-table-inner tbody tr:last-child td {
    border-bottom: none;
}

/* 제목 열만 왼쪽 정렬 */
.community-posts-table-inner td.community-col-title {
    text-align: left;
}

.community-post-row {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.community-post-row:hover {
    background-color: #f8fafc;
}

.community-post-row:hover td {
    background-color: #f8fafc;
}

.community-first-post {
    position: relative;
}

.community-first-post::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #dc3545;
}

.community-col-checkbox {
    width: 40px;
    text-align: center;
}

.community-col-number {
    width: 80px;
    text-align: center;
    font-weight: 600;
    color: var(--cm-text-secondary);
}

.community-col-title {
    width: auto;
    text-align: center;
}

.community-col-author {
    width: 120px;
    text-align: center;
}

.community-col-date {
    width: 100px;
    text-align: center;
    color: var(--cm-text-muted);
    font-size: 0.9rem;
}

.community-col-views {
    width: 80px;
    text-align: center;
    color: var(--cm-text-muted);
    font-size: 0.9rem;
}

.community-col-admin {
    width: 120px;
    text-align: center;
}

.community-post-title-link {
    color: var(--cm-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.community-post-title-link:hover {
    color: var(--cm-primary-color);
}

.community-author-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cm-text-primary);
}

.community-member-badge {
    display: block;
    font-size: 0.7rem;
    color: var(--cm-primary-color);
    font-weight: 600;
    margin-top: 2px;
}

/* 관리자 기능 스타일 */
.community-admin-controls {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.community-admin-btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--cm-radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.community-btn-popular {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.community-btn-pinned {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    color: white;
}

.community-btn-notice {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
    color: white;
}

.community-btn-delete {
    background: linear-gradient(135deg, #ff4757, #c44569);
    color: white;
}

.community-admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--cm-shadow-md);
}

.community-admin-actions {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.community-admin-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: var(--cm-bg-secondary);
    color: var(--cm-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.community-admin-action-btn:hover {
    background: var(--cm-primary-color);
    color: white;
    transform: scale(1.1);
}

/* 게시글 상태 배지 */
.community-notice-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

.community-pinned-badge {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

.community-popular-badge {
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

/* 특수 게시글 행 스타일 */
.community-notice-post {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(238, 90, 36, 0.1));
    border-left: 4px solid #ff6b6b;
}

.community-pinned-post {
    background: linear-gradient(135deg, rgba(254, 202, 87, 0.1), rgba(255, 159, 243, 0.1));
    border-left: 4px solid #feca57;
}

.community-table-popular-post {
    background: linear-gradient(135deg, rgba(255, 159, 243, 0.05), rgba(243, 104, 224, 0.02));
    border-left: 3px solid #ff9ff3;
}

.community-table-popular-post td {
    background: linear-gradient(135deg, rgba(255, 159, 243, 0.05), rgba(243, 104, 224, 0.02));
}

.community-empty-state {
    text-align: center;
    padding: 80px 40px;
    color: var(--cm-text-muted);
    background: linear-gradient(135deg, var(--cm-bg-secondary) 0%, var(--cm-bg-tertiary) 100%);
    border-radius: var(--cm-radius-lg);
    margin: 20px 0;
}

.community-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--cm-radius-md);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--cm-shadow-sm);
}

.community-btn-primary {
    background: linear-gradient(135deg, var(--cm-primary-color) 0%, var(--cm-secondary-color) 100%);
    color: white;
}

.community-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--cm-shadow-lg);
}

.community-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-bottom: 20px;
}

/* 오른쪽 사이드바 */
.community-sidebar-right {
    background: var(--cm-bg-primary);
    border-radius: var(--cm-radius-lg);
    box-shadow: var(--cm-shadow-lg);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 120px;
    border: 1px solid var(--cm-border-light);
}

.community-sidebar-section {
    margin-bottom: 32px;
}

.community-sidebar-section h4 {
    margin: 0 0 20px 0;
    color: var(--cm-text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--cm-border-light);
}

.community-sidebar-section h4 i {
    color: var(--cm-primary-color);
    font-size: 1.1rem;
}

/* 인기글 스타일 - 빨간색 테마 */
.community-popular-post {
    padding: 12px;
    margin-bottom: 8px;
    border: 2px solid #ff6b6b;
    border-radius: var(--cm-radius-md);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(238, 90, 36, 0.05));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.community-popular-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

/* 최신글 스타일 - 파란색 테마 */
.community-recent-post {
    padding: 12px;
    margin-bottom: 8px;
    border: 2px solid #4299e1;
    border-radius: var(--cm-radius-md);
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.1), rgba(59, 130, 246, 0.05));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.community-recent-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #4299e1, #3b82f6);
}

.community-popular-post:last-child,
.community-recent-post:last-child {
    margin-bottom: 0;
}

.community-popular-post:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(238, 90, 36, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    border-color: #ee5a24;
}

.community-recent-post:hover {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.15), rgba(59, 130, 246, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
    border-color: #3b82f6;
}

.community-post-link {
    text-decoration: none;
    color: var(--cm-text-secondary);
    transition: all 0.3s ease;
}

.community-post-link:hover {
    color: var(--cm-primary-color);
}

.community-post-title-small {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.5;
    color: var(--cm-text-primary);
}

.community-post-meta-small {
    font-size: 0.8rem;
    color: var(--cm-text-muted);
    font-weight: 500;
}

/* 오류 메시지 */
.community-error-banner {
    background: #fff3cd;
    color: #856404;
    padding: 15px 20px;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 수다 채널 바 스타일 */
.community-suda-channels-bar {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 60px 0;
    margin-top: 40px;
}

.community-channels-header {
    text-align: center;
    margin-bottom: 40px;
}

.community-suda-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.community-suda-logo i {
    color: #ffd700;
}

.community-channels-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin: 0;
}

.community-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.community-channel-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--cm-radius-lg);
    padding: 24px;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.community-channel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.community-channel-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.community-channel-info {
    flex: 1;
}

.community-channel-info h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.community-channel-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.community-channel-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.community-channel-card.youtube .community-channel-icon { background: #ff0000; }
.community-channel-card.chzzk .community-channel-icon { background: #00ff88; }
.community-channel-card.kakao .community-channel-icon { background: #fee500; color: #3c1e1e; }
.community-channel-card.wiki .community-channel-icon { background: #8b5cf6; }
.community-channel-card.discord .community-channel-icon { background: #5865f2; }
.community-channel-card.email .community-channel-icon { background: #ea4335; }
.community-channel-card.instagram .community-channel-icon { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.community-channel-card.twitter .community-channel-icon { background: #1da1f2; }
.community-channel-card.github .community-channel-icon { background: #333; }

/* 푸터 스타일 */
.community-footer {
    background: #1a202c;
    color: white;
    padding: 40px 0 20px;
}

.community-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.community-footer-section h4 {
    color: #ffd700;
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.community-footer-section p {
    margin: 0;
    opacity: 0.8;
    line-height: 1.6;
}

.community-footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.community-footer-section ul li {
    margin-bottom: 8px;
}

.community-footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.community-footer-section ul li a:hover {
    opacity: 1;
    color: #ffd700;
}

.community-footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 20px;
}

.community-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.community-footer-info p {
    margin: 0;
    opacity: 0.8;
}

.community-footer-extra-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.community-footer-extra-links span {
    opacity: 0.8;
}

.community-footer-extra-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.community-footer-extra-links a:hover {
    opacity: 1;
    color: #ffd700;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .community-container {
        grid-template-columns: 250px 1fr 250px;
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .community-main-wrapper {
        padding-top: 80px;
    }
    
    .community-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 16px;
    }
    
    .community-sidebar-left,
    .community-sidebar-right {
        position: static;
    }
    
    .community-channels-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .community-footer-info {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   SIDEBAR STYLES - View.php와 동일한 디자인
   ======================================== */

/* 왼쪽 사이드바 */
.community-container .sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
    border: 1px solid #e9ecef;
}

.community-container .sidebar-header {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 1rem;
}

.community-container .sidebar h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 회원 정보 카드 스타일 */
.user-info-section {
    margin-bottom: 1.5rem;
}

.user-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.user-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.user-info-header h3 {
    color: white;
    margin: 0 0 0.8rem 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info-header i {
    color: #ffd700;
}

.user-info-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 0.8rem;
    backdrop-filter: blur(10px);
}

.points-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.points-display {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.points-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.points-icon i {
    color: #b8860b;
    font-size: 14px;
}

.points-details {
    flex: 1;
}

.points-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.points-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 게시판 그룹 스타일 */
.community-container .board-groups {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.community-container .board-group {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.community-container .group-header {
    margin-bottom: 1rem;
}

.community-container .group-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.community-container .group-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.community-container .group-info h4::before {
    content: '📁';
    font-size: 0.9rem;
}

.community-container .group-count {
    font-size: 0.8rem;
    color: #6c757d;
    background: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 500;
}

.community-container .group-boards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.community-container .board-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 1px solid transparent;
    background: white;
    position: relative;
}

.community-container .board-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.community-container .board-link:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #667eea;
    border-color: #e9ecef;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.community-container .board-link:hover::before {
    transform: scaleY(1);
}

.community-container .board-link.current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.community-container .board-link.current::before {
    transform: scaleY(1);
    background: rgba(255,255,255,0.3);
}

.community-container .board-icon {
    margin-right: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.community-container .board-icon i {
    font-size: 0.9rem;
    color: #6c757d;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.community-container .board-link:hover .board-icon i,
.community-container .board-link.current .board-icon i {
    opacity: 1;
}

.community-container .board-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.community-container .board-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.community-container .board-stats {
    font-size: 0.75rem;
    color: #6c757d;
    opacity: 0.8;
}

.community-container .board-rss {
    margin-left: 0.5rem;
}

.community-container .board-rss-link {
    color: #6c757d;
    opacity: 0.6;
    transition: all 0.3s ease;
    padding: 0.2rem;
    border-radius: 3px;
}

.community-container .board-rss-link:hover {
    color: #ff6600;
    opacity: 1;
    background: rgba(255, 102, 0, 0.1);
}

.community-container .empty-boards {
    text-align: center;
    padding: 1rem;
    color: #6c757d;
    font-size: 0.85rem;
    font-style: italic;
}

/* 반응형 디자인 - 회원 정보 카드 */
@media (max-width: 768px) {
    .user-info-card {
        padding: 0.8rem;
    }
    
    .points-display {
        gap: 0.6rem;
    }
    
    .points-icon {
        width: 28px;
        height: 28px;
    }
    
    .points-icon i {
        font-size: 12px;
    }
    
    .points-value {
        font-size: 1rem;
    }
}
