/**
 * Obsidian Fragrances Chat Widget Styles
 */

#obsidian-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Montserrat', sans-serif;
}

.obsidian-chat-bubble {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d4af37 0%, #b8962a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: white;
}

.obsidian-chat-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

.obsidian-chat-bubble svg {
    width: 28px;
    height: 28px;
}

.obsidian-chat-window {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.obsidian-chat-header {
    background: linear-gradient(135deg, #d4af37 0%, #b8962a 100%);
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.obsidian-chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease;
}

.chat-close-btn:hover {
    transform: rotate(90deg);
}

.obsidian-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.obsidian-chat-message {
    padding: 10px 14px;
    border-radius: 8px;
    max-width: 85%;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
    line-height: 1.4;
    font-size: 14px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.user-message {
    background: linear-gradient(135deg, #d4af37 0%, #b8962a 100%);
    color: white;
    align-self: flex-end;
    border-radius: 8px 2px 8px 8px;
}

.bot-message {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    align-self: flex-start;
    border-radius: 2px 8px 8px 8px;
}

.bot-message strong {
    color: #d4af37;
    font-weight: 600;
}

.obsidian-chat-input-area {
    padding: 12px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 8px;
    background: white;
}

.obsidian-chat-input {
    flex: 1;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.2s ease;
}

.obsidian-chat-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.obsidian-chat-input::placeholder {
    color: #999;
}

.obsidian-chat-send {
    background: linear-gradient(135deg, #d4af37 0%, #b8962a 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.obsidian-chat-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.obsidian-chat-send:active {
    transform: translateY(0);
}

/* Scrollbar styling */
.obsidian-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.obsidian-chat-messages::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.obsidian-chat-messages::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 3px;
}

.obsidian-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #b8962a;
}

/* Responsive */
@media (max-width: 480px) {
    .obsidian-chat-window {
        width: calc(100vw - 40px);
        height: 60vh;
        max-height: 500px;
        right: 20px;
        left: 20px;
    }

    .obsidian-chat-bubble {
        width: 50px;
        height: 50px;
    }

    .obsidian-chat-bubble svg {
        width: 24px;
        height: 24px;
    }

    .obsidian-chat-message {
        max-width: 90%;
        font-size: 13px;
    }
}
