/* Elite Chatbot Styles */

#elite-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

#elite-chat-btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

#elite-chat-btn .chat-icon-inner svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

#elite-chat-btn.open .chat-icon-inner svg {
    transform: rotate(90deg);
    opacity: 0;
}

#elite-chat-btn.open .chat-circular-text {
    opacity: 0 !important;
}


.chat-circular-text {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: spinSlow 12s linear infinite;
    opacity: 0.8;
    
}



.chat-circular-text svg {
    width: 100%;
    height: 100%;
    fill: none;
}

.chat-circular-text text {
    fill: #000;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.15em;
    font-weight: 300; font-family: sans-serif;
}

@keyframes spinSlow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.chat-icon-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

#elite-chat-btn.open::after {
    content: "✕";
    position: absolute;
    font-size: 20px;
    font-weight: 300; font-family: sans-serif;
}

#elite-chat-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    height: 600px;
    max-height: calc(100vh - 140px);
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

#elite-chat-window.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2a2a, #111);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: #e5cc8f; /* Subtle gold */
}

.chat-header-info h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #fff;
}

.chat-header-info p {
    margin: 3px 0 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Chat */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}
.chat-messages::-webkit-scrollbar-track {
    background: rgba(10, 10, 10, 0.95);
}
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 11px;
    line-height: 1.5;
    word-wrap: break-word;
    animation: messageEntry 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    opacity: 0.8;
    transform: translateY(10px);
}

@keyframes messageEntry {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255,255,255,0.15);
}

.message.user {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border-bottom-right-radius: 4px;
}

.message strong {
    color: #fff;
    font-weight: 300; font-family: sans-serif;
}

.message.user strong {
    color: #000;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

#chat-input {
    flex: 1;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 12px 20px;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

#chat-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

#chat-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#chat-submit {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#chat-submit:hover {
    transform: scale(1.05);
}

#chat-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#chat-submit svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    margin-left: 2px;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 768px) {
    #elite-chat-window {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 90px;
    }
    #elite-chat-btn {
        bottom: 20px;
        right: 20px;
    }
}
