/* Claude AI Chat Styles */
#claude-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 45px;
    background: black;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    font-family: 'Aspira', 'Inter', Arial, sans-serif;
    font-weight: bold;
    font-size: 12px;
    color: white;
    letter-spacing: 0.5px;
}

#claude-chat-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* Pulse animation removed */

#claude-chat-window {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

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

.chat-header {
    background: linear-gradient(135deg, #000000 0%, #222222 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-title p {
    margin: 4px 0 0 0;
    font-size: 12px;
    opacity: 0.8;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

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

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

.chat-messages::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.chat-message.user {
    align-self: flex-end;
}

.chat-message.assistant {
    align-self: flex-start;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, #173283 0%, #1e3a8a 100%);
    color: white;
    border-bottom-right-radius: 6px;
}

.chat-message.assistant .message-content {
    background: white;
    color: #333;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 6px;
}

.message-time {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    text-align: right;
}

.chat-message.assistant .message-time {
    text-align: left;
}

.chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    align-items: center;
}

#chat-input {
    flex: 1;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    padding: 12px 18px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

#chat-input:focus {
    border-color: #FFDC52;
    box-shadow: 0 0 0 3px rgba(255, 220, 82, 0.1);
}

.send-btn {
    width: 40px;
    height: 40px;
    background: #FFDC52;
    border: none;
    border-radius: 50%;
    color: black;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 600;
}

.send-btn:hover {
    transform: scale(1.05);
    background: #FFDC52;
    box-shadow: 0 4px 15px rgba(255, 220, 82, 0.4);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-loading {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border-top: 1px solid #e9ecef;
    color: #666;
    font-size: 13px;
}

.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: #ffcb09;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    #claude-chat-window {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        bottom: 90px;
        height: 450px;
    }
    
    #claude-chat-button {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #claude-chat-window {
        background: #1a1a1a;
    }
    
    .chat-messages {
        background: #2d2d2d;
    }
    
    .chat-message.assistant .message-content {
        background: #3d3d3d;
        color: #e0e0e0;
        border-color: #555;
    }
    
    .chat-input-container {
        background: #1a1a1a;
        border-top-color: #555;
    }
    
    #chat-input {
        background: #3d3d3d;
        color: #e0e0e0;
        border-color: #555;
    }
    
    .chat-loading {
        background: #1a1a1a;
        border-top-color: #555;
        color: #ccc;
    }
}