@charset "utf-8";

/* ==========================================================
   Zwag Member Card
   Reusable member/profile summary card used by Members and Likes.
   ========================================================== */

.member-card {
    min-width: 0;
}

.member-card > article {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.member-card > article:hover {
    transform: translateY(-3px);
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-md);
}

.member-card__photo-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.member-card__photo {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-surface-soft);
}

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

.member-card__body {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.member-card__heading {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.member-card__heading h2,
.member-card__heading h3 {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 1.25rem;
}

.member-card__meta {
    color: var(--color-muted);
    font-size: var(--font-size-sm);
    line-height: 1.55;
}

.member-card__state {
    display: inline-flex;
    width: fit-content;
    min-height: 30px;
    padding: 5px 10px;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-muted);
    background: var(--color-surface-soft);
    font-size: 0.78rem;
    font-weight: 750;
}

.member-card__state--positive {
    color: var(--color-success);
    border-color: currentColor;
}

.member-card__state--primary {
    color: var(--color-primary);
    border-color: currentColor;
}

.member-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.member-card__actions form {
    margin: 0;
}

.member-card__actions .button,
.member-card__actions button {
    min-height: 40px;
}

.member-card__distance {
    color: var(--color-subtle);
    font-size: 0.82rem;
}

/* Likes collections use the same card height behaviour as other member grids. */
.likes-grid .member-card > article {
    height: 100%;
}

