/**
 * DeltaNodes - Social Proof Notifications CSS
 * ============================================
 */

/* Container - bottom left corner */
.social-proof-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* Notification Card */
.social-proof-notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(145deg, rgba(25, 25, 25, 0.98), rgba(15, 15, 15, 0.98));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.1);
    max-width: 320px;
    pointer-events: auto;

    /* Initial state for animation */
    opacity: 0;
    transform: translateX(-100%) scale(0.8);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-proof-notification.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Icon */
.spn-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

/* Content */
.spn-content {
    flex: 1;
    min-width: 0;
}

.spn-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.spn-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    font-family: monospace;
    background: rgba(255, 215, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.spn-location {
    font-size: 0.8rem;
    color: #888;
}

.spn-message {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 4px;
}

.spn-message strong {
    color: #FFD700;
    font-weight: 600;
}

.spn-time {
    font-size: 0.75rem;
    color: #666;
}

/* Close Button */
.spn-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 0;
}

.social-proof-notification:hover .spn-close {
    opacity: 1;
}

.spn-close svg {
    width: 14px;
    height: 14px;
    stroke: #666;
    fill: none;
    stroke-width: 2;
}

.spn-close:hover svg {
    stroke: #ff4444;
}

/* Verified Badge */
.spn-verified {
    position: absolute;
    bottom: 8px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #50c878;
}

.spn-verified svg {
    width: 12px;
    height: 12px;
    stroke: #50c878;
    fill: none;
    stroke-width: 2;
}

/* Relative positioning for badges */
.social-proof-notification {
    position: relative;
    padding-right: 70px;
    padding-bottom: 25px;
}

/* Pulse animation on entry */
@keyframes spn-pulse {
    0% {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.1);
    }

    50% {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.3);
    }

    100% {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.1);
    }
}

.social-proof-notification.visible {
    animation: spn-pulse 2s ease-in-out;
}

/* Mobile responsiveness */
@media (max-width: 500px) {
    .social-proof-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .social-proof-notification {
        max-width: 100%;
    }
}