/* ── Claude Chat Plugin Styles ── */

.claude-chat-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 680px;
    margin: 24px auto;
}

/* Input row */
.claude-chat-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.claude-chat-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #1a1a1a;
    background: #fff;
}

.claude-chat-input:focus {
    border-color: #7c6af7;
    box-shadow: 0 0 0 3px rgba(124, 106, 247, 0.12);
}

.claude-chat-btn {
    padding: 12px 22px;
    background: #7c6af7;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.claude-chat-btn:hover  { background: #6a58e0; }
.claude-chat-btn:active { transform: scale(0.97); }
.claude-chat-btn:disabled {
    background: #b0a8f0;
    cursor: not-allowed;
    transform: none;
}

/* Loading dots */
.claude-chat-loading {
    display: none;
    gap: 6px;
    margin-bottom: 10px;
    padding: 4px 2px;
}

.claude-chat-loading.active { display: flex; }

.claude-chat-loading span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7c6af7;
    animation: claudeBounce 0.9s infinite ease-in-out;
}

.claude-chat-loading span:nth-child(2) { animation-delay: 0.15s; }
.claude-chat-loading span:nth-child(3) { animation-delay: 0.30s; }

@keyframes claudeBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40%           { transform: translateY(-8px); opacity: 1; }
}

/* Answer textarea */
.claude-chat-answer {
    width: 100%;
    min-height: 160px;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.65;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    resize: vertical;
    background: #f9f9ff;
    color: #1a1a1a;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.claude-chat-answer:not(:placeholder-shown) {
    border-color: #c5bffc;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .claude-chat-input,
    .claude-chat-answer {
        background: #1e1e2e;
        border-color: #3a3a5c;
        color: #e8e8f0;
    }
    .claude-chat-answer { background: #16161f; }
    .claude-chat-input:focus { border-color: #7c6af7; }
}
