/* Social Proof Popup Styles */

.social-proof-container {
    position: fixed;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.social-proof-container.bottom-left {
    bottom: 20px;
    left: 20px;
}

.social-proof-container.bottom-right {
    bottom: 20px;
    right: 20px;
}

.social-proof-popup {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 12px 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
}

.social-proof-container.bottom-right .social-proof-popup {
    transform: translateX(100%);
}

.social-proof-popup.show {
    transform: translateX(0);
    opacity: 1;
}

.social-proof-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.social-proof-icon i {
    color: white;
    font-size: 1.2rem;
}

.social-proof-content {
    flex-grow: 1;
}

.social-proof-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

.social-proof-content small {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.social-proof-content small::before {
    content: '✓';
    color: #28a745;
    margin-right: 5px;
    font-weight: bold;
}

.social-proof-close {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    line-height: 1;
}

.social-proof-close:hover {
    color: #333;
}

/* Dark mode */
[data-theme="dark"] .social-proof-popup {
    background: #2a2a2a;
}

[data-theme="dark"] .social-proof-content p {
    color: #e4e4e4;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .social-proof-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .social-proof-container.bottom-left,
    .social-proof-container.bottom-right {
        left: 10px;
        right: 10px;
        bottom: 70px;
        /* Above compare bar if exists */
    }
}

/* Viewing indicator (for product pages) */
.viewing-indicator {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    animation: pulse 2s infinite;
}

.viewing-indicator i {
    margin-right: 6px;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}