﻿.social-proof-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    pointer-events: none;
}

.social-proof-notification {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 380px;
    max-width: 420px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.social-proof-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.social-proof-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.social-proof-notification.hide {
    opacity: 0;
    transform: translateY(20px);
}

.social-proof-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
    isolation: isolate;
}

.social-proof-icon:has(img) {
    background: transparent;
    box-shadow: none;
}

.social-proof-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    filter: none !important;
    mix-blend-mode: normal !important;
    transform: translateZ(0);
    -webkit-filter: none !important;
}

.social-proof-content {
    flex: 1;
    min-width: 0;
    isolation: isolate;
}

.social-proof-name {
    font-size: 15px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.social-proof-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 6px;
    font-weight: 400;
}

.social-proof-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.social-proof-time .iconify {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.social-proof-close {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-weight: 300;
}

.social-proof-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.social-proof-notification.purchase::before {
    background: linear-gradient(180deg, #34c759 0%, #30d158 100%);
    box-shadow: 0 0 15px rgba(52, 199, 89, 0.6);
}

.social-proof-notification.viewing::before {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
}

.social-proof-notification.limited::before {
    background: linear-gradient(180deg, #ff3b30 0%, #ff453a 100%);
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.6);
    animation: pulse-glow 2s ease-in-out infinite;
}

.social-proof-notification.discount::before {
    background: linear-gradient(180deg, #ffd60a 0%, #ffcc00 100%);
    box-shadow: 0 0 15px rgba(255, 214, 10, 0.6);
    animation: pulse-glow-gold 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(255, 59, 48, 0.6);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 59, 48, 0.9);
    }
}

@keyframes pulse-glow-gold {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(255, 214, 10, 0.6);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 214, 10, 0.9);
    }
}

.social-proof-notification.purchase .social-proof-icon:not(:has(img)) {
    background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.25);
}

.social-proof-notification.viewing .social-proof-icon:not(:has(img)) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
}

.social-proof-notification.limited .social-proof-icon:not(:has(img)) {
    background: linear-gradient(135deg, #ff3b30 0%, #ff453a 100%);
    box-shadow: 0 4px 16px rgba(255, 59, 48, 0.25);
}

.social-proof-notification.discount .social-proof-icon:not(:has(img)) {
    background: linear-gradient(135deg, #ffd60a 0%, #ffcc00 100%);
    box-shadow: 0 4px 16px rgba(255, 214, 10, 0.25);
}

.social-proof-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.5);
}

.social-proof-notification.purchase:hover {
    box-shadow: 0 12px 48px rgba(52, 199, 89, 0.4);
    border-color: rgba(52, 199, 89, 0.5);
}

.social-proof-notification.limited:hover {
    box-shadow: 0 12px 48px rgba(255, 59, 48, 0.4);
    border-color: rgba(255, 59, 48, 0.5);
}

.social-proof-notification.discount:hover {
    box-shadow: 0 12px 48px rgba(255, 214, 10, 0.4);
    border-color: rgba(255, 214, 10, 0.5);
}

@media (max-width: 768px) {
    .social-proof-container {
        bottom: 90px;
        left: 15px;
        right: 15px;
    }

    .social-proof-notification {
        min-width: auto;
        max-width: 100%;
        padding: 14px 16px;
        border-radius: 8px;
    }

    .social-proof-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .social-proof-name {
        font-size: 14px;
    }

    .social-proof-message {
        font-size: 12px;
    }

    .social-proof-time {
        font-size: 11px;
    }
}

.social-proof-notification:not(:last-child) {
    margin-bottom: 10px;
}