/**
 * Mimoza AI SEO Course + Smart Chatbot Widget
 * Frontend Styles
 */

:root {
    --mimoza-primary: #1F2937;
    --mimoza-accent: #00AEEF;
    --mimoza-orange: #FF9500;
    --mimoza-white: #FFFFFF;
    --mimoza-gray: #6B7280;
    --mimoza-light: #F3F4F6;
    --mimoza-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Chatbot Container
   ========================================================================== */

#mimoza-chatbot-container {
    position: fixed;
    bottom: 30px;
    z-index: 999999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#mimoza-chatbot-container.mimoza-chatbot-left {
    left: 30px;
}

#mimoza-chatbot-container.mimoza-chatbot-right {
    right: 30px;
}

#mimoza-chatbot-container.mimoza-chatbot-center {
    left: 50%;
    transform: translateX(-50%);
}

/* ==========================================================================
   Chatbot Bubble
   ========================================================================== */

.mimoza-chatbot-bubble {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--mimoza-accent) 0%, #0095D4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 174, 239, 0.4);
    transition: var(--mimoza-transition);
    position: relative;
    animation: mimoza-bubble-float 3s ease-in-out infinite;
}

.mimoza-chatbot-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 174, 239, 0.6);
}

.mimoza-bubble-icon {
    color: var(--mimoza-white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.mimoza-bubble-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--mimoza-accent);
    opacity: 0.3;
    animation: mimoza-pulse 2s ease-out infinite;
}

/* Tooltip */
.mimoza-bubble-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 15px;
    background: var(--mimoza-primary);
    color: var(--mimoza-white);
    padding: 12px 20px;
    border-radius: 12px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: var(--mimoza-transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.mimoza-bubble-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--mimoza-primary);
}

.mimoza-chatbot-bubble:hover .mimoza-bubble-tooltip {
    opacity: 1;
}

/* ==========================================================================
   Chatbot Panel
   ========================================================================== */

.mimoza-chatbot-panel {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    background: var(--mimoza-white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: var(--mimoza-transition);
}

.mimoza-chatbot-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Panel Header */
.mimoza-panel-header {
    background: linear-gradient(135deg, var(--mimoza-primary) 0%, #374151 100%);
    color: var(--mimoza-white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mimoza-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mimoza-header-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.mimoza-header-text h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.mimoza-status {
    font-size: 12px;
    opacity: 0.9;
}

.mimoza-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--mimoza-white);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--mimoza-transition);
}

.mimoza-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Panel Body */
.mimoza-panel-body {
    padding: 25px;
    max-height: 400px;
    overflow-y: auto;
}

.mimoza-welcome-message {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.mimoza-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--mimoza-accent) 0%, #0095D4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--mimoza-white);
}

.mimoza-message-content h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--mimoza-primary);
}

.mimoza-message-content p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--mimoza-gray);
    line-height: 1.6;
}

.mimoza-highlight {
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.1) 0%, rgba(255, 149, 0, 0.1) 100%);
    padding: 12px;
    border-radius: 10px;
    border-left: 3px solid var(--mimoza-accent);
    font-size: 13px !important;
}

/* Features */
.mimoza-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.mimoza-feature-item {
    background: var(--mimoza-light);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--mimoza-primary);
    font-weight: 500;
    transition: var(--mimoza-transition);
}

.mimoza-feature-item:hover {
    background: #E5E7EB;
    transform: translateY(-2px);
}

.mimoza-feature-icon {
    font-size: 20px;
}

/* Panel Footer */
.mimoza-panel-footer {
    padding: 20px 25px 25px;
    background: var(--mimoza-light);
}

.mimoza-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mimoza-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--mimoza-transition);
    font-family: inherit;
}

.mimoza-btn-primary {
    background: linear-gradient(135deg, var(--mimoza-accent) 0%, #0095D4 100%);
    color: var(--mimoza-white);
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
}

.mimoza-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 174, 239, 0.4);
}

.mimoza-btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--mimoza-white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.mimoza-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.mimoza-btn-demo {
    background: linear-gradient(135deg, var(--mimoza-orange) 0%, #E88400 100%);
    color: var(--mimoza-white);
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}

.mimoza-btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
}

.mimoza-footer-credit {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0;
}

.mimoza-footer-credit small {
    color: var(--mimoza-gray);
    font-size: 12px;
}

/* ==========================================================================
   Course Widget
   ========================================================================== */

.mimoza-course-widget {
    background: var(--mimoza-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
}

.mimoza-course-header {
    text-align: center;
    margin-bottom: 40px;
}

.mimoza-course-header h2 {
    font-size: 32px;
    color: var(--mimoza-primary);
    margin-bottom: 15px;
}

.mimoza-course-header p {
    font-size: 18px;
    color: var(--mimoza-gray);
    line-height: 1.6;
}

.mimoza-ai-models {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.mimoza-ai-model {
    background: var(--mimoza-light);
    padding: 25px;
    border-radius: 15px;
    transition: var(--mimoza-transition);
    border: 2px solid transparent;
}

.mimoza-ai-model:hover {
    border-color: var(--mimoza-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 174, 239, 0.2);
}

.mimoza-ai-model h3 {
    font-size: 20px;
    color: var(--mimoza-primary);
    margin-bottom: 8px;
}

.mimoza-ai-model .version {
    display: inline-block;
    background: var(--mimoza-accent);
    color: var(--mimoza-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.mimoza-ai-model p {
    font-size: 14px;
    color: var(--mimoza-gray);
    line-height: 1.6;
}

.mimoza-contact-section {
    background: linear-gradient(135deg, var(--mimoza-primary) 0%, #374151 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-top: 40px;
}

.mimoza-contact-section h3 {
    color: var(--mimoza-white);
    font-size: 28px;
    margin-bottom: 20px;
}

.mimoza-contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes mimoza-pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

@keyframes mimoza-bubble-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.mimoza-chatbot-animated {
    animation: mimoza-slide-in 0.5s ease-out;
}

@keyframes mimoza-slide-in {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    #mimoza-chatbot-container.mimoza-chatbot-left,
    #mimoza-chatbot-container.mimoza-chatbot-right,
    #mimoza-chatbot-container.mimoza-chatbot-center {
        left: auto;
        right: 20px;
        transform: none;
    }
    
    .mimoza-chatbot-panel {
        width: calc(100vw - 40px);
        right: -10px;
    }
    
    .mimoza-chatbot-bubble {
        width: 60px;
        height: 60px;
    }
    
    .mimoza-course-widget {
        padding: 25px;
    }
    
    .mimoza-ai-models {
        grid-template-columns: 1fr;
    }
    
    .mimoza-contact-buttons {
        flex-direction: column;
    }
    
    .mimoza-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mimoza-bubble-tooltip {
        display: none;
    }
    
    .mimoza-panel-body {
        max-height: 300px;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.mimoza-btn:focus,
.mimoza-chatbot-bubble:focus,
.mimoza-close-btn:focus {
    outline: 3px solid var(--mimoza-accent);
    outline-offset: 2px;
}

/* Scrollbar */
.mimoza-panel-body::-webkit-scrollbar {
    width: 6px;
}

.mimoza-panel-body::-webkit-scrollbar-track {
    background: var(--mimoza-light);
}

.mimoza-panel-body::-webkit-scrollbar-thumb {
    background: var(--mimoza-accent);
    border-radius: 10px;
}
