/**
 * Lunarcat Global Notification System CSS
 * 
 * Provides consistent toast notifications across all plugin features
 */

/* Notification Container - Fixed position top-right */
.lunarcat-notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000000; /* Higher than all modals (999999) to ensure visibility */
    max-width: 400px;
    pointer-events: none;
}

/* Individual Notification */
.lunarcat-notification {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    min-width: 300px;
    
    /* Animation setup */
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show animation */
.lunarcat-notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Hide animation */
.lunarcat-notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* Notification content */
.notification-content {
    flex: 1;
    margin-right: 12px;
}

/* Close button */
.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Success notification */
.lunarcat-notification.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lunarcat-notification.success .notification-close {
    color: #155724;
}

.lunarcat-notification.success .notification-close:hover {
    background: rgba(21, 87, 36, 0.1);
}

/* Error notification */
.lunarcat-notification.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.lunarcat-notification.error .notification-close {
    color: #721c24;
}

.lunarcat-notification.error .notification-close:hover {
    background: rgba(114, 28, 36, 0.1);
}

/* Info notification */
.lunarcat-notification.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.lunarcat-notification.info .notification-close {
    color: #0c5460;
}

.lunarcat-notification.info .notification-close:hover {
    background: rgba(12, 84, 96, 0.1);
}

/* Warning notification */
.lunarcat-notification.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.lunarcat-notification.warning .notification-close {
    color: #856404;
}

.lunarcat-notification.warning .notification-close:hover {
    background: rgba(133, 100, 4, 0.1);
}

/* Dark theme support */
[data-theme="dark"] .lunarcat-notification.success {
    background: rgba(40, 167, 69, 0.15);
    color: #51cf66;
    border-color: rgba(40, 167, 69, 0.3);
}

[data-theme="dark"] .lunarcat-notification.error {
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b6b;
    border-color: rgba(220, 53, 69, 0.3);
}

[data-theme="dark"] .lunarcat-notification.info {
    background: rgba(52, 144, 220, 0.15);
    color: #74c0fc;
    border-color: rgba(52, 144, 220, 0.3);
}

[data-theme="dark"] .lunarcat-notification.warning {
    background: rgba(255, 193, 7, 0.15);
    color: #ffd43b;
    border-color: rgba(255, 193, 7, 0.3);
}

/* Enhanced box shadow for dark theme */
[data-theme="dark"] .lunarcat-notification {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive design for mobile */
@media (max-width: 480px) {
    .lunarcat-notifications-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .lunarcat-notification {
        min-width: auto;
        margin-bottom: 8px;
    }
}

/* Accessibility: Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .lunarcat-notification {
        transition: opacity 0.3s ease;
        transform: none !important;
    }
    
    .lunarcat-notification.show {
        opacity: 1;
    }
    
    .lunarcat-notification.hide {
        opacity: 0;
    }
}