/**
 * Notification Styles
 * 
 * Toast notification system for user feedback
 * 
 * @package BAM_Theme
 */

.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.notification {
    background: var(--color-primary-main);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--color-secondary-default);
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, var(--color-primary-main) 0%, rgba(40, 167, 69, 0.1) 100%);
}

.notification-error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, var(--color-primary-main) 0%, rgba(220, 53, 69, 0.1) 100%);
}

.notification-warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, var(--color-primary-main) 0%, rgba(255, 193, 7, 0.1) 100%);
}

.notification-info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, var(--color-primary-main) 0%, rgba(23, 162, 184, 0.1) 100%);
}

/* Icon indicators */
.notification::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    border-radius: 2px;
    background: currentColor;
}

.notification-success::before {
    background: #28a745;
}

.notification-error::before {
    background: #dc3545;
}

.notification-warning::before {
    background: #ffc107;
}

.notification-info::before {
    background: #17a2b8;
}

/* Hover effects */
.notification:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .notifications-container {
        top: 10px;
        right: 10px;
        left: 10px;
        align-items: stretch;
    }
    
    .notification {
        min-width: auto;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .notification:hover {
        transform: translateY(-2px);
    }
}

/* Dark mode adjustments */
.dark-mode .notification {
    background: var(--color-primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.light-mode .notification {
    background: #ffffff;
    color: #333333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animation keyframes */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .notification {
        transition: opacity 0.3s ease;
        transform: none;
    }
    
    .notification.show {
        transform: none;
    }
    
    .notification:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .notification {
        border: 2px solid currentColor;
        background: var(--color-primary-main);
    }
    
    .notification-success {
        border-color: #28a745;
    }
    
    .notification-error {
        border-color: #dc3545;
    }
    
    .notification-warning {
        border-color: #ffc107;
    }
    
    .notification-info {
        border-color: #17a2b8;
    }
}