/* ══════════════════════════════════════
   Glance Alert Overlay (Gotify)
   Xbox 360 Achievement Unlocked style.
   Pill banner · green Xbox icon · bold
   all-caps text · soft shadow · float.
   ══════════════════════════════════════ */

.xbox-toast-container {
    position: fixed;
    top: 52px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
    width: 100%;
    padding: 0 20px;
}

.xbox-toast {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(180deg, #5c5c5c 0%, #4a4a4a 40%, #3e3e3e 100%);
    border-radius: 40px;
    padding: 12px 28px 12px 16px;
    font-family: 'Geist', -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
    pointer-events: all;
    cursor: pointer;
    position: relative;
    color: #ffffff;
    width: auto;
    max-width: 580px;
    min-width: 340px;

    /* Soft floating shadow */
    box-shadow:
        0 1px 0 rgba(255,255,255,0.06) inset,
        0 4px 14px rgba(0,0,0,0.25),
        0 2px 4px rgba(0,0,0,0.15);

    /* Entry: slide down from top with subtle bounce */
    animation: xboxPillIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);

    /* Exit transition */
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Subtle top highlight line — gives it the Xbox material feel */
.xbox-toast::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: rgba(255,255,255,0.12);
    border-radius: 0 0 1px 1px;
    pointer-events: none;
}

/* ── Xbox 360 logo icon ── */
.xbox-toast .xbox-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    position: relative;
}

.xbox-toast .xbox-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Text content ── */
.xbox-toast .xbox-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.xbox-toast .xbox-title {
    font-weight: 800;
    font-size: 1.12em;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xbox-toast .xbox-body {
    font-weight: 600;
    font-size: 0.78em;
    color: rgba(255,255,255,0.8);
    line-height: 1.35;
    letter-spacing: 0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Fade out ── */
.xbox-toast.removing {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

/* ── Animations ── */

@keyframes xboxPillIn {
    0%   { opacity: 0; transform: translateY(-18px); }
    60%  { opacity: 1; transform: translateY(2px); }
    80%  { transform: translateY(-1px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ── Priority ring color variations (unused with delivery icon; kept for future) ── */

/* ── Mobile ── */
@media (max-width: 768px) {
    .xbox-toast-container {
        top: 10px;
        padding: 0 8px;
    }
    .xbox-toast {
        min-width: 0;
        max-width: 100%;
        padding: 10px 18px 10px 10px;
        border-radius: 32px;
        gap: 12px;
    }
    .xbox-toast .xbox-icon {
        width: 36px;
        height: 36px;
    }
    .xbox-toast .xbox-title {
        font-size: 0.94em;
    }
    .xbox-toast .xbox-body {
        font-size: 0.7em;
    }
}