/* assets/css/ai-chat.css - Floating AI Chat styles */

.ai-chat-widget {
    position: fixed;
    bottom: 80px; /* Above footer */
    right: 20px;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Chat Toggle Button */
.ai-chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-chat-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
}

.ai-chat-toggle.active {
    transform: rotate(90deg);
    background: #34495e;
}

/* Chat Window */
.ai-chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #1a2530;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.ai-chat-window.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Header */
.ai-chat-header {
    padding: 15px;
    background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-header i {
    color: #9b59b6;
    font-size: 18px;
}

.ai-chat-header .title {
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex: 1;
}

.ai-chat-clear {
    background: none;
    border: none;
    color: #bdc3c7;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    transition: all 0.2s;
    opacity: 0.6;
}

.ai-chat-clear:hover {
    color: #e74c3c;
    opacity: 1;
    transform: scale(1.1);
}

/* Messages Area */
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.ai-chat-messages::-webkit-scrollbar {
    width: 4px;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

/* Message Bubbles */
.message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message.ai {
    align-self: flex-start;
    background: rgba(255,255,255,0.05);
    color: #ecf0f1;
    border-bottom-left-radius: 2px;
}

.message.user {
    align-self: flex-end;
    background: #8e44ad;
    color: white;
    border-bottom-right-radius: 2px;
}

.message strong {
    color: #f1c40f;
}

/* Input Area */
.ai-chat-input-area {
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: #1a2530;
    display: flex;
    gap: 10px;
}

.ai-chat-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 8px 15px;
    color: white;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}

.ai-chat-input:focus {
    border-color: #9b59b6;
    background: rgba(255,255,255,0.08);
}

.ai-chat-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #8e44ad;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ai-chat-send:hover {
    background: #9b59b6;
    transform: scale(1.1);
}

.ai-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Typing Indicator */
.typing {
    font-size: 11px;
    color: #bdc3c7;
    margin-left: 5px;
    font-style: italic;
    display: none;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .ai-chat-window {
        width: calc(100vw - 40px);
        height: 450px;
        right: 0;
    }
}
