/* Skullbrain Frontend Notifications Styles */

/* Main container for frontend notifications */
#skullbrain-frontend-notifications-container {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 999 !important;
    max-width: 400px;
    pointer-events: none;
    display: block !important;
    visibility: visible !important;
}

/* Individual frontend notification */
.skullbrain-frontend-notification {
    background: #fff !important;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    margin-bottom: 15px;
    padding: 20px;
    display: flex !important;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid #0073aa;
    min-width: 320px;
    max-width: 400px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 999 !important;
}

.skullbrain-frontend-notification.show {
    transform: translateX(0) !important;
    opacity: 1 !important;
    display: flex !important;
    visibility: visible !important;
}

.skullbrain-frontend-notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* Notification types for frontend */
.skullbrain-frontend-notification[data-type="info"] {
    border-left-color: #0073aa;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.skullbrain-frontend-notification[data-type="success"] {
    border-left-color: #46b450;
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
}

.skullbrain-frontend-notification[data-type="warning"] {
    border-left-color: #ffb900;
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
}

.skullbrain-frontend-notification[data-type="error"] {
    border-left-color: #dc3232;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

/* Frontend notification type icon */
.skullbrain-frontend-notification .notification-type {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    font-size: 18px;
}

.skullbrain-frontend-notification .notification-type.type-info {
    background: rgba(0, 115, 170, 0.1);
    color: #0073aa;
}

.skullbrain-frontend-notification .notification-type.type-success {
    background: rgba(70, 180, 80, 0.1);
    color: #46b450;
}

.skullbrain-frontend-notification .notification-type.type-warning {
    background: rgba(255, 185, 0, 0.1);
    color: #ffb900;
}

.skullbrain-frontend-notification .notification-type.type-error {
    background: rgba(220, 50, 50, 0.1);
    color: #dc3232;
}

/* Frontend notification content */
.skullbrain-frontend-notification .notification-content {
    flex: 1;
    min-width: 0;
}

.skullbrain-frontend-notification .notification-content h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.3;
}

.skullbrain-frontend-notification .notification-content p {
    margin: 0;
    font-size: 14px;
    color: #646970;
    line-height: 1.5;
}

/* Frontend close button */
.skullbrain-frontend-notification .notification-close {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #8c8f94;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.skullbrain-frontend-notification .notification-close:hover {
    color: #1d2327;
    background: rgba(0, 0, 0, 0.05);
}

.skullbrain-frontend-notification .close-icon {
    font-size: 18px;
    font-weight: bold;
}

/* Frontend progress bar */
.skullbrain-frontend-notification .notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #0073aa;
    border-radius: 0 0 12px 12px;
    width: 100%;
    transform-origin: left;
    animation: frontendProgressBar linear;
}

.skullbrain-frontend-notification[data-type="success"] .notification-progress {
    background: #46b450;
}

.skullbrain-frontend-notification[data-type="warning"] .notification-progress {
    background: #ffb900;
}

.skullbrain-frontend-notification[data-type="error"] .notification-progress {
    background: #dc3232;
}

@keyframes frontendProgressBar {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Responsive design for frontend */
@media (max-width: 768px) {
    #skullbrain-frontend-notifications-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .skullbrain-frontend-notification {
        min-width: auto;
        max-width: none;
        padding: 16px;
        gap: 12px;
    }
    
    .skullbrain-frontend-notification .notification-content h4 {
        font-size: 15px;
    }
    
    .skullbrain-frontend-notification .notification-content p {
        font-size: 13px;
    }
}

/* Animation for new frontend notifications */
@keyframes slideInRightFrontend {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRightFrontend {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.skullbrain-frontend-notification.slide-in {
    animation: slideInRightFrontend 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skullbrain-frontend-notification.slide-out {
    animation: slideOutRightFrontend 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects for frontend notifications */
.skullbrain-frontend-notification:hover {
    transform: translateX(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.skullbrain-frontend-notification:hover .notification-progress {
    animation-play-state: paused;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .skullbrain-frontend-notification {
        background: rgba(30, 30, 30, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
    
    .skullbrain-frontend-notification .notification-content h4 {
        color: #ffffff;
    }
    
    .skullbrain-frontend-notification .notification-content p {
        color: #cccccc;
    }
    
    .skullbrain-frontend-notification .notification-close {
        color: #cccccc;
    }
    
    .skullbrain-frontend-notification .notification-close:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.1);
    }
}
