/* ==========================================================================
   GoblinExchange — Toast Notification
   Estilos para #ge-toast-container e .ge-toast
   ========================================================================== */

#ge-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.ge-toast {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    max-width: 320px;
    pointer-events: auto;
    border: 1px solid transparent;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    /* Start hidden — JS adds ge-toast--visible to trigger enter */
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ge-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.ge-toast--hiding {
    opacity: 0;
    transform: translateY(-4px);
}

/* Variantes */
.ge-toast--success {
    background: #0d2d1a;
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.25);
}

.ge-toast--error {
    background: #2d0d0d;
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.25);
}

.ge-toast--info {
    background: #1a1a0d;
    color: var(--brand, #F4C430);
    border-color: rgba(244, 196, 48, 0.2);
}

.ge-toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ge-toast-msg {
    flex: 1;
}

/* Mobile: posição na parte de baixo centrado */
@media (max-width: 480px) {
    #ge-toast-container {
        bottom: 5rem; /* acima da bottom nav */
        left: 1rem;
        right: 1rem;
        align-items: center;
    }
    .ge-toast {
        max-width: 100%;
        width: 100%;
    }
}
