/* Voice Assistant Plugin — Styles v2.0 */

/* ── Container ─────────────────────────────────────────────── */
.va-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 680px;
    margin: 24px auto;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

/* ── Chat box ───────────────────────────────────────────────── */
.va-chat-box {
    min-height: 220px;
    max-height: 420px;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

/* ── Messages ───────────────────────────────────────────────── */
.va-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 90%;
    animation: va-fade-in 0.25s ease;
}

.va-message.va-user {
    flex-direction: row-reverse;
    align-self: flex-end;
}

.va-avatar {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.va-bubble {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 16px;
    font-size: 15px;
    line-height: 1.55;
    color: #1e293b;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.va-message.va-user .va-bubble {
    background: #0073aa;
    color: #ffffff;
    border-color: #0073aa;
}

/* ── Controls ───────────────────────────────────────────────── */
.va-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

/* ── Buttons ────────────────────────────────────────────────── */
.va-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
}

.va-btn:active {
    transform: scale(0.97);
}

.va-btn-primary {
    background: #0073aa;
    color: #ffffff;
}

.va-btn-primary:hover {
    background: #005f8e;
}

.va-btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.va-btn-cta {
    background: #f59e0b;
    color: #1e293b;
}

.va-btn-cta:hover {
    background: #d97706;
    color: #ffffff;
}

/* ── Status line ────────────────────────────────────────────── */
.va-status {
    font-size: 14px;
    font-style: italic;
    color: #64748b;
}

.va-status-listening {
    color: #16a34a;
    font-weight: 600;
}

.va-status-thinking {
    color: #0073aa;
    font-weight: 600;
}

.va-status-error {
    color: #dc2626;
    font-weight: 600;
}

/* ── Hint text ──────────────────────────────────────────────── */
.va-hint {
    margin: 0;
    padding: 8px 20px 14px;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    background: #ffffff;
}

/* ── CTA box ────────────────────────────────────────────────── */
.va-cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #fffbeb;
    border-top: 1px solid #fde68a;
    text-align: center;
}

.va-cta-box p {
    margin: 0;
    font-size: 14px;
    color: #92400e;
    font-weight: 500;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes va-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
    .va-container {
        margin: 12px;
        border-radius: 12px;
    }

    .va-bubble {
        font-size: 14px;
    }

    .va-btn {
        padding: 9px 18px;
        font-size: 14px;
    }
}
