/* © WatchJunk */
/* coded by nya & suzunay */
/* Members Page – Modern Redesign */

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ── Page Container ── */
.members-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* ── Hero / Header ── */
.members-hero {
    text-align: center;
    margin-bottom: 48px;
}

.members-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: 1px;
}

.members-hero .member-count {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ── Search ── */
.members-search {
    max-width: 380px;
    margin: 20px auto 0;
}

.members-search input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: all 0.25s ease;
}

.members-search input:focus {
    border-color: rgba(0,163,255,0.35);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 8px rgba(0,163,255,0.1);
}

.members-search input::placeholder {
    color: rgba(255,255,255,0.35);
}

/* ── Section Titles ── */
.members-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin: 48px 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.members-section-title:first-of-type {
    margin-top: 0;
}

/* ── Total Members Counter ── */
.members-total {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin: 0 0 14px;
    letter-spacing: 0.5px;
}

/* ── Members Grid ── */
.members-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── Member Card ── */
.member-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    transition: background 0.2s ease;
}

.member-card:hover {
    background: rgba(255,255,255,0.08);
}

/* Avatar */
.member-card .member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.1);
}

/* Info Block */
.member-card .member-info {
    flex: 1;
    min-width: 0;
}

.member-card .member-name {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.member-card .member-meta {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    margin: 3px 0 0;
}

.member-card .member-status {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.member-card .member-status i {
    font-size: 9px;
}

/* ── Role Badge ── */
.role-badge {
    padding: 2px 10px;
    background: var(--role-color);
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-transform: uppercase;
    display: inline-block;
}

.role-badge-private {
    padding: 2px 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
    display: inline-block;
}

/* ── Action Buttons ── */
.member-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.member-actions a {
    text-decoration: none;
}

/* ── Empty State ── */
.members-empty {
    text-align: center;
    padding: 32px 16px;
    color: rgba(255,255,255,0.45);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
}

/* ── Shimmer Lazy Loading ── */
img.lazy {
    background: linear-gradient(90deg, #111820 0%, #1a2538 40%, #111820 80%);
    background-size: 200% 100%;
    animation: imgShimmer 1.6s ease-in-out infinite;
}

img.lazy-loading {
    background: linear-gradient(90deg, #111820 0%, #1a2538 40%, #111820 80%);
    background-size: 200% 100%;
    animation: imgShimmer 1.6s ease-in-out infinite;
}

@keyframes imgShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Responsive – Tablet ── */
@media (min-width: 769px) and (max-width: 1024px) {
    .members-page {
        padding: 36px 20px 60px;
    }
}

/* ── Responsive – Mobile ── */
@media (max-width: 768px) {
    .members-page {
        padding: 28px 14px 50px;
    }

    .members-hero h1 {
        font-size: 22px;
    }

    .members-search {
        max-width: 100%;
    }

    .members-section-title {
        margin-top: 36px;
        font-size: 12px;
    }

    .member-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
        gap: 10px;
    }

    .member-card .member-avatar {
        width: 56px;
        height: 56px;
    }

    .member-card .member-name {
        justify-content: center;
        font-size: 15px;
    }

    .member-card .member-meta {
        text-align: center;
    }

    .member-card .member-status {
        justify-content: center;
    }

    .member-actions {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 8px;
    }

    .member-actions a {
        font-size: 12px;
    }

}
