/* FluentCart Random Notifications - Premium Styling */

#fc-notification-popup {
    position: fixed;
    bottom: 25px;
    width: 320px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    transform: translateY(120%) scale(0.9);
    opacity: 0;
}

#fc-notification-popup.fc-pos-right {
    right: 25px;
    left: auto;
}

#fc-notification-popup.fc-pos-left {
    left: 25px;
    right: auto;
}

#fc-notification-popup.fc-notification-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

#fc-notification-popup .fc-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fc-notification-popup .fc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#fc-notification-popup .fc-content {
    flex-grow: 1;
    min-width: 0;
    text-align: right; /* Move button to the right */
}

#fc-notification-popup .fc-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left; /* Keep title left-aligned */
    padding-right: 24px;
}

#fc-notification-popup .fc-price {
    font-size: 13px;
    color: #e74c3c;
    margin-bottom: 8px;
    font-weight: 700;
    text-align: left; /* Keep price left-aligned */
}

#fc-notification-popup .fc-link-btn {
    background: #e74c3c; /* Red color */
    color: #fff !important;
    text-decoration: none !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
}

#fc-notification-popup .fc-link-btn:hover {
    background: #c0392b; /* Darker red */
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.35);
    color: #fff !important;
}

#fc-notification-popup .fc-add-to-cart:active {
    transform: translateY(0);
}

#fc-notification-popup .fc-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #999;
    transition: all 0.2s ease;
}

#fc-notification-popup .fc-close:hover {
    background: rgba(0,0,0,0.1);
    color: #333;
}

/* Premium Glassmorphic Dark Mode Theme */
#fc-notification-popup.fc-theme-dark {
    background: rgba(20, 20, 20, 0.75);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

#fc-notification-popup.fc-theme-dark .fc-title {
    color: #ffffff;
}

#fc-notification-popup.fc-theme-dark .fc-close {
    background: rgba(255, 255, 255, 0.1);
    color: #cccccc;
}

#fc-notification-popup.fc-theme-dark .fc-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* System-aware theme overrides */
@media (prefers-color-scheme: dark) {
    #fc-notification-popup.fc-theme-auto {
        background: rgba(20, 20, 20, 0.75);
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    }
    
    #fc-notification-popup.fc-theme-auto .fc-title {
        color: #ffffff;
    }
    
    #fc-notification-popup.fc-theme-auto .fc-close {
        background: rgba(255, 255, 255, 0.1);
        color: #cccccc;
    }
    
    #fc-notification-popup.fc-theme-auto .fc-close:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
    }

    #fc-notification-popup.fc-theme-auto .fc-buyer-alert {
        color: rgba(255, 255, 255, 0.7);
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    #fc-notification-popup {
        left: 15px;
        right: 15px;
        bottom: 15px;
        width: auto;
    }
}

/* Progress Bar */
.fc-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #e74c3c;
    width: 100%;
    border-radius: 0 0 16px 16px;
    animation: fc-progress 6000ms linear forwards;
    transform-origin: left;
}

@keyframes fc-progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Pause animation on hover */
#fc-notification-popup.fc-paused .fc-progress-bar {
    animation-play-state: paused;
}

/* Phase 4: Social Proof & Urgency Badges */
#fc-notification-popup .fc-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 6px;
    display: block;
    width: max-content;
    margin-right: auto;
    margin-left: 6px;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    animation: fc-pulse-badge 2s infinite ease-in-out;
}

#fc-notification-popup .fc-buyer-alert {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.35;
    padding-left: 6px;
    padding-right: 24px;
    text-align: left;
    animation: fc-fade-in-up 0.4s ease-out;
}

#fc-notification-popup.fc-theme-dark .fc-buyer-alert {
    color: rgba(255, 255, 255, 0.7);
}

@keyframes fc-pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes fc-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
