/**
 * Notifications Unified System (Public Styling)
 * A premium, glassmorphism-styled notification system for customers.
 */

:root {
    --notif-success: hsla(150, 80%, 30%, 0.85); /* Deep green glass */
    --notif-error: hsla(0, 80%, 45%, 0.85);   /* Deep red glass */
    --notif-warning: hsla(38, 90%, 40%, 0.85); /* Deep gold glass */
    --notif-info: hsla(210, 80%, 30%, 0.85);  /* Deep blue glass */
    
    --notif-blur: 12px;
    --notif-text: #ffffff;
    --notif-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.notifications-container-public {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    width: 90%;
    max-width: 450px;
}

/* RTL Adjustment */
[dir="rtl"] .notifications-container-public {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.notification-public {
    pointer-events: auto;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(var(--notif-blur));
    -webkit-backdrop-filter: blur(var(--notif-blur));
    color: var(--notif-text);
    box-shadow: var(--notif-shadow);
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    /* Animation Start */
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notification-public.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.notification-public.hide {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
}

/* Type Variations */
.notification-public.success {
    background: var(--notif-success);
    border-color: rgba(255, 255, 255, 0.2);
}

.notification-public.error {
    background: var(--notif-error);
    border-color: rgba(255, 255, 255, 0.2);
}

.notification-public.warning {
    background: var(--notif-warning);
    border-color: rgba(255, 255, 255, 0.2);
}

.notification-public.info {
    background: var(--notif-info);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Icon & Message Styles */
.notification-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-right: 15px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

[dir="rtl"] .notification-icon {
    margin-right: 0;
    margin-left: 15px;
}

.notification-message {
    flex-grow: 1;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Close Button */
.notification-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    margin-left: 15px;
    transition: color 0.2s;
    padding: 0;
}

[dir="rtl"] .notification-close {
    margin-left: 0;
    margin-right: 15px;
}

.notification-close:hover {
    color: #ffffff;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .notifications-container-public {
        top: 10px;
        width: 95%;
    }
    
    .notification-public {
        padding: 10px 16px;
    }
}
