/* Fix mobile pour les embeds de communauté */

/* Styles de base améliorés */
.publication-community-embed .community-embed__inner {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.publication-community-embed .community-embed__info .community-embed__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badges de certification/partenaire */
.publication-community-embed .community-embed__info .community-embed__name .user-name-holder__badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 0;
}

.publication-community-embed .community-embed__info .community-embed__name .user-name-holder__badge svg {
    width: 16px;
    height: 16px;
    fill: var(--cl-primary-color);
}

.publication-community-embed .community-embed__info .community-embed__name svg.private-icon {
    flex-shrink: 0;
}

.publication-community-embed .community-embed__info .community-embed__stats {
    flex-wrap: wrap;
    font-weight: 600;
}

.publication-community-embed .community-embed__action button.btn-community-action {
    white-space: nowrap;
}

/* Media query pour tablettes et petits écrans */
@media (max-width: 1200px) {
    .publication-community-embed .community-embed__inner {
        padding: 10px;
        flex-wrap: wrap;
    }
    
    .publication-community-embed .community-embed__avatar {
        width: 40px !important;
        height: 40px !important;
        margin-right: 10px !important;
    }
    
    .publication-community-embed .community-embed__info {
        flex: 1 1 auto;
        min-width: 0;
    }
    
    .publication-community-embed .community-embed__info .community-embed__name {
        font-size: 13px !important;
        margin-bottom: 2px !important;
    }
    
    .publication-community-embed .community-embed__info .community-embed__name .user-name-holder__badge svg {
        width: 14px !important;
        height: 14px !important;
        fill: var(--cl-primary-color) !important;
    }
    
    .publication-community-embed .community-embed__info .community-embed__stats {
        font-size: 11px !important;
        gap: 4px !important;
    }
    
    .publication-community-embed .community-embed__action {
        margin-left: auto !important;
        padding-left: 10px;
    }
    
    .publication-community-embed .community-embed__action button.btn-community-action {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}

/* Media query pour très petits écrans / mobiles */
@media (max-width: 400px) {
    .publication-community-embed .community-embed__inner {
        flex-wrap: wrap;
    }
    
    .publication-community-embed .community-embed__action {
        flex-basis: 100%;
        margin-left: 0 !important;
        margin-top: 10px;
        padding-left: 50px;
    }
    
    .publication-community-embed .community-embed__action button.btn-community-action {
        width: 100%;
        display: block;
    }
}

