/* Claude AI Chat Widget Styles */

.claude-chat-widget {
    position: fixed;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.claude-chat-widget.bottom-right {
    bottom: 20px;
    right: 20px;
}

.claude-chat-widget.bottom-left {
    bottom: 20px;
    left: 20px;
}

.claude-chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--claude-primary-color, #5B21B6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.claude-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.claude-chat-button svg {
    width: 28px;
    height: 28px;
}

.claude-chat-window {
    display: none;
    position: absolute;
    bottom: 80px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    overflow: hidden;
}

.claude-chat-widget.bottom-right .claude-chat-window {
    right: 0;
}

.claude-chat-widget.bottom-left .claude-chat-window {
    left: 0;
}

.claude-chat-window.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

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

.claude-chat-header {
    background: var(--claude-primary-color, #5B21B6);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.claude-chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.claude-chat-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.claude-chat-close:hover {
    opacity: 0.8;
}

.claude-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.claude-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.claude-chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.claude-message {
    display: flex;
    gap: 8px;
    animation: messageSlide 0.3s ease;
}

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

.claude-message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.claude-user-message {
    justify-content: flex-end;
}

.claude-user-message .claude-message-content {
    background: var(--claude-primary-color, #5B21B6);
    color: white;
    border-bottom-right-radius: 4px;
}

.claude-bot-message .claude-message-content {
    background: white;
    color: #1a202c;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

.claude-typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.claude-typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    animation: typing 1.4s infinite;
}

.claude-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.claude-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.claude-chat-input-area {
    padding: 16px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
}

.claude-chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.claude-chat-input:focus {
    border-color: var(--claude-primary-color, #5B21B6);
}

.claude-chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--claude-primary-color, #5B21B6);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.claude-chat-send:hover {
    transform: scale(1.05);
}

.claude-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 480px) {
    .claude-chat-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
    }
}

/* Error message */
.claude-error-message {
    background: #fee;
    color: #c33;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin: 8px 0;
    border: 1px solid #fcc;
}
