/**
 * Nagaland Me Experts — Badges v2.0
 * Premium SVG badge styling
 */

/* ─── Badge Row ─── */
.nmeb-badges-row {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    vertical-align: middle;
}

/* ─── Badge Chip (default) ─── */
.nmeb-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 100px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: default;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: relative;
}

.nmeb-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nmeb-chip svg {
    flex-shrink: 0;
}

/* ─── Special: Verified glow (forest) ─── */
.nmeb-verified {
    animation: nmeb-glow-forest 3s ease-in-out infinite;
}

@keyframes nmeb-glow-forest {
    0%, 100% { box-shadow: 0 0 0 0 rgba(10, 117, 88, 0); }
    50%      { box-shadow: 0 0 0 4px rgba(10, 117, 88, 0.14); }
}

/* ─── Special: Top Pro shimmer (gold over graphite) ─── */
.nmeb-top-pro {
    animation: nmeb-glow-gold 3s ease-in-out infinite;
    background-image: linear-gradient(135deg, rgba(31,41,55,0.06) 0%, rgba(212,168,67,0.12) 100%) !important;
}

@keyframes nmeb-glow-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 67, 0); }
    50%      { box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.22); }
}

/* ─── Badge Card (stacked layout) ─── */
.nmeb-badge-card {
    transition: all 0.2s ease;
}

.nmeb-badge-card:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ─── Showcase grid (used by [nmeb_all_badges]) ─── */
.nmeb-all-badges-showcase h3 {
    margin-top: 36px;
    margin-bottom: 18px;
    font-family: 'DM Serif Display', Georgia, serif;
    color: #0F2419;
}

.nmeb-showcase-card {
    background: #fff;
    border: 1.5px solid #E5E7EB;
    border-radius: 14px;
    padding: 24px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.nmeb-showcase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: transparent;
}

.nmeb-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

/* ─── My Badges wrapper ─── */
.nmeb-my-badges-wrapper {
    padding: 20px;
    background: linear-gradient(135deg, #F5F1E6 0%, #ECFDF5 100%);
    border-radius: 14px;
    border: 1.5px solid #D1FAE5;
}

/* ─── Admin badge gallery ─── */
.nmeb-admin-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.nmeb-admin-badge-item {
    background: #fff;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.nmeb-admin-badge-item:hover {
    border-color: #10B981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.nmeb-admin-badge-item.owned {
    opacity: 0.5;
    pointer-events: none;
    border-style: dashed;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .nmeb-chip {
        font-size: 0.65rem !important;
        padding: 2px 7px !important;
        gap: 3px !important;
    }
    .nmeb-chip svg {
        width: 14px !important;
        height: 14px !important;
    }
    .nmeb-badges-row {
        gap: 3px;
    }
    .nmeb-badge-card {
        padding: 10px 12px !important;
    }
}

/* ─── Tooltip (CSS-only) ─── */
.nmeb-chip[title] {
    position: relative;
}

.nmeb-chip[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #0F2419;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: normal;
    max-width: 220px;
    width: max-content;
    z-index: 1000;
    pointer-events: none;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.nmeb-chip[title]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #0F2419;
    z-index: 1001;
    pointer-events: none;
}
