/* ai-popup.css - BoosteXads AI Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

#bx-ai-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100000;
    font-family: 'Inter', sans-serif;
}

/* Floating Button */
.bx-ai-fab {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #40c9ff, #e81cff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bx-ai-fab:hover { transform: scale(1.1) rotate(5deg); }

/* Chat Window */
.bx-ai-window {
    display: none; /* Initial state */
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 380px;
    max-width: 90vw;
    height: 550px;
    max-height: 70vh;
    background: #0f172a;
    border-radius: 20px;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #1e293b;
    animation: bxFadeUp 0.3s ease-out;
}

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

/* Header */
.bx-ai-header {
    background: #111827;
    padding: 12px 15px;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bx-ai-brand { display: flex; align-items: center; gap: 10px; color: white; }
.bx-ai-close { color: #94a3b8; cursor: pointer; font-size: 24px; line-height: 1; }

/* Messages Area */
.bx-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #0b1120;
}

.bx-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.5;
}

.bx-msg-user { background: #40c9ff; color: #0b1120; align-self: flex-end; border-bottom-right-radius: 2px; }
.bx-msg-ai { background: #1e293b; color: #e2e8f0; align-self: flex-start; border-bottom-left-radius: 2px; }

/* Suggestions */
.bx-ai-suggestions {
    padding: 10px;
    display: flex;
    overflow-x: auto;
    gap: 8px;
    background: #0f172a;
    border-top: 1px solid #1e293b;
}

.bx-ai-suggestions::-webkit-scrollbar { display: none; }

.bx-chip {
    background: #1e293b;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: #94a3b8;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
}
.bx-chip:hover { border-color: #40c9ff; color: #40c9ff; }

/* Input Area */
.bx-ai-input-area {
    padding: 12px 15px;
    background: #111827;
    display: flex;
    gap: 10px;
}

.bx-ai-input {
    flex: 1;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 20px;
    padding: 8px 15px;
    color: white;
    font-size: 13px;
    outline: none;
}

.bx-ai-send {
    background: #40c9ff;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: #0b1120;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Typing Indicator */
.bx-typing { display: flex; gap: 4px; padding: 10px; align-items: center; }
.bx-typing span { width: 6px; height: 6px; background: #94a3b8; border-radius: 50%; animation: bxBlink 1.4s infinite; }
.bx-typing span:nth-child(2) { animation-delay: 0.2s; }
.bx-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bxBlink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }