/* =========================================
   AZARA TALENT AI CHATBOT STYLES
   ========================================= */

:root {
    --chat-width: 380px;
    --chat-height: 550px;
    --chat-bg: #0a0a0a;
    --chat-header-bg: rgba(5, 5, 5, 0.95);
    --chat-user-msg: #D4AF37;
    --chat-bot-msg: rgba(255, 255, 255, 0.05);
    --chat-text: #E0E0E0;
    --chat-muted: #888888;
}

/* --- Floating Toggle Button --- */
.chatbot-toggler {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    z-index: 9999;
    border: none;
    outline: none;
}

.chatbot-toggler:hover {
    transform: scale(1.1);
    background: #F4C430;
}

.chatbot-toggler span {
    position: absolute;
    color: #000;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.chatbot-toggler span:last-child,
.show-chatbot .chatbot-toggler span:first-child {
    opacity: 0;
    transform: rotate(90deg);
}

.show-chatbot .chatbot-toggler span:last-child {
    opacity: 1;
    transform: rotate(0);
}

/* --- Chat Main Container --- */
.chatbot {
    position: fixed;
    right: 30px;
    bottom: 100px;
    width: var(--chat-width);
    height: var(--chat-height);
    background: var(--chat-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s ease;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.show-chatbot .chatbot {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* --- Header --- */
.chatbot header {
    padding: 20px;
    background: var(--chat-header-bg);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    top: 0;
    height: 70px;
    box-sizing: border-box;
}

.chatbot header h2 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.4rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot header span {
    color: var(--chat-text);
    cursor: pointer;
    font-size: 1.5rem;
    display: none; /* Only show on mobile */
}

/* --- Chat Box (Messages Area) --- */
.chatbot .chatbox {
    overflow-y: auto;
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--chat-bg);
}

.chatbot .chatbox::-webkit-scrollbar {
    width: 6px;
}
.chatbot .chatbox::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.chatbox .chat {
    display: flex;
    list-style: none;
}

.chatbox .incoming span {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #000;
    align-self: flex-end;
    border-radius: 4px;
    text-align: center;
    line-height: 32px;
    margin-right: 10px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.chatbox .outgoing {
    justify-content: flex-end;
    margin-left: 50px;
}

.chatbox .chat p {
    color: var(--chat-text);
    max-width: 85%;
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: 10px 10px 0 10px;
    background: var(--chat-bot-msg);
    line-height: 1.5;
    border: 1px solid var(--glass-border);
}

.chatbox .outgoing p {
    background: var(--chat-user-msg);
    color: #000;
    border-radius: 10px 10px 10px 0;
    border: none;
}

.chatbox .incoming p {
    border-radius: 10px 10px 10px 0;
}

/* --- Chat Input Area --- */
.chatbot .chat-input {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid var(--glass-border);
    background: var(--chat-bg);
}

.chat-input textarea {
    height: 45px;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    max-height: 180px;
    padding: 12px 0;
    font-size: 0.9rem;
    background: transparent;
    color: var(--chat-text);
    font-family: var(--font-body);
}

.chat-input textarea::placeholder {
    color: var(--chat-muted);
}

.chat-input span {
    align-self: flex-end;
    color: var(--primary);
    cursor: pointer;
    height: 45px;
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    transition: 0.3s;
}

.chat-input span:hover {
    color: #fff;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 490px) {
    .chatbot {
        right: 0;
        bottom: 0;
        height: 100%;
        border-radius: 0;
        width: 100%;
    }
    
    .chatbot .chatbox {
        height: 90%;
        padding: 25px 15px 100px;
    }
    
    .chatbot .chat-input {
        padding: 15px;
    }
    
    .chatbot header span {
        display: block;
    }
}