/* 
   Artonik Sales Assistant - Premium Glassmorphism Styles
*/

:root {
    --chat-accent: #f39c12;
    --chat-accent-gold: #c5a044;
    --chat-bg: rgba(18, 18, 18, 0.85);
    --chat-glass-border: rgba(255, 255, 255, 0.1);
    --chat-text: #ffffff;
    --chat-text-muted: rgba(255, 255, 255, 0.6);
}

#artonik-chat-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Floating Bubble */
.chat-bubble {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--chat-accent-gold), var(--chat-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(197, 160, 68, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
}

.chat-bubble:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(197, 160, 68, 0.6);
}

.chat-bubble i {
    color: white;
    font-size: 28px;
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 400px;
    max-width: calc(100vw - 60px);
    height: 600px;
    max-height: calc(100vh - 150px);
    background: var(--chat-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--chat-glass-border);
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.chat-window.active {
    display: flex;
    animation: chatOpen 0.4s ease-out;
}

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

/* Chat Header */
.chat-header {
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--chat-glass-border);
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c3e50, #000);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--chat-accent-gold);
}

.chat-avatar i {
    color: var(--chat-accent-gold);
    font-size: 20px;
}

.chat-header-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.chat-header-info p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--chat-text-muted);
}

/* Chat Body (Messages) */
.chat-body {
    flex-grow: 1;
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    animation: messageIn 0.3s ease-out;
}

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

.message.bot {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--chat-glass-border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.user {
    background: var(--chat-accent-gold);
    color: #121212;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 600;
}

/* Options / Buttons */
.chat-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--chat-glass-border);
    color: white;
    padding: 12px 15px;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-btn:hover {
    background: rgba(197, 160, 68, 0.1);
    border-color: var(--chat-accent-gold);
    transform: translateX(5px);
}

.option-btn i {
    font-size: 10px;
    opacity: 0.5;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .chat-window {
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    
    #artonik-chat-wrapper {
        bottom: 20px;
        right: 20px;
    }
}
