/* Chat AI Styles */
.chat-ai-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.4);
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.chat-ai-btn:hover {
    transform: scale(1.1);
    background: var(--bg-light);
    color: var(--bg-primary);
}

.chat-ai-box {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: var(--bg-secondary);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 12px;
    display: none; /* Hidden by default */
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: hidden;
    animation: slideUpChat 0.3s ease-out;
}

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

.chat-ai-header {
    background: rgba(201, 169, 110, 0.1);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.chat-ai-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-ai-icon {
    font-size: 1.5rem;
}

.chat-ai-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--gold);
    font-family: var(--font-serif);
}

.close-chat-ai {
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.close-chat-ai:hover {
    color: var(--text-primary);
}

.chat-ai-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
}

.chat-ai-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-ai-messages::-webkit-scrollbar-thumb {
    background-color: var(--gold);
    border-radius: 10px;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-message.bot {
    background: rgba(201, 169, 110, 0.1);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.chat-message.user {
    background: var(--gold);
    color: var(--bg-primary);
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chat-message p {
    margin: 0;
}

.chat-ai-input-area {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(201, 169, 110, 0.2);
    background: var(--bg-tertiary);
}

#chat-ai-input {
    flex: 1;
    background: rgba(15, 14, 12, 0.5);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 20px;
    padding: 10px 15px;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

#chat-ai-input:focus {
    outline: none;
    border-color: var(--gold);
}

#chat-ai-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition);
}

#chat-ai-send:hover {
    background: var(--bg-light);
}

@media (max-width: 480px) {
    .chat-ai-box {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 90px;
    }
}

.chat-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff3b30;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
    animation: bounceNotification 2s infinite;
}

@keyframes bounceNotification {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}
