/* ==========================================
   PHASE 5: SOCIAL PROOF & TRUST ELEMENTS
   ========================================== */

/* Live Viewing Indicator */
.live-viewing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #fef3f2 0%, #fee2e2 100%);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    margin: 10px 0;
    animation: fadeInScale 0.5s ease-out;
}

.live-viewing-indicator .pulse-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Real-time Purchase Notifications */
.purchase-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 16px;
    display: flex;
    gap: 12px;
    z-index: 9998;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.purchase-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.purchase-notification-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.purchase-notification-content {
    flex: 1;
}

.purchase-notification-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
}

.purchase-notification-product {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.purchase-notification-time {
    font-size: 12px;
    color: #999;
}

.purchase-notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.purchase-notification-close:hover {
    background: #f3f4f6;
    color: #333;
}

/* Trust Badges Container */
.trust-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 0;
    justify-content: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: default;
}

.trust-badge:hover {
    border-color: var(--amazon-blue);
    box-shadow: 0 4px 12px rgba(20, 110, 180, 0.15);
    transform: translateY(-2px);
}

.trust-badge-icon {
    font-size: 24px;
    color: var(--amazon-blue);
}

.trust-badge-icon.ssl {
    color: #10b981;
}

.trust-badge-icon.money-back {
    color: #f59e0b;
}

.trust-badge-icon.shipping {
    color: #8b5cf6;
}

.trust-badge-text {
    display: flex;
    flex-direction: column;
}

.trust-badge-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.trust-badge-subtitle {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

/* Delivery Date Calculator */
.delivery-calculator {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid #10b981;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
}

.delivery-calculator-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.delivery-calculator-icon {
    font-size: 24px;
    color: #10b981;
}

.delivery-calculator-title {
    font-size: 16px;
    font-weight: 700;
    color: #065f46;
}

.delivery-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #047857;
    font-weight: 600;
}

.delivery-date-range .date {
    color: #065f46;
    font-weight: 700;
}

.delivery-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: #059669;
}

.delivery-location-link {
    color: var(--amazon-blue);
    text-decoration: none;
    font-weight: 600;
}

.delivery-location-link:hover {
    text-decoration: underline;
}

/* Customer Photo Reviews Section */
.customer-photos {
    margin: 30px 0;
}

.customer-photos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.customer-photos-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.customer-photos-count {
    font-size: 14px;
    color: #666;
}

.customer-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.customer-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.customer-photo-item:hover {
    transform: scale(1.05);
    border-color: var(--amazon-orange);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.customer-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-photo-verified {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(16, 185, 129, 0.95);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.customer-photo-verified i {
    font-size: 10px;
}

/* Social Proof Stats Bar */
.social-proof-stats {
    display: flex;
    gap: 24px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: space-around;
}

.social-proof-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.social-proof-stat-number {
    font-size: 28px;
    font-weight: 900;
    color: #92400e;
    line-height: 1;
    margin-bottom: 4px;
}

.social-proof-stat-label {
    font-size: 13px;
    color: #78350f;
    font-weight: 600;
}

/* Verified Purchase Badge */
.verified-purchase {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1e40af;
}

.verified-purchase i {
    color: #2563eb;
}

/* Urgency Timer */
.urgency-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 8px;
    margin: 12px 0;
}

.urgency-timer-icon {
    font-size: 20px;
    color: #dc2626;
    animation: pulse 1.5s ease-in-out infinite;
}

.urgency-timer-text {
    font-size: 14px;
    font-weight: 700;
    color: #991b1b;
}

.urgency-timer-countdown {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 900;
    color: #dc2626;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .purchase-notification {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .trust-badges {
        flex-direction: column;
        align-items: stretch;
    }

    .customer-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .social-proof-stats {
        flex-direction: column;
        gap: 16px;
    }
}