/**
 * VTOWP Toast Styles
 * File: assets/css/vtowp-client-toast.css
 * Version: 1.0.0.0
 * 
 * @package VTOWP_Client
 * @since   1.0.0.0
 * 
 * 🔧 CHANGELOG:
 * - Already following vtowp-client pattern ✅
 * - No changes needed
 */

/* ============================================
   TOAST CONTAINER
   ============================================ */
#vtowp-client-toast {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 999999;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Desktop */
@media (min-width: 769px) {
    #vtowp-client-toast {
        bottom: 10px;
        right: 10px;
        max-width: 380px;
        min-width: 280px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    #vtowp-client-toast {
        top: 16px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: 90%;
        min-width: auto;
    }
}

/* ============================================
   TOAST ITEM - MODERN GLASS DESIGN
   ============================================ */
.vtowp-client-toast-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Animated shine effect */
.vtowp-client-toast-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: vtowp-client-toast-shine 3s ease-in-out infinite;
}

@keyframes vtowp-client-toast-shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Desktop animation */
@keyframes vtowp-client-toast-slide-in {
    0% { transform: translateX(calc(100% + 40px)); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes vtowp-client-toast-slide-out {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(calc(100% + 40px)); opacity: 0; }
}

/* Mobile animation */
@keyframes vtowp-client-toast-mobile-in {
    0% { transform: translate(-50%, -100%) scale(0.9); opacity: 0; }
    100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

@keyframes vtowp-client-toast-mobile-out {
    0% { transform: translate(-50%, 0) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -100%) scale(0.9); opacity: 0; }
}

/* Toast types */
.vtowp-client-toast-item.vtowp-client-toast-success {
    border-left: 4px solid #10B981;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(16, 185, 129, 0.05));
}

.vtowp-client-toast-item.vtowp-client-toast-error {
    border-left: 4px solid #EF4444;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(239, 68, 68, 0.05));
}

.vtowp-client-toast-item.vtowp-client-toast-warning {
    border-left: 4px solid #F59E0B;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(245, 158, 11, 0.05));
}

.vtowp-client-toast-item.vtowp-client-toast-info {
    border-left: 4px solid #3B82F6;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(59, 130, 246, 0.05));
}

/* Toast icon */
.vtowp-client-toast-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.vtowp-client-toast-success .vtowp-client-toast-icon {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.vtowp-client-toast-error .vtowp-client-toast-icon {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.vtowp-client-toast-warning .vtowp-client-toast-icon {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.vtowp-client-toast-info .vtowp-client-toast-icon {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ✅ Toast message - Category Wise Colors */
.vtowp-client-toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

/* Success - Green */
.vtowp-client-toast-success .vtowp-client-toast-message {
    color: #03924c !important;
}

/* Error - Red */
.vtowp-client-toast-error .vtowp-client-toast-message {
    color: #d63638 !important;
}

/* Warning - Orange */
.vtowp-client-toast-warning .vtowp-client-toast-message {
    color: #e68a00 !important;
}

/* Info - Blue */
.vtowp-client-toast-info .vtowp-client-toast-message {
    color: #0066cc !important;
}

.vtowp-client-toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vtowp-client-toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #475569;
    transform: rotate(90deg);
}

/* Progress bar */
.vtowp-client-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #10B981, #3B82F6, #8B5CF6);
    border-radius: 0 0 0 3px;
    animation: vtowp-client-toast-progress 2.8s linear forwards;
}

.vtowp-client-toast-success .vtowp-client-toast-progress {
    background: linear-gradient(90deg, #10B981, #34D399);
}

.vtowp-client-toast-error .vtowp-client-toast-progress {
    background: linear-gradient(90deg, #EF4444, #F87171);
}

.vtowp-client-toast-warning .vtowp-client-toast-progress {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.vtowp-client-toast-info .vtowp-client-toast-progress {
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
}

@keyframes vtowp-client-toast-progress {
    0% { width: 100%; }
    100% { width: 0%; }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .vtowp-client-toast-item {
        padding: 8px 14px;
        border-radius: 12px;
        gap: 8px;
    }
    
    .vtowp-client-toast-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .vtowp-client-toast-message {
        font-size: 13px;
    }
    
    /* ✅ Mobile - Category Colors */
    .vtowp-client-toast-success .vtowp-client-toast-message {
        color: #03924c !important;
    }
    
    .vtowp-client-toast-error .vtowp-client-toast-message {
        color: #d63638 !important;
    }
    
    .vtowp-client-toast-warning .vtowp-client-toast-message {
        color: #e68a00 !important;
    }
    
    .vtowp-client-toast-info .vtowp-client-toast-message {
        color: #0066cc !important;
    }
}

@media (max-width: 480px) {
    .vtowp-client-toast-item {
        padding: 10px 14px;
        border-radius: 10px;
        gap: 8px;
    }
    
    .vtowp-client-toast-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .vtowp-client-toast-message {
        font-size: 12px;
    }
}