/**
 * PWG Live Notifications CSS - ΚΟΚΚΙΝΟΜΑΥΡΟ ΜΕ ΜΑΥΡΟ X ΚΥΚΛΑΚΙ
 * Αποθηκεύστε ως: assets/live-notifications.css
 */

@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@400;600;700&display=swap');

/* Container - ΜΙΑ ΕΙΔΟΠΟΙΗΣΗ ΜΟΝΟ */
#pwg-notifications-container {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    font-family: 'Geologica', Arial, sans-serif;
}

/* Positions */
.pwg-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.pwg-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.pwg-position-top-left {
    top: 20px;
    left: 20px;
}

.pwg-position-top-right {
    top: 20px;
    right: 20px;
}

/* Notification Card - ΚΟΚΚΙΝΟΜΑΥΡΟ BACKGROUND - ΔΥΝΑΤΟ */
.pwg-notification {
    background: linear-gradient(135deg, #d32f2f 0%, #1a1a1a 100%) !important;
    background-color: #d32f2f !important;
    color: #ffffff !important;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 380px;
    min-width: 300px;
    pointer-events: auto;
    cursor: pointer;
    animation: pwg-slide-in 0.5s ease-out forwards;
    position: relative;
    overflow: visible !important;
    opacity: 1;
    transform: translateX(0);
}

/* Animation IN */
@keyframes pwg-slide-in {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation OUT */
@keyframes pwg-slide-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

/* Product Image */
.pwg-notification-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

/* Content - ΛΕΥΚΑ ΓΡΑΜΜΑΤΑ */
.pwg-notification-content {
    flex: 1;
    min-width: 0;
}

.pwg-notification-message {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 4px 0;
    color: #ffffff !important;
    font-weight: 500;
}

.pwg-notification-message strong {
    font-weight: 700;
    color: #ffffff !important;
}

.pwg-notification-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0;
}

/* Icon */
.pwg-notification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

/* ΜΑΥΡΟ X ΚΥΚΛΑΚΙ - ΠΑΝΤΑ ΟΡΑΤΟ - ΔΥΝΑΤΑ STYLES */
.pwg-notification-close {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    background: #000000 !important;
    border: 3px solid #ffffff !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    opacity: 1 !important;
    z-index: 999999 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.pwg-notification-close:hover {
    background: #333333 !important;
    border-color: #ffffff !important;
    transform: scale(1.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.pwg-close-icon {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    font-family: Arial, sans-serif !important;
    pointer-events: none !important;
}

/* Hover effect για την ειδοποίηση */
.pwg-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Progress Bar - ΔΙΟΡΘΩΜΕΝΟ */
.pwg-notification::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    width: 0%;
    animation: pwg-progress 7s linear forwards;
    z-index: 1;
}

@keyframes pwg-progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .pwg-notification {
        max-width: calc(100vw - 40px);
        min-width: 280px;
        font-size: 13px;
        padding: 14px 18px;
    }
    
    .pwg-notification-image {
        width: 40px;
        height: 40px;
    }
    
    .pwg-notification-message {
        font-size: 13px;
    }
    
    .pwg-notification-time {
        font-size: 11px;
    }
    
    /* X κουμπί στο mobile - μεγαλύτερο */
    .pwg-notification-close {
        width: 32px !important;
        height: 32px !important;
        top: -8px !important;
        right: -8px !important;
        border-width: 3px !important;
    }
    
    .pwg-close-icon {
        font-size: 18px !important;
    }
}

/* Close on Click */
.pwg-notification.closing {
    animation: pwg-slide-out 0.3s ease-in forwards;
}

/* Smooth transitions για το X */
.pwg-notification-close * {
    transition: inherit;
}

/* Extra visibility για το κουμπί */
.pwg-notification .pwg-notification-close {
    visibility: visible !important;
    display: flex !important;
}
