/**
 * Notification Popup - Styles (Refonte v1.3.0)
 *
 * - Fond blanc (light)
 * - Pas de border-left
 * - Card simple avec ombre subtile
 * - Jauge de durée d'affichage
 * - Bouton fermeture compact
 * - Mobile subtil
 *
 * @package Dokan_Integration
 * @subpackage Social_Proof
 * @version 1.3.0
 */

/* ==========================================================================
   Notification Popup Container
   ========================================================================== */

.dokan-notification-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    max-width: 340px;
    width: calc(100% - 40px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
    pointer-events: none;
}

.dokan-notification-popup.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

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

/* ==========================================================================
   Notification Content - Clean Card Style
   ========================================================================== */

.dokan-notification-content {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 14px 16px 18px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.dokan-notification-popup:hover .dokan-notification-content {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Progress Bar (Timer Indicator)
   ========================================================================== */

.dokan-notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #E2AE02 0%, #FFC837 100%);
    width: 100%;
    transform-origin: left;
    animation: progressShrink var(--display-duration, 6s) linear forwards;
}

@keyframes progressShrink {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

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

/* ==========================================================================
   Notification Body
   ========================================================================== */

.dokan-notification-body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dokan-notification-image {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #F5F5F5;
}

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

.dokan-notification-text {
    flex: 1;
    min-width: 0;
}

.dokan-notification-user {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
    line-height: 1.3;
}

.dokan-notification-user-name {
    font-weight: 600;
    color: #1F294D;
}

.dokan-notification-user-location {
    color: #999;
}

.dokan-notification-time {
    color: #AAA;
    font-size: 11px;
}

.dokan-notification-message {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dokan-notification-message strong {
    color: #1F294D;
    font-weight: 600;
}

.dokan-notification-price {
    font-size: 14px;
    font-weight: 700;
    color: #E2AE02;
}

/* ==========================================================================
   Animation Effects
   ========================================================================== */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.dokan-notification-popup.animate-in {
    animation: slideUp 0.4s ease-out forwards;
}

.dokan-notification-popup.animate-out {
    animation: slideDown 0.3s ease-in forwards;
}

/* ==========================================================================
   Responsive Design - Subtle Mobile
   ========================================================================== */

/* Tablet */
@media (max-width: 992px) {
    .dokan-notification-popup {
        max-width: 300px;
    }

    .dokan-notification-image {
        width: 50px;
        height: 50px;
    }
}

/* Mobile - More subtle appearance */
@media (max-width: 768px) {
    .dokan-notification-popup {
        bottom: 12px;
        left: 12px;
        max-width: 260px;
        width: calc(100% - 24px);
    }

    .dokan-notification-content {
        padding: 10px 12px 14px;
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    .dokan-notification-body {
        gap: 10px;
    }

    .dokan-notification-image {
        width: 44px;
        height: 44px;
        border-radius: 6px;
    }

    .dokan-notification-text {
        padding-right: 0;
    }

    .dokan-notification-user {
        font-size: 11px;
    }

    .dokan-notification-message {
        font-size: 12px;
    }

    .dokan-notification-price {
        font-size: 13px;
    }

    .dokan-notification-progress {
        height: 2px;
    }
}

/* Small Mobile - Even more subtle */
@media (max-width: 480px) {
    .dokan-notification-popup {
        bottom: 10px;
        left: 10px;
        max-width: 220px;
        width: calc(100% - 20px);
    }

    .dokan-notification-content {
        padding: 8px 10px 12px;
    }

    .dokan-notification-image {
        width: 40px;
        height: 40px;
    }

    .dokan-notification-user-location,
    .dokan-notification-time {
        display: none;
    }

    .dokan-notification-message {
        font-size: 11px;
    }

    .dokan-notification-price {
        font-size: 12px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .dokan-notification-popup {
        display: none !important;
    }
}
