/* ═══════════════════════════════════════════════════════════
   Vivora Social Proof — vivora-social-proof.css
   ═══════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────
   1. نوتيفيكيشن بوب-أب في الكورنر
──────────────────────────────────────── */
#vivora-sp-popup {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
    width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13), 0 1.5px 6px rgba(0,0,0,0.07);
    border: 1px solid #EDE3D8;
    transform: translateY(120%) scale(0.92);
    opacity: 0;
    transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.35s ease;
    pointer-events: none;
    direction: rtl;
    overflow: hidden;
}

#vivora-sp-popup.vsp-show {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* خط ذهبي علوي لرسائل الـ highlight */
#vivora-sp-popup.vsp-highlight::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #C8A882, #E8C99A);
    border-radius: 12px 12px 0 0;
}

.vsp-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.vsp-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.vsp-body {
    flex: 1;
    min-width: 0;
}

.vsp-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.4;
    margin: 0 0 3px;
}

.vsp-time {
    font-size: 0.75rem;
    color: #9B8B7A;
}

.vsp-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #C0B0A0;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    flex-shrink: 0;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    font-family: inherit;
}

.vsp-close:hover {
    color: #1A1A1A;
    background: #F5EDE4;
}

/* ────────────────────────────────────────
   2. رسائل صفحة المنتج الفردي
──────────────────────────────────────── */
.vsp-single-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.vsp-single-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FDFBF8;
    border: 1px solid #EDE3D8;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: #4A3F35;
    animation: vspFadeIn 0.4s ease both;
    transition: opacity 0.3s ease;
}

@keyframes vspFadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to   { opacity: 1; transform: translateX(0); }
}

.vsp-s-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
}

.vsp-s-text {
    line-height: 1.4;
    transition: opacity 0.3s ease;
}

.vsp-s-text strong {
    color: #1A1A1A;
    font-weight: 700;
}

/* ────────────────────────────────────────
   3. عداد المشاهدين على كارت المنتج
──────────────────────────────────────── */
.vsp-card-viewers {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    pointer-events: none;
    direction: rtl;
    z-index: 5;
}

/* نقطة خضراء وامضة */
.vsp-dot {
    width: 7px;
    height: 7px;
    background: #27AE60;
    border-radius: 50%;
    flex-shrink: 0;
    animation: vspPulse 1.8s ease-in-out infinite;
}

@keyframes vspPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.75); }
}

/* ────────────────────────────────────────
   Responsive
──────────────────────────────────────── */
@media (max-width: 480px) {
    #vivora-sp-popup {
        bottom: 16px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}
