/**
 * Social Proof - Live Notifications Styles
 */

/* Container positions */
#zoopet-social-proof-container {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
}

.zoopet-sp-bottom-left {
    bottom: 20px;
    left: 20px;
}

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

.zoopet-sp-top-left {
    top: 100px;
    left: 20px;
}

.zoopet-sp-top-right {
    top: 100px;
    right: 20px;
}

/* Notification */
.zoopet-sp-notification {
    background: white;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 340px;
    pointer-events: auto;
    margin-bottom: 12px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Animations */
.zoopet-sp-slide {
    animation: zoopet-sp-slide-in 0.5s ease-out;
}

.zoopet-sp-slide.zoopet-sp-hiding {
    animation: zoopet-sp-slide-out 0.4s ease-in forwards;
}

@keyframes zoopet-sp-slide-in {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoopet-sp-slide-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

.zoopet-sp-fade {
    animation: zoopet-sp-fade-in 0.5s ease-out;
}

.zoopet-sp-fade.zoopet-sp-hiding {
    animation: zoopet-sp-fade-out 0.4s ease-in forwards;
}

@keyframes zoopet-sp-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoopet-sp-fade-out {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.zoopet-sp-bounce {
    animation: zoopet-sp-bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes zoopet-sp-bounce-in {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Image */
.zoopet-sp-image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #f1f5f9;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.zoopet-sp-image .emoji {
    font-size: 24px;
}

/* Content */
.zoopet-sp-content {
    flex: 1;
    min-width: 0;
}

.zoopet-sp-text {
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
    margin-bottom: 2px;
}

.zoopet-sp-name {
    font-weight: 600;
    color: #1e293b;
}

.zoopet-sp-action {
    color: #64748b;
}

.zoopet-sp-product {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.zoopet-sp-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #94a3b8;
}

.zoopet-sp-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.zoopet-sp-location::before {
    content: '•';
    margin-right: 8px;
}

/* Icon */
.zoopet-sp-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.zoopet-sp-icon.purchase {
    background: #dcfce7;
    color: #16a34a;
}

.zoopet-sp-icon.review {
    background: #fef3c7;
    color: #d97706;
}

.zoopet-sp-icon.registration,
.zoopet-sp-icon.club_join {
    background: #e0e7ff;
    color: #4f46e5;
}

/* Stars for reviews */
.zoopet-sp-stars {
    color: #f59e0b;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Review text */
.zoopet-sp-review-text {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
    margin-top: 4px;
}

/* Close button */
.zoopet-sp-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

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

.zoopet-sp-close:hover {
    background: #e2e8f0;
    color: #64748b;
}

/* Verified badge */
.zoopet-sp-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #16a34a;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    #zoopet-social-proof-container {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
    }
    
    .zoopet-sp-notification {
        max-width: 100%;
    }
}
