/* Premium Glassmorphism Chat Widget */
#arune-ai-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    font-family: 'Montserrat', sans-serif;
}

#arune-ai-button {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C9A84C, #A78B3F);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(201, 168, 76, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#arune-ai-button:hover {
    transform: scale(1.1);
}

#arune-ai-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 380px;
    height: 550px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 20px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform-origin: bottom right;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.ai-header {
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-header-info h4 {
    color: #C9A84C;
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

.ai-header-info p {
    color: #aaa;
    margin: 5px 0 0 0;
    font-size: 0.8rem;
}

.ai-close {
    color: #aaa;
    cursor: pointer;
    font-size: 20px;
}

.ai-close:hover {
    color: white;
}

.ai-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ai-msg.bot {
    background: rgba(40, 40, 40, 0.8);
    color: #fff;
    align-self: flex-start;
    border-top-left-radius: 2px;
}

.ai-msg.user {
    background: linear-gradient(135deg, #C9A84C, #A78B3F);
    color: #fff;
    align-self: flex-end;
    border-top-right-radius: 2px;
}

.ai-input-area {
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 10px;
}

.ai-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 12px 20px;
    color: white;
    outline: none;
}

.ai-input-area input:focus {
    border-color: #C9A84C;
}

.ai-input-area button {
    background: #C9A84C;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-input-area button:hover {
    background: #A78B3F;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 15px;
    background: rgba(40, 40, 40, 0.8);
    border-radius: 15px;
    border-top-left-radius: 2px;
    align-self: flex-start;
    display: none;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #C9A84C;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 480px) {
    #arune-ai-window {
        width: calc(100vw - 40px);
        right: -10px;
    }
}
