/**
 * TOAST NOTIFICATIONS - Wonder Park
 * Design moderne et élégant pour les notifications
 */

/* ==========================================================================
   CONTAINER DES TOASTS
   ========================================================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

/* ==========================================================================
   TOAST PRINCIPAL
   ========================================================================== */

.toast-notification {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.hide {
    transform: translateX(120%);
    opacity: 0;
}

/* ==========================================================================
   TYPES DE TOASTS
   ========================================================================== */

.toast-notification.success {
    border-left: 4px solid #10B981;
}

.toast-notification.success .toast-icon {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.toast-notification.error {
    border-left: 4px solid #EF4444;
}

.toast-notification.error .toast-icon {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.toast-notification.info {
    border-left: 4px solid #3B82F6;
}

.toast-notification.info .toast-icon {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.1);
}

.toast-notification.warning {
    border-left: 4px solid #F59E0B;
}

.toast-notification.warning .toast-icon {
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}

/* Toast anniversaire spécial */
.toast-notification.birthday {
    border-left: 4px solid #FF006F;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 0, 111, 0.02) 100%);
}

.toast-notification.birthday .toast-icon {
    color: #FF006F;
    background: rgba(255, 0, 111, 0.1);
}

/* ==========================================================================
   ÉLÉMENTS DU TOAST
   ========================================================================== */

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.toast-message {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.4;
}

.toast-close {
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(107, 114, 128, 0.1);
    color: #6B7280;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(107, 114, 128, 0.2);
    color: #374151;
}

/* ==========================================================================
   BARRE DE PROGRESSION
   ========================================================================== */

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 0, 111, 0.3);
    border-radius: 0 0 16px 16px;
    transition: width linear;
}

.toast-notification.birthday .toast-progress {
    background: linear-gradient(90deg, #FF006F 0%, #FF1744 100%);
}

.toast-notification.success .toast-progress {
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
}

.toast-notification.error .toast-progress {
    background: linear-gradient(90deg, #EF4444 0%, #DC2626 100%);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* Effet hover */
.toast-notification:hover {
    transform: translateX(-4px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 640px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast-notification {
        padding: 12px 16px;
        margin-bottom: 8px;
    }
    
    .toast-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .toast-title {
        font-size: 14px;
    }
    
    .toast-message {
        font-size: 13px;
    }
}

/* ==========================================================================
   ACCESSIBILITÉ
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .toast-notification {
        transition: opacity 0.3s ease;
    }
    
    .toast-notification:hover {
        transform: none;
    }
}

/* Focus pour accessibilité */
.toast-close:focus {
    outline: 2px solid #FF006F;
    outline-offset: 2px;
}
