/*
              _                             _               _     __   __
         /\  | |                           | |             (_)    \ \ / /
        /  \ | |_ _ __ ___   ___  ___ _ __ | |__   ___ _ __ _  ___ \ V / 
       / /\ \| __| '_ ` _ \ / _ \/ __| '_ \| '_ \ / _ \ '__| |/ __| > <  
      / ____ \ |_| | | | | | (_) \__ \ |_) | | | |  __/ |  | | (__ / . \ 
     /_/    \_\__|_| |_| |_|\___/|___/ .__/|_| |_|\___|_|  |_|\___/_/ \_\
                                     | |                            
                                     |_|                                                                                                                

    Created with ♥ by the AtmosphericX Team (KiyoWx, StarflightWx, Everwatch1, & CJ Ziegler)
    Discord: https://atmosphericx-discord.scriptkitty.cafe
    Ko-Fi: https://ko-fi.com/k3yomi
    Documentation: http://localhost/documentation | https://atmosphericx.scriptkitty.cafe/documentation

*/

/* ---------------- NOTIFICATION PROPERTIES ---------------- */
.notifications {
    position: fixed; bottom: 20px;
    right: 20px; display: flex;
    flex-direction: column-reverse;
    gap: 12px; z-index: 9999;
    pointer-events: none;
    zoom: 0.85
} 
.notification {
    position: relative; max-width: 700px;
    width: 700px; padding: 16px 20px;
    border-radius: 8px; background-color: var(--clr-surface-a10);
    color: var(--clr-light-a0);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    overflow: hidden; opacity: 0;
    transform: translateY(20px) scale(0.75);
    pointer-events: auto;
    font-family: var(--global-font-family);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
} 
.notification:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}
.notification-title {
    font-size: 1.2em;
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 0.3px;
} 
.notification-message {
    font-size: 0.95em;
    white-space: pre-line;
    line-height: 1.4;
    opacity: 0.95;
}

/* ---------------- NOTIFICATION ANIMATION PROPERTIES ---------------- */
.notification-progress.progress-animate { animation: anim_shrink linear forwards; }
.notification.enter { animation: anim_notify_slide_in 0.5s forwards cubic-bezier(0.34, 1.56, 0.64, 1); }
.notification.fade-out { animation: anim_notify_slide_out 0.3s forwards ease-in; }

/* ---------------- NOTIFICATION BACKGROUND COLOR TYPES ---------------- */
.notification.info {
    background: linear-gradient(135deg, var(--clr-info-a0) 0%, rgba(var(--clr-info-a0-rgb, 59, 130, 246), 0.85) 100%);
}

.notification.success {
    background: linear-gradient(135deg, var(--clr-success-a0) 0%, rgba(var(--clr-success-a0-rgb, 34, 197, 94), 0.85) 100%);
}

.notification.error {
    background: linear-gradient(135deg, var(--clr-danger-a0) 0%, rgba(var(--clr-danger-a0-rgb, 239, 68, 68), 0.85) 100%);
}

/* ---------------- CLOSE BUTTON / INTERACTIVE ELEMENTS ---------------- */
.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 1.2em;
    opacity: 0;
    transition: all 0.2s ease;
}

.notification:hover .notification-close {
    opacity: 1;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* ---------------- PROGRESS BAR ENHANCEMENT ---------------- */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
}

/* ---------------- RESPONSIVE / MOBILE MEDIA ---------------- */
@media (max-width: 1200px) {
    .notifications {
        bottom: 12px;
        right: 12px;
        gap: 8px;
        zoom: 1;
    }
    .notification {
        max-width: 320px;
        width: 320px;
        padding: 12px 16px;
    }
    .notification-title {
        font-size: 1em;
        margin-bottom: 4px;
    }
    .notification-message {
        font-size: 0.85em;
        line-height: 1.3;
    }
    .notification:hover {
        transform: translateY(-1px);
    }
}

@media (max-width: 640px) {
    .notifications {
        bottom: 8px;
        right: 8px;
        gap: 6px;
    }
    .notification {
        max-width: 280px;
        width: 280px;
        padding: 10px 12px;
        border-radius: 6px;
    }
    .notification-title {
        font-size: 0.95em;
        margin-bottom: 3px;
    }
    .notification-message {
        font-size: 0.8em;
        line-height: 1.2;
    }
    .notification-close {
        top: 6px;
        right: 6px;
        padding: 2px 6px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .notifications {
        bottom: 6px;
        right: 6px;
        gap: 4px;
    }
    .notification {
        max-width: 240px;
        width: 240px;
        padding: 8px 10px;
    }
    .notification-title {
        font-size: 0.85em;
        margin-bottom: 2px;
    }
    .notification-message {
        font-size: 0.7em;
        line-height: 1.15;
    }
}