/**
 * Toast Notification System Styles
 * Positioned above bottom bar on mobile, bottom: 40px on desktop
 * z-index: 1000000 (above auth overlay 999999 and bottom bar 1100)
 */

/* Container - holds stacked toasts */
.tt-toast-container {
    position: fixed;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000000;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    pointer-events: none;
    max-width: 90vw;
    width: 360px;
}

@media (min-width: 769px) {
    .tt-toast-container {
        bottom: 40px;
    }
}

/* Individual toast item */
.tt-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    pointer-events: auto;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Type variants */
.tt-toast-success { background: rgba(34, 197, 94, 0.9); }
.tt-toast-error   { background: rgba(220, 38, 38, 0.9); }
.tt-toast-info    { background: rgba(30, 30, 30, 0.9); border: 1px solid rgba(255, 255, 255, 0.1); }

/* Icon */
.tt-toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Message text */
.tt-toast-message {
    flex: 1;
    line-height: 1.3;
}

/* Enter animation */
.tt-toast-visible {
    animation: toastSlideIn var(--duration-normal, 300ms) var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1)) forwards;
}

/* Exit animation */
.tt-toast-exit {
    animation: toastSlideOut var(--duration-fast, 200ms) var(--ease-default, ease) forwards;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastSlideOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .tt-toast-visible,
    .tt-toast-exit {
        animation-duration: 0.01ms !important;
    }
}
