/**
 * Hero Bot - Promo Card AI Assistant Styles
 * CSS styles for the interactive AI assistant in the PPL(A) course card
 */

/* Animation keyframes */
.animate-fade-in-up {
    animation: fadeInUp 0.3s ease-out forwards;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Custom scrollbar for promo chat */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.02);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.2);
}

/* Promo card container transitions */
#ppl-promo-container {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* AI Interface transitions */
#ppl-promo-interface {
    transition: opacity 0.3s ease-in-out;
}

#ppl-promo-default {
    transition: opacity 0.3s ease-in-out;
}

/* Loading overlay styles */
#promo-loading-overlay {
    transition: opacity 0.3s ease-in-out;
}

/* Suggestions area styles */
#promo-suggestions {
    transition: opacity 0.3s ease-in-out;
}

/* Suggestion button hover effects */
#promo-suggestions button {
    transition: all 0.2s ease-in-out;
}

#promo-suggestions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1), 0 2px 4px -1px rgba(79, 70, 229, 0.06);
}

/* Message animations */
.animate-fade-in-up[style*="animation-delay"] {
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Robot avatar animations */
.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Ping animation for status indicators */
.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Glass morphism effects */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(8px);
}

/* Shadow effects for promo card */
.shadow-\[0_-10px_40px_-15px_rgba\(0\,0\,0\,0\.05\)\] {
    box-shadow: 0 -10px 40px -15px rgba(0,0,0,0.05);
}

/* Message bubble styles */
#promo-chat-messages .bg-indigo-600 {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading skeleton pulse animation */
.animate-pulse .bg-slate-200 {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Smooth scroll behavior */
#promo-chat-messages {
    scroll-behavior: smooth;
}

/* Prose styling for markdown content */
.prose-slate {
    --tw-prose-body: rgb(71 85 105);
    --tw-prose-headings: rgb(15 23 42);
    --tw-prose-links: rgb(79 70 229);
    --tw-prose-bold: rgb(15 23 42);
}

.prose-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #ppl-promo-card {
        max-height: 90vh;
    }
    
    #ppl-promo-interface {
        max-height: 90vh;
    }
}
