/**
 * Rishthe — horizontal profile listing card
 */

:root {
    --profile-card-photo-width: 132px;
    --profile-card-photo-height: 168px;
}

.profiles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    align-items: start;
}

.profiles-grid > * {
    min-width: 0;
}

@media (min-width: 992px) {
    .profiles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.profiles-grid.list-view {
    grid-template-columns: 1fr;
}

.profiles-slider .profile-card {
    flex: 0 0 min(100%, 520px);
    max-width: 520px;
}

/* Card container */
.profile-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: var(--white);
    border: 1px solid #e4e0ec;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(31, 21, 51, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.profile-card:hover {
    border-color: #d4c4e8;
    box-shadow: 0 4px 14px rgba(123, 44, 191, 0.1);
    transform: none;
}

/* Photo — fills media column edge to edge */
.profile-card > .profile-card__media {
    position: relative;
    flex: 0 0 var(--profile-card-photo-width);
    width: var(--profile-card-photo-width);
    max-width: var(--profile-card-photo-width);
    min-width: var(--profile-card-photo-width);
    min-height: var(--profile-card-photo-height);
    align-self: stretch;
    background: #f5f0fc;
    overflow: hidden;
}

.profile-card > .profile-card__media .profile-card__photo-link {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.profile-card > .profile-card__media .profile-card__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.profile-card > .profile-card__media .profile-card__verified {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #22c55e;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.profile-card > .profile-card__media .profile-card__premium {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(135deg, #e8c547, #c9a227);
    color: var(--white);
    font-size: 0.55rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Content */
.profile-card__body {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.7rem 0.55rem;
    display: flex;
    flex-direction: column;
}

.profile-card__head {
    margin-bottom: 0.15rem;
}

.profile-card__name {
    margin: 0 0 0.1rem;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    font-family: var(--font-body);
}

.profile-card__name a {
    color: #1a1a1a;
    text-decoration: none;
}

.profile-card__name a:hover {
    color: var(--primary);
}

.profile-card__meta-line {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--primary);
    line-height: 1.3;
}

.profile-card__meta-sep {
    color: var(--primary);
    margin: 0 0.2rem;
    opacity: 0.7;
}

.profile-card__id {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.profile-card__divider {
    margin: 0.3rem 0 0.35rem;
    border: none;
    border-top: 1px solid #ebe8f0;
    opacity: 1;
}

/* Detail rows */
.profile-card__details {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.profile-card__detail {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #4a4a4a;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.profile-card__details .profile-card__detail:last-child {
    margin-bottom: 0;
}

.profile-card__detail i {
    flex-shrink: 0;
    width: 14px;
    text-align: center;
    color: #9a9a9a;
    font-size: 0.72rem;
    margin-top: 0.1rem;
}

.profile-card__detail-sep {
    color: #b0b0b0;
    margin: 0 0.15rem;
}

.profile-card__detail--split {
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.profile-card__detail-main {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    min-width: 0;
}

.profile-card__activity-meta {
    margin: 0.1rem 0 0;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.profile-card__unblock {
    color: #b42318;
    border-color: #fecdca;
}

.profile-card__unblock:hover {
    background: #fef3f2;
    color: #912018;
}

.profile-card__views {
    flex-shrink: 0;
    color: var(--primary);
    font-size: 0.82rem;
    line-height: 1;
    padding: 0;
}

.profile-card__distance {
    color: var(--primary);
    font-weight: 600;
}

/* Shortlist button */
.profile-card__actions {
    margin-top: auto;
    padding-top: 0.35rem;
}

.profile-card__shortlist {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--white);
    border: 1.5px solid var(--primary);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.profile-card__shortlist:hover {
    background: var(--soft-lavender);
    color: var(--primary-dark);
}

.profile-card__shortlist.is-shortlisted,
.profile-card__shortlist.active {
    background: var(--soft-lavender);
    border-color: var(--primary-dark);
}

.profile-card__shortlist i {
    font-size: 0.78rem;
}

/* Mobile */
@media (max-width: 991.98px) {
    :root {
        --profile-card-photo-width: 96px;
        --profile-card-photo-height: 128px;
    }

    .profile-card__body {
        padding: 0.45rem 0.55rem 0.5rem;
    }

    .profile-card__name {
        font-size: 0.85rem;
    }

    .profile-card__detail {
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
    }

    .profile-card__shortlist {
        padding: 0.3rem 0.55rem;
        font-size: 0.72rem;
    }
}
