/* ============================================
   SOCIAL PROOF TICKER STYLES
   Modern, attention-grabbing notifications
   ============================================ */

/* Notification Container */
.social-proof-ticker {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
    max-width: 380px;
    opacity: 0;
    transform: translateX(-100%) translateY(20px);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

/* Visible state */
.social-proof-ticker.visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
    pointer-events: all;
}

/* Content Card */
.social-proof-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 14px;
    border-left: 4px solid #4FD1C5;
    position: relative;
    animation: slideInBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInBounce {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    60% {
        transform: translateX(10px);
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Icon */
.social-proof-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Text Content */
.social-proof-text {
    flex: 1;
    min-width: 0;
}

/* Message */
.social-proof-message {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.4;
    margin-bottom: 4px;
    word-wrap: break-word;
}

/* Meta Information */
.social-proof-meta {
    font-size: 12px;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-proof-meta i {
    color: #4FD1C5;
    font-size: 11px;
}

/* Close Button */
.social-proof-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s ease;
    opacity: 0;
}

.social-proof-content:hover .social-proof-close {
    opacity: 1;
}

.social-proof-close:hover {
    color: #4a5568;
    transform: scale(1.1);
}

/* Hover Effects */
.social-proof-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Pulse effect on appear */
.social-proof-ticker.visible .social-proof-content {
    animation: slideInBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55),
               glow 0.8s ease-in-out;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                    0 2px 8px rgba(0, 0, 0, 0.08);
    }
    50% {
        box-shadow: 0 8px 32px rgba(79, 209, 197, 0.3),
                    0 2px 8px rgba(79, 209, 197, 0.2),
                    0 0 20px rgba(79, 209, 197, 0.2);
    }
}

/* Activity Type Color Variations */
.social-proof-ticker[data-type="guide"] .social-proof-content {
    border-left-color: #4FD1C5;
}

.social-proof-ticker[data-type="consultation"] .social-proof-content {
    border-left-color: #FFD700;
}

.social-proof-ticker[data-type="workshop"] .social-proof-content {
    border-left-color: #667eea;
}

.social-proof-ticker[data-type="view"] .social-proof-content {
    border-left-color: #f56565;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .social-proof-ticker {
        left: 50%;
        bottom: 80px;
        transform: translateX(-50%) translateY(100%);
        max-width: calc(100% - 40px);
    }
    
    .social-proof-ticker.visible {
        transform: translateX(-50%) translateY(0);
    }
    
    .social-proof-content {
        padding: 14px 16px;
    }
    
    .social-proof-icon {
        font-size: 24px;
    }
    
    .social-proof-message {
        font-size: 13px;
    }
    
    .social-proof-meta {
        font-size: 11px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .social-proof-ticker {
        bottom: 70px;
        max-width: calc(100% - 30px);
    }
    
    .social-proof-content {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .social-proof-icon {
        font-size: 22px;
    }
    
    .social-proof-message {
        font-size: 12px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .social-proof-content {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                    0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .social-proof-message {
        color: #f7fafc;
    }
    
    .social-proof-meta {
        color: #cbd5e0;
    }
    
    .social-proof-close {
        color: #718096;
    }
    
    .social-proof-close:hover {
        color: #cbd5e0;
    }
}

/* Accessibility: Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .social-proof-ticker,
    .social-proof-content,
    .social-proof-icon,
    .social-proof-close {
        animation: none !important;
        transition: opacity 0.2s ease !important;
    }
    
    .social-proof-ticker.visible {
        transform: translateX(0) translateY(0);
    }
    
    @media (max-width: 768px) {
        .social-proof-ticker.visible {
            transform: translateX(-50%) translateY(0);
        }
    }
}

/* Print: Hide notifications */
@media print {
    .social-proof-ticker {
        display: none !important;
    }
}

/* Additional hover state for interactive feel */
.social-proof-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.social-proof-content:hover::before {
    opacity: 1;
}

/* Shimmer effect on new notification */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.social-proof-ticker.visible .social-proof-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out;
    border-radius: 12px;
    pointer-events: none;
}

/* Ensure it doesn't interfere with WhatsApp button */
.social-proof-ticker {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    /* Position above WhatsApp button on mobile */
    .social-proof-ticker {
        bottom: 80px;
    }
}
