/* Share Button Styles */
.share-button button {
    transition: background-color 0.3s ease;
    background: #e76e3c;
    color: white;
    width: 90px;
    justify-content: center;
    margin-top: -2px;
    height: 40px;
    border: none;
    padding: 10px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.share-button button:hover {
    background-color: #2A3242 !important;
    color: white !important;
}

/* Avatar and Header Styles */
#item-header-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#buddypress #item-header-cover-image #item-header-avatar {
    margin-top: -130px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#item-header-avatar img.avatar {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin-bottom: 10px;
}

#item-header-content {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Main Content Layout */
.flex {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

/* New column layout to avoid left shift when actions exist */
.profile-header-columns {

    gap: 20px;
    align-items: start;
    width: 100%;
}

.bb-user-content-wrap {
    min-width: 300px;
    width: 100%;
    max-width: 100%;
}

.member-title-wrap {
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    width: 100%;
}

.user-nicename {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

/* Profile Meta Line - Responsive Grid */
.profile-meta-line {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: -15px;
    text-align: center;
}

.meta-col {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.member-social {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 8px;
    flex-wrap: wrap;
}

.followers-wrap,
.following-wrap {
    font-size: 14px;
    color: #666;
}

.item-meta {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    text-align: center;
    line-height: 1.4;
}

.mention-name {
    font-weight: 500;
}

.separator {
    margin: 0 8px;
    color: #999;
}

/* About Me Section */
.about-me {
    width: 100%;
    max-width: 600px;
    margin: 20px auto 0;
    text-align: left;
    font-size: 15px;
    line-height: 1.6;
    margin-top:-20px;
}

.bbpch-readmore {
    cursor: pointer;
    background: transparent;
    color: #e76e3c;
    padding: 0;
    font-size: 14px;
    margin-left: 5px;
    text-decoration: none;
}

.bbpch-readmore:hover {
    text-decoration: underline;
}

/* Member Header Actions */
.member-header-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    min-width: 200px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .profile-meta-line {
        grid-template-columns: 1fr 2fr 1fr;
        text-align: left;
    }
    
    .meta-left {
        justify-content: flex-start;
    }
    
    .meta-center {
        justify-content: center;
    }
    
    .meta-right {
        justify-content: flex-end;
    }
    
    .member-social {
        justify-content: flex-start;
    }
    
    .item-meta {
        text-align: center;
    }
    
    /* Two columns on desktop: content and actions */
    .profile-header-columns {
        grid-template-columns: 1fr 280px;
        align-items: start;
    }
    .member-header-actions {
        align-items: flex-end;
        justify-content: flex-start;
    }
}

@media (min-width: 1024px) {
    .profile-meta-line {
        grid-template-columns: 1fr 2fr 1fr;
    }
    
    .member-social {
        gap: 30px;
    }
}

@media (max-width: 767px) {
    #item-header-avatar img.avatar {
        width: 140px;
        height: 140px;
    }
    
    .user-nicename {
        font-size: 20px;
    }
    
    .member-social {
        gap: 15px;
        justify-content: center;
    }
    
    .about-me {
        max-width: 100%;
        margin: 15px 0 0;
    }
    
    .profile-header-columns {
        grid-template-columns: 1fr;
    }
    .member-header-actions {
        width: 100%;
        max-width: 100%;
        align-items: center;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    #item-header-avatar img.avatar {
        width: 120px;
        height: 120px;
    }
    
    .user-nicename {
        font-size: 18px;
    }
    
    .member-social {
        flex-direction: column;
        gap: 8px;
    }
    
    .item-meta {
        font-size: 13px;
    }
    
    .about-me {
        font-size: 14px;
    }
}

