/* Profile page — dark social card matching the design mockup */

.ms-profile-card {
    background: #1c1d20;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.ms-profile-cover {
    height: 180px;
    background: linear-gradient(135deg, #23262e 0%, #17181c 60%, #101114 100%);
    position: relative;
    overflow: hidden;
}

.ms-profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ms-profile-body {
    padding: 0 1.5rem 0;
}

.ms-profile-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 4px solid #1c1d20;
    margin-top: -56px;
    position: relative;
    background: #323435;
    overflow: hidden;
    flex-shrink: 0;
}

.ms-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ms-profile-avatar .ms-profile-avatar-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    background: #4b93ff;
}

.ms-profile-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.9rem;
}

.ms-profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0;
}

.ms-profile-meta {
    color: rgba(233, 234, 235, 0.62);
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
}

.ms-profile-meta .bi {
    margin-right: 0.25rem;
}

.ms-profile-bio {
    color: #e9eaeb;
    margin: 0.75rem 0 0;
    max-width: 60ch;
}

.ms-profile-visibility {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(233, 234, 235, 0.62);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2rem;
    padding: 0.2rem 0.7rem;
    margin-top: 0.6rem;
}

.ms-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.ms-profile-actions .btn {
    border-radius: 2rem;
    padding: 0.45rem 1.15rem;
    font-weight: 600;
}

.ms-profile-stats {
    display: flex;
    gap: 1.75rem;
    padding: 1.1rem 0 1.25rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ms-profile-stat {
    text-align: left;
}

.ms-profile-stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.ms-profile-stat-label {
    font-size: 0.78rem;
    color: rgba(233, 234, 235, 0.55);
}

/* Tab bar — active tab gets the accent underline */
.ms-profile-tabs {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
}

.ms-profile-tabs .nav-link {
    color: rgba(233, 234, 235, 0.62);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.8rem 1rem;
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    background: none;
}

.ms-profile-tabs .nav-link:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.ms-profile-tabs .nav-link.active {
    color: #fff;
    border-bottom-color: #4b93ff;
    background: none;
}

/* Friend state chip */
.ms-profile-friend-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
    font-weight: 600;
    border-radius: 2rem;
    padding: 0.45rem 1rem;
}

/* Locked / empty states inside the profile flow */
.ms-profile-locked {
    background: #1c1d20;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
}

@media (max-width: 576px) {
    .ms-profile-stats {
        gap: 1.1rem;
        flex-wrap: wrap;
    }

    .ms-profile-body {
        padding: 0 1rem 0;
    }
}
