/**
 * Chatbot Notification Styles
 * Integrated into main search - notification-based responses
 */

/* Notification Toast */
.chatbot-notification {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid rgba(74, 144, 226, 0.4);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 1.25rem 1.75rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 90%;
    width: auto;
    min-width: 300px;
}

.chatbot-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.notification-content i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    flex-shrink: 0;
    animation: notification-icon-pulse 2s ease-in-out infinite;
}

@keyframes notification-icon-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.notification-content span {
    flex: 1;
}

/* Highlight Animation for Sections */
.chatbot-highlight {
    animation: highlight-pulse 2s ease-in-out;
}

@keyframes highlight-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
    }
    50% {
        box-shadow: 0 0 30px 10px rgba(74, 144, 226, 0.4);
    }
}

/* Processing State for Search Input */
#searchInput:disabled {
    opacity: 0.6;
    cursor: wait;
}

#searchBtn.processing {
    pointer-events: none;
    opacity: 0.6;
}

#searchBtn.processing i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .chatbot-notification {
        top: 1rem;
        min-width: 280px;
        max-width: calc(100vw - 2rem);
        padding: 1rem 1.25rem;
    }

    .notification-content {
        font-size: 0.9rem;
        gap: 0.75rem;
    }

    .notification-content i {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .chatbot-notification {
        min-width: auto;
        width: calc(100vw - 2rem);
        padding: 0.875rem 1rem;
    }

    .notification-content {
        font-size: 0.85rem;
        gap: 0.625rem;
    }

    .notification-content i {
        font-size: 1.2rem;
    }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .chatbot-notification {
        background: rgba(10, 10, 10, 0.98);
        border-color: rgba(74, 144, 226, 0.5);
    }
}

/* Accessibility */
.chatbot-notification:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Animation for notification entrance */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Success/Info variants (optional for future use) */
.chatbot-notification.success {
    border-color: rgba(16, 185, 129, 0.4);
}

.chatbot-notification.success .notification-content i {
    color: #10b981;
}

.chatbot-notification.info {
    border-color: rgba(59, 130, 246, 0.4);
}

.chatbot-notification.info .notification-content i {
    color: #3b82f6;
}

/* Smooth transitions for all interactive elements */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
