/* Profile header, avatar preview, biography, and statistics. */

.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.profile-avatar-button {
    width: 70px;
    height: 70px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    flex: 0 0 auto;
    object-fit: cover;
    border: 2px solid #c68b5d;
    border-radius: 50%;
    background: #bec3c3;
}

.profile-avatar-button:focus {
    outline: 2px solid rgba(198, 139, 93, 0.65);
    outline-offset: 3px;
}

.profile-photo-preview {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: grid;
    place-items: center;
    padding: 26px;
    background: rgba(5, 4, 3, 0.84);
    backdrop-filter: blur(4px);
}

.profile-photo-preview img {
    width: min(78vw, 360px);
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid rgba(198, 139, 93, 0.75);
    border-radius: 50%;
    background: #bec3c3;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.5);
}

.profile-photo-preview-close {
    position: absolute;
    top: 22px;
    left: 22px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.profile-photo-preview-close:hover,
.profile-photo-preview-close:focus {
    background: rgba(198, 139, 93, 0.28);
}

.profile-identity {
    min-width: 0;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
}

.profile-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-identity h1 {
    margin: 0;
    color: #ffffff;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.15;
}

.profile-identity p {
    margin: 0;
    color: #b5a99e;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.profile-edit-button {
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.065);
    color: #ead9ca;
    cursor: pointer;
    line-height: 1;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.profile-edit-button svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-edit-button:hover,
.profile-edit-button:focus {
    color: #ffffff;
    background: rgba(198, 139, 93, 0.22);
}

.profile-edit-button:active {
    transform: scale(0.94);
}

.profile-settings-button svg {
    width: 13px;
    height: 13px;
}

.profile-bio {
    max-width: 320px;
    margin: 0 auto 24px;
    color: #d1c5b9;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.75;
    text-align: center;
}

.profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.profile-stat-card {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.065);
    text-align: center;
}

.profile-stat-card strong {
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.profile-stat-card span {
    color: #cbbfb2;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
}


@media (max-width: 420px) {
    .profile-avatar,
    .profile-avatar-button {
        width: 64px;
        height: 64px;
    }

    .profile-identity h1 {
        font-size: 18px;
    }
}
