/* PUSH NOTIFICATIONS - Bottom-left toast notifications */

.push-notification-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    max-width: 420px;
    pointer-events: none;
}

.push-notification {
    position: relative;
    background: rgba(20, 24, 36, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-cyan);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(0, 255, 255, 0.3);
    pointer-events: auto;
    animation: notificationSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.push-notification:hover {
    transform: translateX(4px);
}

.push-notification.severity-low,
.push-notification.severity-default {
    border-left-color: var(--accent-cyan);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(0, 255, 255, 0.3);
}

.push-notification.severity-medium {
    border-left-color: var(--accent-amber);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(255, 191, 0, 0.3);
}

.push-notification.severity-high {
    border-left-color: var(--accent-red);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(255, 51, 102, 0.4);
}

.push-notification.dismissing {
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification-dismiss {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.notification-dismiss:hover {
    background: rgba(255, 51, 102, 0.3);
    color: var(--accent-red);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-right: 28px;
}

.notification-badge {
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 3px;
    background: rgba(0, 255, 255, 0.2);
    color: var(--accent-cyan);
}

.notification-badge.severity-medium {
    background: rgba(255, 191, 0, 0.2);
    color: var(--accent-amber);
}

.notification-badge.severity-high {
    background: rgba(255, 51, 102, 0.2);
    color: var(--accent-red);
}

.notification-timestamp {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-left: auto;
}

.notification-body {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.notification-meta {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.notification-timer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), transparent);
    animation: notificationTimer linear forwards;
    border-radius: 0 0 8px 8px;
}

.notification-timer.severity-medium {
    background: linear-gradient(90deg, var(--accent-amber), transparent);
}

.notification-timer.severity-high {
    background: linear-gradient(90deg, var(--accent-red), transparent);
}

.notification-timer.paused {
    animation-play-state: paused;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(-100%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes notificationTimer {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}
