/**
 * AI Generation Navigation Banner Styles
 * Modern, elegant banner for tracking AI generation across pages
 */

.ai-generation-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.98) 0%, 
        rgba(30, 41, 59, 0.98) 100%
    );
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    transform: translateY(-100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.ai-generation-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.ai-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    margin-right: 12px;
}

.ai-status-icon i {
    font-size: 18px;
    animation: pulse 2s infinite;
}

.ai-status-content {
    flex: 1;
}

.ai-status-title {
    font-weight: 600;
    font-size: 14px;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.ai-status-progress {
    width: 100%;
}

.ai-status-progress .progress {
    height: 6px;
    background-color: rgba(148, 163, 184, 0.2);
    border-radius: 3px;
    margin-bottom: 2px;
    overflow: hidden;
}

.ai-status-progress .progress-bar {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
}

.ai-status-text {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.2;
}

/* Button styling */
.ai-generation-banner .btn {
    border-radius: 8px;
    font-size: 12px;
    padding: 6px 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ai-generation-banner .btn-outline-primary {
    border-color: rgba(59, 130, 246, 0.5);
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.ai-generation-banner .btn-outline-primary:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #60a5fa;
    transform: translateY(-1px);
}

.ai-generation-banner .btn-outline-secondary {
    border-color: rgba(148, 163, 184, 0.5);
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
}

.ai-generation-banner .btn-outline-secondary:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: #94a3b8;
    color: #cbd5e1;
}

/* Success state */
.ai-generation-banner.success .ai-status-icon {
    background: rgba(34, 197, 94, 0.1);
}

.ai-generation-banner.success .ai-status-title {
    color: #10b981;
}

/* Error state */
.ai-generation-banner.error .ai-status-icon {
    background: rgba(239, 68, 68, 0.1);
}

.ai-generation-banner.error .ai-status-title {
    color: #ef4444;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .ai-generation-banner {
        padding: 8px 0;
    }
    
    .ai-status-title {
        font-size: 13px;
    }
    
    .ai-status-text {
        font-size: 11px;
    }
    
    .ai-generation-banner .btn {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .ai-status-icon {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
    
    .ai-status-icon i {
        font-size: 14px;
    }
}

/* Ensure page content doesn't get hidden behind banner */
body.ai-banner-active {
    padding-top: 70px;
    transition: padding-top 0.3s ease;
}

/* Dark theme compatibility */
[data-bs-theme="dark"] .ai-generation-banner {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.98) 0%, 
        rgba(30, 41, 59, 0.98) 100%
    );
    border-bottom-color: rgba(148, 163, 184, 0.1);
}

/* Light theme */
[data-bs-theme="light"] .ai-generation-banner {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 250, 252, 0.98) 100%
    );
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .ai-status-title {
    color: #1e293b;
}

[data-bs-theme="light"] .ai-status-text {
    color: #64748b;
}

[data-bs-theme="light"] .ai-generation-banner .btn-outline-secondary {
    color: #64748b;
}

[data-bs-theme="light"] .ai-generation-banner .btn-outline-secondary:hover {
    color: #475569;
}