/* GamesSchedule toast styling — overrides the stock toastr look. Loaded after toastr.min.css. */
#toast-container {
    --toast-accent: #a3ef38;
    --toast-accent-soft: rgba(163, 239, 56, .16);
    pointer-events: none;
}

#toast-container > div,
#toast-container > .toast-success,
#toast-container > .toast-error,
#toast-container > .toast-warning,
#toast-container > .toast-info {
    position: relative;
    width: 360px;
    max-width: calc(100vw - 32px);
    margin: 0 0 14px;
    padding: 16px 42px 16px 66px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-left: 3px solid var(--toast-accent);
    border-radius: 16px;
    /* toastr ships its sprite with !important, so the override needs it too. */
    background-image: none !important;
    background-color: rgba(13, 17, 11, .97);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
    backdrop-filter: blur(14px);
    color: #eef4e6;
    opacity: 1;
    overflow: hidden;
    pointer-events: auto;
    animation: gs-toast-in .42s cubic-bezier(.16, .84, .32, 1.06) both;
}

/* Soft accent bloom behind the icon. */
/* Clear the sticky site header instead of overlapping it. */
#toast-container.toast-top-right,
#toast-container.toast-top-center,
#toast-container.toast-top-left { top: 86px; }

#toast-container > div::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -30px;
    width: 160px;
    height: 180%;
    background: radial-gradient(closest-side, var(--toast-accent-soft), transparent 70%);
    pointer-events: none;
}

/* Icon medallion, replacing toastr's background sprite. */
#toast-container > div::before {
    content: '\f00c';
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid var(--toast-accent-soft);
    background: var(--toast-accent-soft);
    color: var(--toast-accent);
    font: normal normal normal 15px/1 FontAwesome;
    box-shadow: 0 0 18px -4px var(--toast-accent);
}

#toast-container > div:hover {
    box-shadow: 0 26px 60px rgba(0, 0, 0, .6), 0 0 0 1px var(--toast-accent-soft);
    transform: translateY(-1px);
    transition: transform .18s ease, box-shadow .18s ease;
}

#toast-container > .toast-error { --toast-accent: #ff6b6b; --toast-accent-soft: rgba(255, 107, 107, .16); }
#toast-container > .toast-error::before { content: '\f00d'; }
#toast-container > .toast-warning { --toast-accent: #ffc24b; --toast-accent-soft: rgba(255, 194, 75, .16); }
#toast-container > .toast-warning::before { content: '\f071'; }
#toast-container > .toast-info { --toast-accent: #57c7ff; --toast-accent-soft: rgba(87, 199, 255, .16); }
#toast-container > .toast-info::before { content: '\f129'; }

#toast-container .toast-title {
    position: relative;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #fbfff5;
    margin-bottom: 3px;
}

#toast-container .toast-message {
    position: relative;
    font-size: .78rem;
    line-height: 1.5;
    color: #b6c4a9;
    word-wrap: break-word;
}

#toast-container .toast-close-button {
    position: absolute;
    top: 11px;
    right: 13px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #7d8a72;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1;
    text-shadow: none;
    opacity: 1;
    transition: .16s;
}

#toast-container .toast-close-button:hover,
#toast-container .toast-close-button:focus {
    color: var(--toast-accent);
    background: rgba(255, 255, 255, .07);
    opacity: 1;
}

#toast-container .toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    opacity: 1;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(90deg, var(--toast-accent), rgba(255, 255, 255, .22));
    box-shadow: 0 0 12px -2px var(--toast-accent);
}

@keyframes gs-toast-in {
    from { transform: translate3d(28px, -6px, 0) scale(.96); filter: blur(3px); }
    to { transform: none; filter: none; }
}

@media (max-width: 600px) {
    #toast-container > div { width: calc(100vw - 24px); padding: 14px 38px 14px 58px; }
    #toast-container.toast-top-right { top: 12px; right: 12px; left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    #toast-container > div { animation: none; }
}
