/* Social Proof Widgets Styles */

/* Notification Container */
.social-proof-notifications {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1040;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: 400px;
}

/* Individual Notification */
.social-proof-notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideIn 0.3s ease, pulse 1s ease 0.3s;
}

.social-proof-notification.hiding {
    animation: slideOut 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    position: relative;
}

.notification-image {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
}

.notification-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-details {
    flex-grow: 1;
    min-width: 0;
}

.notification-text {
    font-size: 0.875rem;
    color: #212529;
    margin-bottom: 4px;
}

.notification-product {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.notification-product .product-name {
    color: #212529;
    font-weight: 500;
}

.notification-time {
    font-size: 0.7rem;
    color: #adb5bd;
    display: flex;
    align-items: center;
    gap: 4px;
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: #f8f9fa;
    color: #495057;
}

/* Viewers Widget */
#currentViewers {
    animation: fadeIn 0.5s ease;
}

#currentViewers .alert {
    border-left: 4px solid #0dcaf0;
    background: #cff4fc;
    border-color: #b6effb;
}

/* Stats Counters */
[data-stat-counter] {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-primary);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .social-proof-notifications {
        bottom: 70px;
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .notification-content {
        padding: 10px;
        gap: 10px;
    }

    .notification-image {
        width: 40px;
        height: 40px;
    }

    .notification-text {
        font-size: 0.8rem;
    }

    .notification-product {
        font-size: 0.7rem;
    }
}

/* Hover Effect */
.social-proof-notification:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Pulsing Effect for New Notifications */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 12px rgba(13, 202, 240, 0.4);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}
