﻿/**
 * SOS Pedagogico - Social Proof Styles
 * @author SOS Pedagogico - https://sospedagogico.com
 * @version 1.0.0
 */

/* Container de Notificações */
#sos-social-proof-container {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Posições */
.sos-sp-bottom-left {
    bottom: 20px;
    left: 20px;
}

.sos-sp-bottom-right {
    bottom: 20px;
    right: 20px;
}

.sos-sp-top-left {
    top: 20px;
    left: 20px;
}

.sos-sp-top-right {
    top: 20px;
    right: 20px;
}

/* Notificação */
.sos-sp-notification {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 18px;
    max-width: 380px;
    min-width: 320px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: sosSpSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sos-sp-notification:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.sos-sp-notification.sos-sp-hiding {
    animation: sosSpSlideOut 0.4s ease forwards;
}

/* Botão Fechar */
.sos-sp-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.sos-sp-notification:hover .sos-sp-close {
    opacity: 1;
}

.sos-sp-close:hover {
    color: #333;
}

/* Imagem do Produto */
.sos-sp-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sos-sp-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Conteúdo */
.sos-sp-content {
    flex: 1;
    min-width: 0;
}

.sos-sp-title {
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.sos-sp-name {
    font-weight: 600;
}

.sos-sp-action {
    font-weight: 500;
    margin-left: 4px;
}

.sos-sp-product {
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    opacity: 0.9;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sos-sp-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    opacity: 0.6;
}

.sos-sp-time::before {
    content: '⏱';
    margin-right: 3px;
}

.sos-sp-location::before {
    content: '📍';
    margin-right: 3px;
}

/* Ícone de Verificado */
.sos-sp-verified {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Animações */
@keyframes sosSpSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-100%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.sos-sp-bottom-right .sos-sp-notification,
.sos-sp-top-right .sos-sp-notification {
    animation-name: sosSpSlideInRight;
}

@keyframes sosSpSlideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes sosSpSlideOut {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-100%) scale(0.8);
    }
}

.sos-sp-bottom-right .sos-sp-notification.sos-sp-hiding,
.sos-sp-top-right .sos-sp-notification.sos-sp-hiding {
    animation-name: sosSpSlideOutRight;
}

@keyframes sosSpSlideOutRight {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
}

/* Pulse Animation para ícone verificado */
.sos-sp-verified {
    animation: sosSpPulse 2s infinite;
}

@keyframes sosSpPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

/* Responsivo */
@media (max-width: 480px) {
    #sos-social-proof-container {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
    }
    
    .sos-sp-notification {
        max-width: 100%;
        min-width: auto;
        padding: 12px 15px;
    }
    
    .sos-sp-image {
        width: 50px;
        height: 50px;
    }
    
    .sos-sp-title {
        font-size: 13px;
    }
    
    .sos-sp-product {
        font-size: 12px;
    }
    
    .sos-sp-meta {
        font-size: 10px;
    }
}



