/**
 * 🎯 Styles pour les notifications de preuves sociales EMOCARD
 * Design discret et élégant - Position droite
 */

/* Conteneur principal des notifications */
.social-proof-container {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    max-width: 320px;
    padding: 16px;
}

/* Positionnement - Bottom Right (par défaut) */
.social-proof-container.position-bottom-right {
    bottom: 20px;
    right: 20px;
}

/* Autres positions disponibles */
.social-proof-container.position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.social-proof-container.position-top-right {
    top: 20px;
    right: 20px;
}

.social-proof-container.position-top-left {
    top: 20px;
    left: 20px;
}

/* Notification individuelle */
.social-proof-notification {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 12px;
    padding: 14px 16px;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(100%) scale(0.9);
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Animation d'apparition */
.social-proof-notification.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Animation de disparition */
.social-proof-notification.hide {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
}

/* Effet au survol */
.social-proof-notification:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Types de notifications */
.social-proof-notification.purchase {
    border-left: 4px solid #10B981;
}

.social-proof-notification.review {
    border-left: 4px solid #F59E0B;
}

.social-proof-notification.activity {
    border-left: 4px solid #3B82F6;
}

.social-proof-notification.urgent {
    border-left: 4px solid #EF4444;
    background: rgba(254, 242, 242, 0.95);
    animation: pulse 2s infinite;
}

/* Header de la notification */
.notification-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

/* Avatar */
.notification-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Informations utilisateur */
.notification-info {
    flex: 1;
    min-width: 0;
}

.notification-name {
    font-weight: 600;
    font-size: 13px;
    color: #1F2937;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-location {
    font-size: 11px;
    color: #6B7280;
    margin: 2px 0 0 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Message principal */
.notification-message {
    font-size: 12px;
    color: #374151;
    margin: 0 0 8px 0;
    line-height: 1.4;
    word-wrap: break-word;
}

.notification-highlight {
    font-weight: 600;
    color: #059669;
}

/* Timestamp */
.notification-time {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 4px;
}

.time-icon {
    margin-right: 4px;
    font-size: 10px;
}

/* Animation de pulsation pour les notifications urgentes */
@keyframes pulse {
    0%, 100% {
        opacity: 0.95;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .social-proof-container {
        max-width: 280px;
        padding: 12px;
    }
    
    .social-proof-container.position-bottom-right,
    .social-proof-container.position-bottom-left {
        bottom: 12px;
        right: 12px;
        left: auto;
    }
    
    .social-proof-notification {
        padding: 12px 14px;
        border-radius: 10px;
    }
    
    .notification-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
        margin-right: 10px;
    }
    
    .notification-name {
        font-size: 12px;
    }
    
    .notification-location {
        font-size: 10px;
    }
    
    .notification-message {
        font-size: 11px;
    }
    
    .notification-time {
        font-size: 10px;
    }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .social-proof-notification {
        background: rgba(17, 24, 39, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
        color: #F9FAFB;
    }
    
    .social-proof-notification.urgent {
        background: rgba(69, 26, 26, 0.95);
    }
    
    .notification-name {
        color: #F9FAFB;
    }
    
    .notification-location {
        color: #9CA3AF;
    }
    
    .notification-message {
        color: #E5E7EB;
    }
    
    .notification-time {
        color: #6B7280;
    }
}

/* Animations supplémentaires pour plus de fluidité */
.social-proof-notification * {
    transition: inherit;
}

/* Effet de glissement personnalisé pour chaque position */
.social-proof-container.position-bottom-left .social-proof-notification {
    transform: translateX(-100%) scale(0.9);
}

.social-proof-container.position-bottom-left .social-proof-notification.show {
    transform: translateX(0) scale(1);
}

.social-proof-container.position-top-right .social-proof-notification {
    transform: translateX(100%) translateY(-20px) scale(0.9);
}

.social-proof-container.position-top-right .social-proof-notification.show {
    transform: translateX(0) translateY(0) scale(1);
}

.social-proof-container.position-top-left .social-proof-notification {
    transform: translateX(-100%) translateY(-20px) scale(0.9);
}

.social-proof-container.position-top-left .social-proof-notification.show {
    transform: translateX(0) translateY(0) scale(1);
}

/* Indicateur subtil de fermeture */
.social-proof-notification::after {
    content: '×';
    position: absolute;
    top: 8px;
    right: 10px;
    color: #9CA3AF;
    font-size: 16px;
    font-weight: 300;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.social-proof-notification:hover::after {
    opacity: 0.6;
}

.social-proof-notification::after:hover {
    opacity: 1;
    color: #6B7280;
}
