/* =====================================================================
   Nexus Verified Badges
   ===================================================================== */

/* ── Base Badge ──────────────────────────────────────────────────── */
.nx-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    vertical-align: middle;
    position: relative;
    cursor: default;
    flex-shrink: 0;
    line-height: 1;
    /* Default: sm */
    width: 16px;
    height: 16px;
    color: #ffffff;
}

.nx-verified-badge svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Sizes ───────────────────────────────────────────────────────── */
.nx-verified-sm {
    width: 16px;
    height: 16px;
}

.nx-verified-md {
    width: 20px;
    height: 20px;
}

.nx-verified-lg {
    width: 24px;
    height: 24px;
}

/* ── Type Colors ─────────────────────────────────────────────────── */
.nx-verified-personal {
    color: #1877F2;
}

.nx-verified-business {
    color: #F7B731;
}

.nx-verified-creator {
    color: #8B5CF6;
}

.nx-verified-official {
    color: #00C853;
}

/* ── Tooltip ─────────────────────────────────────────────────────── */
.nx-verified-badge::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    transform: translateX(-50%) translateY(4px);
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.01em;
}

.nx-verified-badge::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.82);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 9999;
}

.nx-verified-badge:hover::after,
.nx-verified-badge:focus::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nx-verified-badge:hover::before,
.nx-verified-badge:focus::before {
    opacity: 1;
}

/* ── Pulse Animation (first view) ────────────────────────────────── */
@keyframes nx-badge-pulse {
    0%   { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
    50%  { box-shadow: 0 0 0 5px transparent; opacity: 0.7; }
    100% { box-shadow: 0 0 0 0 transparent; opacity: 1; }
}

.nx-verified-badge.nx-badge-new {
    animation: nx-badge-pulse 1.2s ease-out 1;
}

/* ── Display name inline spacing ─────────────────────────────────── */
.nx-username .nx-verified-badge,
.nx-display-name .nx-verified-badge,
.nx-card-name .nx-verified-badge {
    margin-left: 3px;
    margin-bottom: 1px;
}

/* ── Admin user list column ──────────────────────────────────────── */
.column-nx_verified {
    width: 80px;
    text-align: center;
}

.column-nx_verified .nx-verified-badge {
    margin: 0 auto;
}
