/* Claude AI Chatbot - Frontend Styles */

#claude-chatbot-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#claude-chat-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    color: white;
}

#claude-chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

#claude-chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 340px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 520px;
    animation: claudeSlideUp 0.3s ease;
}

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

#claude-chat-header {
    padding: 14px 16px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 14px;
}

#claude-chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.8;
    padding: 0;
    line-height: 1;
}
#claude-chat-close:hover { opacity: 1; }

#claude-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 280px;
    max-height: 320px;
    background: #fafafa;
}

.claude-public-msg {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    animation: claudeFadeIn 0.2s ease;
}

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

.claude-public-msg-user { flex-direction: row-reverse; }

.claude-public-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.claude-public-msg-user .claude-public-avatar { background: #6366f1; }

.claude-public-bubble {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 13px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 80%;
    color: #374151;
}

.claude-public-msg-user .claude-public-bubble {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.claude-typing .claude-public-bubble {
    color: #9ca3af;
    font-style: italic;
}

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

#claude-chat-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    resize: none;
    font-family: inherit;
    outline: none;
}

#claude-chat-input:focus { border-color: #6366f1; }

#claude-chat-send {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: flex-end;
    transition: opacity 0.2s;
}

#claude-chat-send:hover { opacity: 0.85; }

#claude-chat-footer {
    text-align: center;
    font-size: 10px;
    color: #9ca3af;
    padding: 6px;
    background: white;
    border-top: 1px solid #f3f4f6;
}

@media (max-width: 480px) {
    #claude-chat-window { width: calc(100vw - 48px); right: 0; }
}
