/**
 * BSMC — BuddyBoss profile UI overrides.
 *
 * Hides:
 *   - BSMC membership card (CSS fallback for the PHP remove_action)
 *   - Profile sub-nav (Profile / Membership / Timeline / Connections / Groups / More)
 *   - The "Edit Profile" button in the profile header
 *   - The "Edit" link inside the sidebar Details widget
 *
 * Selectors taken from the actual rendered HTML on bikeshedmotoclub.com.
 * Enqueued on every front-end page; selectors are scoped to BP/BSMC classes
 * so non-BP pages are unaffected.
 */

/* BSMC membership card */
.bsmc-mc-profile-section { display: none !important; }

/* Profile sub-nav (the pills row) */
nav#object-nav,
nav.bb-rl-main-nav,
nav.main-navs.users-nav,
.bb-rl-main-nav-list {
    display: none !important;
}

/* Edit Profile button + its wrapper */
.bb-rl-member-header-actions-wrap,
.bb-rl-member-header-actions,
a.button.edit-profile,
.generic-button a.edit-profile {
    display: none !important;
}

/* Sidebar Details widget "Edit" link */
.bb-rl-profile-widget .bb-rl-see-all,
.bb-rl-profile-widget-header .bb-rl-see-all {
    display: none !important;
}

/* Sidebar "Complete your profile" widget */
.widget_bp_profile_completion_widget {
    display: none !important;
}

/* ──────────────────────────────────────────────────────────────────────────
 * MemberPress account/subscription views — readable on the dark theme.
 * MP renders its own markup with default colors that assume a light theme,
 * which is invisible on our background. Scope: any .mepr-* element.
 * ────────────────────────────────────────────────────────────────────────── */

/* Subscription table cells */
.mepr-pro-account-table__product,
.mepr-pro-account-table__subscr,
.mepr-pro-account-table__created_at,
.mepr-pro-account-table__rebill,
.mepr-pro-account-table__subscription,
.mepr-pro-account-terms {
    color: #edeadf !important;
}
.mepr-pro-account-table__product { color: #fff !important; font-weight: 600; }
.mepr-pro-account-table__subscr  { color: rgba(237, 234, 223, 0.55) !important; font-size: 12px; }

/* Status badges */
.mepr-pro-account-table__badge {
    background: rgba(237, 234, 223, 0.08) !important;
    color: #edeadf !important;
    border: 1px solid rgba(237, 234, 223, 0.18) !important;
}
.mepr-pro-account-table__badge.--is-active {
    background: rgba(76, 175, 80, 0.18) !important;
    color: #7ed47e !important;
    border-color: rgba(76, 175, 80, 0.35) !important;
}
.mepr-pro-account-table__badge.--is-lapsed,
.mepr-pro-account-table__badge.--is-cancelled,
.mepr-pro-account-table__badge.--is-expired {
    background: rgba(255, 82, 82, 0.18) !important;
    color: #ff8a8a !important;
    border-color: rgba(255, 82, 82, 0.35) !important;
}

/* Tooltip / actions menu (Update, Cancel) */
.mepr-tooltip-content {
    background: #1a1a1a !important;
    border: 1px solid rgba(237, 234, 223, 0.12) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
    padding: 6px 0 !important;
}
.mepr-account-row-action {
    display: block;
    padding: 8px 14px;
    color: #edeadf !important;
    text-decoration: none !important;
}
.mepr-account-row-action:hover { background: rgba(200, 169, 110, 0.12) !important; color: #C8A96E !important; }
.mepr-account-cancel { color: #ff8a8a !important; }

/* Action button trigger (3-dot icon) */
.mepr-tooltip-trigger {
    background: transparent !important;
    border: none !important;
    color: #edeadf !important;
    cursor: pointer;
}
.mepr-tooltip-trigger svg { stroke: #edeadf !important; }

/* Cancel-subscription confirmation popup — was literally white-on-white */
.mepr-white-popup {
    background: #1a1a1a !important;
    color: #edeadf !important;
    border: 1px solid rgba(237, 234, 223, 0.12) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    max-width: 420px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
}
.mepr-cancel-sub-text {
    color: #edeadf !important;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 18px;
}
.mepr-cancel-sub-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.mepr-btn {
    padding: 10px 22px !important;
    border-radius: 999px !important;
    border: 1.5px solid rgba(237, 234, 223, 0.4) !important;
    background: transparent !important;
    color: #edeadf !important;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mepr-confirm-yes {
    background: #C8A96E !important;
    color: #0e0e0e !important;
    border-color: #C8A96E !important;
}
.mepr-confirm-yes:hover { opacity: 0.9; }
.mepr-confirm-no:hover  { background: rgba(237, 234, 223, 0.08) !important; }

/* Magnific Popup wrappers used by MP — make the page underneath darken */
.mfp-bg { background: rgba(0, 0, 0, 0.75) !important; }
.mfp-content { color: #edeadf !important; }

/* MP table generic — for any text we didn't catch above */
.mp_wrapper,
.mp_wrapper td,
.mp_wrapper th,
.mp_wrapper a {
    color: #edeadf !important;
}
.mp_wrapper a { color: #C8A96E !important; }
.mp_wrapper th { color: #fff !important; }
