/* social-proof-popup.css */

.spp-popup {
    position: fixed;
    bottom: -100px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    margin: 0 auto;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
}

.spp-popup.show {
    bottom: 20px;
    opacity: 1;
    transform: translateY(0);
}

.spp-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.spp-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    z-index: -1;
}

.spp-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 30px;
    height: 35px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.spp-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.spp-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.spp-text {
    flex: 1;
    line-height: 1.4;
}

.spp-customer {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.spp-product {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
	margin: 20px 0;
    font-weight: 500;
    color: #EDEDED;
    max-width: 400px;
}

.spp-time {
    font-size: 12px;
    opacity: 0.8;
}

.spp-view-product {
    background: #FFD700;
    color: #000;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
	margin-top: 72px;
	text-transform: uppercase;
}

.spp-view-product:hover {
	background: #FCF8DD;
    color: #00809D;
    transform: translateY(-1px);
    text-decoration: none;
}

.spp-loading {
    text-align: center;
    color: white;
    padding: 20px;
    display: none;
}

.spp-popup.loading .spp-content {
    display: none;
}

.spp-popup.loading .spp-loading {
    display: block;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .spp-popup {
        left: 10px;
        right: 10px;
        bottom: -120px;
    }
    
    .spp-popup.show {
        bottom: 10px;
    }
    
    .spp-container {
        padding: 16px;
        border-radius: 12px;
    }
    
    .spp-content {
        gap: 12px;
    }
    
    .spp-customer {
        font-size: 15px;
    }
    
    .spp-product {
        font-size: 13px;
    }
    
    .spp-view-product {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Animation for slide up effect */
@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.spp-popup.animate-in {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle glow effect */
.spp-container {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(102, 126, 234, 0.3);
	background: #239BA7;
}

/* Loading animation */
.spp-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alternative color schemes */
.spp-container.theme-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.spp-container.theme-orange {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
}

.spp-container.theme-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .spp-container {
        border: 2px solid white;
    }
    
    .spp-close {
        background: rgba(0, 0, 0, 0.8);
        color: white;
    }
}