/* Explain: CSS for the live notification popup. */
/* Live activity notification popup */
.live-notif {
    position: fixed;
    top: 5rem;
    inset-inline-end: 1rem;
    z-index: 54;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    width: min(20rem, calc(100vw - 2rem));
    padding: 0.8rem 0.9rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.live-notif[hidden] {
    display: none;
}

.live-notif.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.live-notif__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.8rem;
    background: rgba(61, 255, 136, 0.2);
    color: var(--neon-dark);
    flex-shrink: 0;
}

.live-notif__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.live-notif__text {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.live-notif__time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.live-notif__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
}

.live-notif__close:hover {
    color: var(--text-color);
    background: var(--surface-alt);
}

@media (max-width: 640px) {
    .live-notif {
        top: auto;
        bottom: 5.5rem;
    }
}