/**
 * Styles des composants promotionnels
 * Bannières promotionnelles et notifications de preuves sociales
 */

/* ====== BANNIÈRE PROMOTIONNELLE - Version améliorée ====== */
.promotional-banner {
    width: 100%;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    font-family: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    position: fixed;
    left: 0;
    right: 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Positions de la bannière */
.promotional-banner.position-top {
    top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.promotional-banner.position-bottom {
    bottom: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

/* Thèmes pour la bannière - Cohérents avec le design EMOCARD */
.promotional-banner.theme-primary {
    background: linear-gradient(135deg, 
        rgba(170, 123, 76, 0.95) 0%, 
        rgba(196, 153, 104, 0.95) 100%
    );
    color: #fff;
}

.promotional-banner.theme-secondary {
    background: linear-gradient(135deg, 
        rgba(125, 83, 39, 0.95) 0%, 
        rgba(170, 123, 76, 0.95) 100%
    );
    color: #fff;
}

.promotional-banner.theme-accent {
    background: linear-gradient(135deg, 
        rgba(196, 153, 104, 0.95) 0%, 
        rgba(212, 165, 115, 0.95) 100%
    );
    color: #fff;
}

.promotional-banner.theme-seasonal {
    background: linear-gradient(135deg, 
        rgba(139, 94, 53, 0.95) 0%, 
        rgba(170, 123, 76, 0.95) 100%
    );
    color: #fff;
    background-blend-mode: overlay;
}

/* Structure de la bannière */
.promotional-banner .banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.promotional-banner .banner-message {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-right: 1rem;
    flex-grow: 1;
}

.promotional-banner .banner-cta {
    flex-shrink: 0;
}

.promotional-banner .btn-close {
    background: transparent;
    border: none;
    color: inherit;
    opacity: 0.7;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    margin-left: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.promotional-banner .btn-close:hover {
    opacity: 1;
}

.promotional-banner .btn-apply-promo {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(5px);
    text-decoration: none;
}

.promotional-banner .btn-apply-promo:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* Animation des bannières */
@keyframes banner-slide-in-top {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes banner-slide-in-bottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.promotional-banner.position-top.show {
    animation: banner-slide-in-top 0.4s forwards;
}

.promotional-banner.position-bottom.show {
    animation: banner-slide-in-bottom 0.4s forwards;
}

/* Responsive pour la bannière */
@media (max-width: 768px) {
    .promotional-banner {
        padding: 0.75rem 1rem;
    }
    
    .promotional-banner .banner-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .promotional-banner .banner-message {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}

/* ====== NOTIFICATIONS DE PREUVES SOCIALES ====== */
.social-proof-container {
    position: fixed;
    z-index: 1000;
    width: 280px;
    pointer-events: none;
}

/* Positions du conteneur */
.social-proof-container.position-bottom-left {
    bottom: 20px;
    left: 20px;
}

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

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

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

/* Style de notification individuelle */
.social-proof-notification {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    padding: 15px;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
    max-width: 100%;
    overflow: hidden;
    border-left: 4px solid #335c67;
}

/* État d'affichage de la notification */
.social-proof-notification.show {
    transform: translateY(0);
    opacity: 1;
}

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

/* Types de notifications */
.social-proof-notification.purchase {
    border-left-color: #335c67;
}

.social-proof-notification.review {
    border-left-color: #e09f3e;
}

.social-proof-notification.activity {
    border-left-color: #540b0e;
}

.social-proof-notification.urgent {
    border-left-color: #9e2a2b;
}

.social-proof-notification:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.notification-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: 600;
    color: #555;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.notification-info {
    flex-grow: 1;
}

.notification-name {
    font-weight: 500;
    margin: 0 0 2px 0;
    font-size: 0.875rem;
    color: #333;
}

.notification-location {
    color: #777;
    font-size: 0.75rem;
    margin: 0;
}

.notification-message {
    margin: 0 0 8px 0;
    font-size: 0.8125rem;
    color: #444;
    line-height: 1.4;
}

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

.notification-time {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #888;
}

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

/* Style spécifique pour notifications urgentes */
.social-proof-notification.urgent .notification-highlight {
    color: #9e2a2b;
}

.social-proof-notification.urgent .notification-avatar {
    background-color: rgba(158, 42, 43, 0.1);
    color: #9e2a2b;
}

/* Animation des notifications */
@keyframes notification-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 16px rgba(158, 42, 43, 0.35);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

.social-proof-notification.urgent.show {
    animation: notification-pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .social-proof-container {
        width: 240px;
    }
    
    .social-proof-container.position-bottom-left,
    .social-proof-container.position-bottom-right {
        bottom: 10px;
    }
    
    .social-proof-container.position-bottom-left {
        left: 10px;
    }
    
    .social-proof-container.position-bottom-right {
        right: 10px;
    }
}