/* ============================================================
   SEWALOK MEMBERS – TRUE EDGE TO EDGE FIX (BuddyX)
============================================================ */

/* ================= GLOBAL RESET ================= */

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

/* ================= HEADER GAP REMOVE ================= */

header,
.site-header,
#masthead {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ================= THEME WRAPPERS (MAIN FIX) ================= */

.container,
.container-fluid,
.wrap,
.site-content .container,
.buddyx-container,
#content .container,
#primary .container,
#main .container {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ================= MEMBERS PAGE WRAPPER ================= */

.sl-members-wrapper,
.sl-members-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ================= FILTER BAR (EDGE TO EDGE) ================= */

.sl-filter-bar,
.sl-members-filters,
.sl-members-filter-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 6px 6px !important; /* minimal padding only */
    box-sizing: border-box;
}

/* ============================================================
   GRID — NO LEFT / RIGHT / TOP SPACE
============================================================ */

.sl-members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Grindr style */

    gap: 4px;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 4px !important;

    list-style: none;
    box-sizing: border-box;
}

/* ============================================================
   CARD — SAME DESIGN, ONLY FIT FIX
============================================================ */

.sl-member-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.15; /* 🔥 Slightly shorter card */

    overflow: hidden;
    border-radius: 16px;

    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

/* ================= IMAGE ================= */

.sl-photo-wrap {
    position: absolute;
    inset: 0;
}

.sl-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ================= OVERLAY ================= */

.sl-member-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0) 40%,
        rgba(0,0,0,0.85) 100%
    );
    z-index: 5;
    pointer-events: none; /* 🔥 CLICK FIX */
}

/* ================= ONLINE DOT ================= */

.sl-online-dot {
    width: 14px;
    height: 14px;
    position: absolute;
    top: 8px;
    right: 8px;
    background: #2cd157;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 20;
}

/* ================= NAME & DISTANCE ================= */

.sl-name-overlay {
    position: absolute;
    bottom: 34px;
    left: 0;
    right: 0;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    z-index: 30;
}

.sl-distance-line {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    z-index: 30;
}
