/* Chatbot Widget */
.chatbot-toggler {
    position: fixed;
    bottom: 100px; /* Above the player */
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 9999;
    color: #fff;
    font-size: 1.5rem;
}

.chatbot-toggler:hover {
    transform: scale(1.1);
}

.chatbot-container {
    position: fixed;
    bottom: 170px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    border: 1px solid var(--border-color);
}

body.show-chatbot .chatbot-container {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chatbot-header {
    background: var(--accent);
    padding: 15px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.chatbot-close {
    cursor: pointer;
    font-size: 1.2rem;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-msg.bot {
    background: rgba(255,255,255,0.1);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    color: var(--text-main);
}

.chat-msg.user {
    background: var(--accent);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chatbot-input {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    background: var(--bg-card);
}

.chatbot-input input {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    padding: 10px;
    border-radius: 20px;
    color: var(--text-main);
    outline: none;
}

.chatbot-input button {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
}

/* Mobile */
@media (max-width: 480px) {
    .chatbot-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    .chatbot-toggler {
        bottom: 90px;
        right: 20px;
    }
}
