/**
 * Najibul Balance System - High-Performance Social Share Widget CSS
 * 0ms CLS, 0-blocking, Glassmorphism, Luxury Animations
 */

.nbs-share-wrapper {
    display: inline-flex;
    align-items: center;
    position: relative;
    vertical-align: middle;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    user-select: none;
    -webkit-user-select: none;
}

.nbs-share-trigger-pill {
    display: inline-flex;
    align-items: center;
}

.nbs-share-btn-main {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(30, 41, 59, 0.75);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.nbs-share-btn-main:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(79, 70, 229, 0.2) 100%);
    border-color: rgba(99, 102, 241, 0.55);
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.nbs-share-btn-main:active {
    transform: translateY(0);
}

.nbs-share-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #818cf8;
    transition: transform 0.2s ease;
}

.nbs-share-btn-main:hover .nbs-share-icon-wrap {
    transform: scale(1.15) rotate(-8deg);
    color: #a5b4fc;
}

.nbs-share-label {
    font-weight: 800;
    letter-spacing: 0.2px;
}

.nbs-share-badge-count {
    background: rgba(99, 102, 241, 0.22);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 9999px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 800;
    min-width: 16px;
    text-align: center;
}

/* Glassmorphic Floating Network Tray */
.nbs-share-network-tray {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 999999;
    background: #0f172a;
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 175px;
    animation: nbsShareTrayFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes nbsShareTrayFade {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nbs-share-network-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 7px 12px;
    color: #f1f5f9;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: all 0.16s ease;
    box-sizing: border-box;
    outline: none;
}

.nbs-share-network-btn:hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.4);
    color: #ffffff;
    transform: translateX(2px);
}

.nbs-net-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.nbs-net-name {
    flex: 1;
}

/* Toast Message */
.nbs-share-toast {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    z-index: 1000000;
    animation: nbsShareTrayFade 0.2s ease;
}
