/**
 * Toast Notifications - Matching lumo Design
 * Beautiful success/error/info notifications
 */

/* Toast Container */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 420px;
    width: calc(100% - 40px);
}

/* Toast */
.toast {
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(212, 165, 116, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.3s ease;
}

/* Progress bar */
.toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #f2cf7b, #d29658);
    width: 100%;
    transform-origin: left;
    animation: toastProgress 3s linear forwards;
}

@keyframes toastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Toast Icon */
.toast-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.toast-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    opacity: 0.3;
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% { 
        box-shadow: 0 0 0 0 currentColor;
        opacity: 0.3;
    }
    50% { 
        box-shadow: 0 0 0 6px currentColor;
        opacity: 0;
    }
}

.toast-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 8px currentColor);
}

/* Success Toast */
.toast.success .toast-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.15));
    border: 1.5px solid rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.toast.success::before {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

/* Error Toast */
.toast.error .toast-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.15));
    border: 1.5px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.toast.error::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Warning Toast */
.toast.warning .toast-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.15));
    border: 1.5px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.toast.warning::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

/* Info Toast */
.toast.info .toast-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.15));
    border: 1.5px solid rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

.toast.info::before {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

/* Toast Content */
.toast-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.toast-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #E8DCC4;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.toast-message {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    color: #E8DCC4;
    line-height: 1.4;
    margin: 0;
    font-weight: 600;
}

/* Close Button */
.toast-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    color: #9B8B7E;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 165, 116, 0.3);
    color: #E8DCC4;
    transform: scale(1.1);
}

.toast-close svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .toast-container {
        top: 20px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }
    
    .toast {
        padding: 16px 18px;
    }
    
    .toast-icon {
        width: 40px;
        height: 40px;
    }
    
    .toast-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .toast-title {
        font-size: 0.95rem;
    }
    
    .toast-message {
        font-size: 0.85rem;
    }
}

/* Hover pause progress */
.toast:hover::before {
    animation-play-state: paused;
}

