/**
 * Verification — Front-end CSS
 *
 * Badge display, tooltips, and request button styles.
 * Staff badge uses standalone SVG (no mask). All other badges
 * use CSS mask + background-color.
 *
 * @package    BUZEECI
 * @subpackage custom
 * @feature    verification
 * @version    2.0.0
 * @since      09-03-2026
 */

/* ── Badge Wrapper ────────────────────────────────────────────────── */

.bzc-badge-wrap {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: -4px;
    margin-left: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

/* ── Badge Inner (mask + color system) ────────────────────────────── */

.bzc-badge {
    display: block;
    width: 100%;
    height: 100%;
    background-size: 52% 52%;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-mask-size: 85%;
    mask-size: 85%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.bzc-badge--verified {
	width: 84%;
	height: 84%;
	margin-top: 1px;
	background-size: 51% 58%;
}

/* Staff override — standalone SVG, no mask */
.bzc-badge--staff {
    -webkit-mask: none !important;
    mask: none !important;
    background-color: transparent !important;
    background-size: contain !important;
}

/* ── Tooltip ──────────────────────────────────────────────────────── */

.bzc-badge-wrap[data-bzc-tooltip]::before {
    content: attr(data-bzc-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #0f1419;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 100;
}

.bzc-badge-wrap[data-bzc-tooltip]::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #0f1419;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 100;
}

.bzc-badge-wrap[data-bzc-tooltip]:hover::before,
.bzc-badge-wrap[data-bzc-tooltip]:hover::after {
    opacity: 1;
}

/* ── Member Directory Pseudo-element Badges ───────────────────────── */

.bp-verified-member .item-block .item a::after,
.bp-staff-member .item-block .item a::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-left: 3px;
    background-size: 52% 52%;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-mask-size: 85%;
    mask-size: 85%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.bp-verified-member .item-block .item a::after {
    background-color: var(--bzc-badge-verified-color, #1DA1F2);
    -webkit-mask-image: var(--bzc-badge-verified-shape);
    mask-image: var(--bzc-badge-verified-shape);
    background-image: url('../../assets/images/verified-check.svg');
}

/* Staff in member directory — use standalone SVG */
.bp-staff-member .item-block .item a::after {
    -webkit-mask: none !important;
    mask: none !important;
    background-color: transparent !important;
    background-image: url('../../assets/images/staff-badge.svg') !important;
    background-size: contain !important;
}

/* Hide wrapper badge when pseudo-element handles it */
.bp-verified-member .item-block .bzc-badge-wrap,
.bp-staff-member .item-block .bzc-badge-wrap {
    display: none !important;
}

/* ── Custom BUZEECI Members Loop ──────────────────────────────────── */

.bzc-member-name .bzc-badge-wrap {
    width: 16px;
    height: 16px;
}

/* ── Request Verification Button ──────────────────────────────────── */

.bzc-request-verification {
    margin-top: 8px;
}

.bzc-request-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1px solid #1d9bf0;
    border-radius: 20px;
    background: transparent;
    color: #1d9bf0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.bzc-request-btn:hover {
    background: rgba(29, 155, 240, 0.1);
}

.bzc-request-btn--pending {
    border-color: #8899a6;
    color: #8899a6;
    cursor: default;
}

.bzc-request-btn--pending:hover {
    background: transparent;
}

/* ── Sizing Fix ────────────────────────────────────── */

/* Activity, Activity Comments, Member Directory, Forums */
:is(.bzc-op-block__header-row2, .bzc-topic-card__meta, .bzc-reply__header, .activity-header, .acomment-meta, .bb-user-nav .user-nicename) .bzc-badge-wrap {
    width: 17px;
    height: 17px;
}