/* === USERS LIST PAGE === */

.users-list-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 24px;
}

.users-list-header__title {
    font-size: 1.6em;
    margin: 0;
}

.users-list-header__count {
    color: #888;
    font-size: 0.9em;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 20px 14px 16px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.18s, border-color 0.18s;
}

.user-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    border-color: #c8c8c8;
    text-decoration: none;
}

.user-card__avatar img {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.user-card__name {
    font-size: 0.93em;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    margin-bottom: 6px;
}

.user-card__category {
    font-size: 0.78em;
    color: #8b0000;
    font-weight: 500;
}

@media (max-width: 480px) {
    .users-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}


/* === USER PROFILE PAGE === */

.user-profile {
    max-width: 860px;
    margin: 0 auto;
    padding: 30px 0;
}

/* Header: avatar + info side by side */
.user-profile__header {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.user-profile__avatar img {
    display: block;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;
}

.user-profile__meta {
    flex: 1;
    min-width: 0;
}

.user-profile__name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.user-profile__name {
    font-size: 1.7em;
    margin: 0;
    line-height: 1.2;
}

.delete_user_profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #bbb;
    cursor: pointer;
    padding: 5px 7px;
    flex-shrink: 0;
    transition: color 0.15s, border-color 0.15s;
}

.delete_user_profile:hover {
    color: #c0392b;
    border-color: #c0392b;
}

.delete_user_profile:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.user-profile__category {
    display: inline-block;
    background: #8b0000;
    color: #fff;
    font-size: 0.82em;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.user-profile__position {
    color: #555;
    font-size: 0.97em;
    margin-bottom: 12px;
    font-style: italic;
}

/* Status badges */
.user-profile__status-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.user-profile__status-item {
    background: #f4f4f4;
    border: 1px solid #ddd;
    font-size: 0.82em;
    padding: 3px 10px;
    border-radius: 20px;
    color: #333;
}

/* Contacts */
.user-profile__contacts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 14px;
    font-size: 0.92em;
    margin: 0;
}

.user-profile__contacts dt {
    color: #888;
    font-weight: 600;
}

.user-profile__contacts dd {
    margin: 0;
    color: #333;
}

/* Biography */
.user-profile__biography {
    margin-top: 24px;
    background: #fff;
    padding: 20px;
}

.user-profile__bio-heading {
    font-size: 1.2em;
    margin: 0 0 16px;
    color: #444;
}

.user-profile__bio-text {
    font-size: 0.97em;
    line-height: 1.75;
    color: #333;
}

.user-profile__bio-text strong {
    color: #111;
}

/* Responsive */
@media (max-width: 600px) {
    .user-profile__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .user-profile__status-list {
        justify-content: center;
    }

    .user-profile__contacts {
        grid-template-columns: 1fr;
    }
}
