/* Styles pour la page de communauté */
body { 
    background: #f8f9fa; 
}

.main-content-container { 
    display: flex; 
    justify-content: center; 
    padding: 20px;
}

.main-content-container-inner { 
    display: flex; 
    width: 100%; 
    max-width: 1400px;
    gap: 30px;
}

.left-sb-container { 
    width: 260px; 
    min-width: 220px;
    flex-shrink: 0;
}

.timeline-container-wrapper { 
    flex: 1 1 0; 
    max-width: 700px;
}

.right-sidebar { 
    width: 320px; 
    min-width: 260px;
    flex-shrink: 0;
}

.community-header { 
    background: #fff; 
    border-radius: 10px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.07); 
    margin-bottom: 30px; 
    overflow: hidden; 
}

.community-cover img { 
    width: 100%; 
    height: 180px; 
    object-fit: cover; 
    display: block; 
}

.community-header-content { 
    display: flex; 
    align-items: flex-start; 
    gap: 20px; 
    padding: 24px; 
}

.community-avatar { 
    width: 90px; 
    height: 90px; 
    border-radius: 50%; 
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: -45px;
}

.community-avatar img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.community-details h1 { 
    margin: 0 0 8px 0; 
    font-size: 2rem;
    color: #333;
}

.community-details p { 
    margin: 0 0 10px 0; 
    color: #666;
    line-height: 1.5;
}

.community-stats { 
    color: #888; 
    font-size: 15px; 
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.community-form { 
    background: #fff; 
    border-radius: 10px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); 
    margin-bottom: 24px; 
    padding: 18px 20px; 
}

.community-posts { 
    margin-top: 10px; 
}

.no-posts { 
    text-align: center; 
    color: #aaa; 
    padding: 40px 0; 
    font-size: 18px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.community-sidebar { 
    background: #fff; 
    border-radius: 10px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.07); 
    padding: 24px; 
    margin-bottom: 30px; 
}

.community-rules h3, 
.community-admin h3 { 
    font-size: 1.1rem; 
    margin-bottom: 10px;
    color: #333;
}

.community-rules ul { 
    padding-left: 18px; 
    margin: 0 0 10px 0; 
}

.community-rules li { 
    margin-bottom: 6px; 
    color: #555;
    line-height: 1.4;
}

.admin-actions { 
    margin-top: 10px; 
}

.btn.btn-secondary { 
    background: #6c757d; 
    color: #fff; 
    border: none; 
    border-radius: 5px; 
    padding: 8px 18px; 
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.btn.btn-secondary:hover { 
    background: #495057; 
    color: #fff; 
}

/* Responsive styles */
@media screen and (max-width: 1200px) {
    .main-content-container-inner {
        gap: 20px;
    }
    
    .left-sb-container {
        width: 220px;
    }
    
    .right-sidebar {
        width: 280px;
    }
}

@media screen and (max-width: 992px) {
    .main-content-container-inner {
        flex-direction: column;
    }
    
    .left-sb-container,
    .timeline-container-wrapper,
    .right-sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    .community-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .community-avatar {
        margin-top: -45px;
    }
    
    .community-stats {
        justify-content: center;
    }
}

/* Styles pour les communautés uniquement - pas les posts */
.community-sidebar {
    background: var(--cl-primary-bg-color);
    border: 1px solid var(--cl-border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.community-rules-box {
    margin-bottom: 20px;
}

.rules-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--cl-primary-text-color);
}

.rules-content {
    color: var(--cl-secondary-text-color);
    font-size: 14px;
}

.rules-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

.rules-content li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.community-action-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.community-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-success.community-action-btn {
    background: var(--cl-success-color);
    color: white;
}

.btn-success.community-action-btn:hover {
    background: #2aab58;
}

.btn-danger.community-action-btn {
    background: var(--cl-danger-color);
    color: white;
}

.btn-danger.community-action-btn:hover {
    background: #e0245e;
}

/* Thème sombre */
body[data-bg="dark"] .community-sidebar {
    background: var(--cl-secondary-bg-color);
}

body[data-bg="dark"] .rules-title {
    color: var(--cl-primary-text-color);
}

body[data-bg="dark"] .rules-content,
body[data-bg="dark"] .rules-content li {
    color: var(--cl-secondary-text-color);
}

/* Responsive */
@media (max-width: 1100px) {
    .community-sidebar {
        margin-top: 20px;
    }
}

/* S'assurer que les posts utilisent le CSS du système */
.list-posts {
    /* Les posts utiliseront automatiquement le CSS de master.styles.css */
}

/* Harmonisation de la pubbox dans les communautés */
.timeline-container[data-app="community-pubbox"] {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0 0 10px 0;
    margin-bottom: 24px;
    max-width: 700px;
    width: 100%;
}
.timeline-container[data-app="community-pubbox"] .timeline-pubbox-container {
    box-shadow: none;
    border-radius: 12px;
    background: transparent;
    margin: 0;
    padding: 0 20px;
}
.timeline-container[data-app="community-pubbox"] .timeline-pubbox {
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
}
@media (max-width: 700px) {
    .timeline-container[data-app="community-pubbox"] .timeline-pubbox-container {
        padding: 0 5px;
    }
}

/* Message "Aucune publication" - Style amélioré */
.no-posts-found p {
    font-size: 20px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
}

/* Mode sombre - Texte blanc */
body[data-bg="dark"] .no-posts-found p {
    color: #ffffff !important;
}

/* Responsive - plus petit sur mobile */
@media (max-width: 768px) {
    .no-posts-found p {
        font-size: 18px !important;
    }
} 