/* Lolo AI Chatbot Styles */

/* Chat Button */
.lolo-ai-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fdb913 0%, #e11a2c 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(253, 185, 19, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: visible;
}

.lolo-ai-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(253, 185, 19, 0.6);
}

.lolo-ai-chat-button:active {
    transform: scale(0.95);
}

.lolo-ai-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Tooltip */
.lolo-ai-tooltip {
    position: absolute;
    right: 75px;
    bottom: 50%;
    transform: translateY(50%);
    background: #03182d;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lolo-ai-tooltip::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #03182d;
}

.lolo-ai-chat-button:hover .lolo-ai-tooltip {
    opacity: 1;
}

/* Chat Overlay */
.lolo-ai-chat-overlay {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 400px;
    height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

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

/* Chat Header */
.lolo-ai-chat-header {
    background: linear-gradient(135deg, #03182d 0%, #004d3d 100%);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.lolo-ai-header-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.lolo-ai-chat-header h3 {
    color: white;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.lolo-ai-chat-header p {
    color: #fdb913;
    margin: 0;
    font-size: 12px;
}

.lolo-ai-close-button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.lolo-ai-close-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Iframe */
.lolo-ai-iframe {
    flex: 1;
    width: 100%;
    border: none;
    background: #03182d;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lolo-ai-chat-overlay {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .lolo-ai-chat-button {
        bottom: 15px;
        right: 15px;
        width: 56px;
        height: 56px;
    }
    
    .lolo-ai-icon {
        width: 36px;
        height: 36px;
    }
    
    .lolo-ai-tooltip {
        display: none;
    }
}

/* Accessibility */
.lolo-ai-chat-button:focus,
.lolo-ai-close-button:focus {
    outline: 2px solid #fdb913;
    outline-offset: 2px;
}

/* Animation for button pulse */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(253, 185, 19, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(253, 185, 19, 0.7);
    }
}

.lolo-ai-chat-button.pulse {
    animation: pulse 2s infinite;
}
