/**
 * Toast System CSS
 * Extracted from base.html.twig - Global Toast Notification System
 * 
 * Description:
 * Custom toast notification system with gradients, animations,
 * hover pause functionality, and responsive design.
 * 
 * Features:
 * - Fixed positioning below navbar
 * - Gradient backgrounds per notification type
 * - Smooth fade-in animations
 * - Mobile responsive
 * - Hover pause on mouseover
 */

/* ===================================
   Toast Container
   =================================== */

#pc-toast-container {
    position: fixed;
    top: 80px; /* ~70px navbar + spacing */
    right: 1rem;
    z-index: 12000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .75rem;
    pointer-events: none; /* let clicks pass except on toasts */
}

/* ===================================
   Toast Base Styles
   =================================== */

#pc-toast-container .toast {
    pointer-events: auto;
    min-width: 320px;
    max-width: 380px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .25s ease, transform .25s ease;
}

/* ===================================
   Toast Show/Hide States
   =================================== */

#pc-toast-container .toast.showing,
#pc-toast-container .toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Toast Content Styling
   =================================== */

#pc-toast-container .toast .toast-body {
    font-weight: 500;
}

/* ===================================
   Toast Type Gradients
   =================================== */

#pc-toast-container .toast[data-type="success"] {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
}

#pc-toast-container .toast[data-type="info"] {
    background: linear-gradient(135deg, #0d6efd, #4dabf7);
    color: #fff;
}

#pc-toast-container .toast[data-type="warning"] {
    background: linear-gradient(135deg, #ffc107, #ffb347);
    color: #212529;
}

#pc-toast-container .toast[data-type="error"] {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
}

/* ===================================
   Toast Close Button
   =================================== */

#pc-toast-container .toast button.btn-close {
    filter: brightness(0) invert(1);
}

#pc-toast-container .toast[data-type="warning"] button.btn-close {
    filter: none;
}

/* ===================================
   Mobile Responsive Design
   =================================== */

@media (max-width: 576px) {
    #pc-toast-container {
        left: .75rem;
        right: .75rem;
        top: 76px;
        align-items: stretch;
    }
    
    #pc-toast-container .toast {
        width: 100%;
        max-width: 100%;
    }
}
