/* System Alerts - Terminal-style notification styling */

.system-alert-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    /* Start off-screen */
    width: 350px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--main-color);
    border-radius: 0px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    z-index: 99999;
    font-family: 'Terminus', 'Courier New', monospace;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(var(--main-color-rgb), 0.3);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    opacity: 0;
}

.system-alert-notification.show {
    right: 20px;
    opacity: 1;
}

.alert-icon {
    font-size: 2.4rem;
    flex-shrink: 0;
    animation: alertPulse 1.5s infinite;
}

@keyframes alertPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.alert-content {
    flex: 1;
}

.alert-title {
    color: var(--main-color);
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.alert-message {
    color: #ffffff;
    font-size: 1.3rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.alert-close {
    color: var(--main-color);
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    user-select: none;
}

.alert-close:hover {
    color: #ff0000;
    transform: scale(1.2) rotate(90deg);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .system-alert-notification {
        width: calc(100% - 40px);
        right: -100%;
        top: 10px;
    }

    .system-alert-notification.show {
        right: 20px;
    }

    .alert-icon {
        font-size: 2rem;
    }

    .alert-title {
        font-size: 1.2rem;
    }

    .alert-message {
        font-size: 1.1rem;
    }
}

/* Theme-specific glow effects */
body[data-theme="cyberpunk"] .system-alert-notification {
    border-color: #ff00ff;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 0, 255, 0.4);
}

body[data-theme="neon"] .system-alert-notification {
    border-color: #39ff14;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(57, 255, 20, 0.4);
}