/* ===========================
   THEMED NOTIFICATION SYSTEM
   =========================== */

/* Notification Container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    /* Higher than landing page (9999) and settings (10002) */
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 400px;
}

/* Individual Notification */
.notification {
    pointer-events: all;
    background: rgba(20, 20, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 300px;
    max-width: 100%;
    position: relative;
    overflow: hidden;

    /* Animation */
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: right center;
}

.notification.removing {
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(120%) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    to {
        transform: translateX(120%) scale(0.8);
        opacity: 0;
    }
}

/* Notification Icon */
.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    position: relative;
}

/* Notification Content */
.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.notification-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
}

.notification-message {
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0.9;
    margin: 0;
    word-wrap: break-word;
}

/* Close Button */
.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: scale(1.1);
}

/* Progress Bar */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    transform-origin: left;
    animation: progressShrink 5s linear forwards;
}

@keyframes progressShrink {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* ==================
   NOTIFICATION TYPES
   ================== */

/* SUCCESS - Neon Green */
.notification.success {
    border-left: 4px solid #C6FF00;
    box-shadow:
        0 10px 40px rgba(198, 255, 0, 0.3),
        0 0 0 1px rgba(198, 255, 0, 0.2),
        inset 0 1px 0 rgba(198, 255, 0, 0.1);
}

.notification.success .notification-icon {
    background: rgba(198, 255, 0, 0.15);
    color: #C6FF00;
    box-shadow:
        0 0 20px rgba(198, 255, 0, 0.4),
        inset 0 0 20px rgba(198, 255, 0, 0.1);
}

.notification.success .notification-title {
    color: #C6FF00;
    text-shadow: 0 0 10px rgba(198, 255, 0, 0.5);
}

.notification.success .notification-progress {
    background: linear-gradient(90deg, #C6FF00, #A2FF00);
    box-shadow: 0 0 10px rgba(198, 255, 0, 0.6);
}

/* ERROR - Neon Pink/Red */
.notification.error {
    border-left: 4px solid #ff0055;
    box-shadow:
        0 10px 40px rgba(255, 0, 85, 0.3),
        0 0 0 1px rgba(255, 0, 85, 0.2),
        inset 0 1px 0 rgba(255, 0, 85, 0.1);
}

.notification.error .notification-icon {
    background: rgba(255, 0, 85, 0.15);
    color: #ff0055;
    box-shadow:
        0 0 20px rgba(255, 0, 85, 0.4),
        inset 0 0 20px rgba(255, 0, 85, 0.1);
}

.notification.error .notification-title {
    color: #ff0055;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

.notification.error .notification-progress {
    background: linear-gradient(90deg, #ff0055, #ff4081);
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.6);
}

/* WARNING - Neon Orange/Yellow */
.notification.warning {
    border-left: 4px solid #ffaa00;
    box-shadow:
        0 10px 40px rgba(255, 170, 0, 0.3),
        0 0 0 1px rgba(255, 170, 0, 0.2),
        inset 0 1px 0 rgba(255, 170, 0, 0.1);
}

.notification.warning .notification-icon {
    background: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
    box-shadow:
        0 0 20px rgba(255, 170, 0, 0.4),
        inset 0 0 20px rgba(255, 170, 0, 0.1);
}

.notification.warning .notification-title {
    color: #ffaa00;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.notification.warning .notification-progress {
    background: linear-gradient(90deg, #ffaa00, #ffc107);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.6);
}

/* INFO - Neon Blue */
.notification.info {
    border-left: 4px solid #00d4ff;
    box-shadow:
        0 10px 40px rgba(0, 212, 255, 0.3),
        0 0 0 1px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(0, 212, 255, 0.1);
}

.notification.info .notification-icon {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.4),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
}

.notification.info .notification-title {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.notification.info .notification-progress {
    background: linear-gradient(90deg, #00d4ff, #00b4ff);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

/* ==================
   MOBILE RESPONSIVE
   ================== */

@media (max-width: 480px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification {
        min-width: 0;
        padding: 14px 16px;
    }

    .notification-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .notification-title {
        font-size: 0.9rem;
    }

    .notification-message {
        font-size: 0.8rem;
    }
}