/* ============================================================
SOLARA CHAT EVA v8.0 - Estética do Bunker + Véu Comercial
============================================================ */

/* --- CONTAINER PRINCIPAL E FUNDO AZUL --- */
.solara-chat-container {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #e2e8f0;
    font-family: 'Inter', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- CABEÇALHO --- */
.solara-header {
    background: #1e293b;
    padding: 16px 20px;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.solara-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.solara-header .version {
    font-size: 0.7rem;
    background: #334155;
    padding: 2px 6px;
    border-radius: 4px;
    color: #94a3b8;
    font-weight: normal;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- ÁREA DE MENSAGENS --- */
.solara-messages {
    background: #0f172a;
    padding: 20px;
    height: 450px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Scrollbar customizada (Estilo Terminal) */
.solara-messages::-webkit-scrollbar { width: 8px; }
.solara-messages::-webkit-scrollbar-track { background: #1e293b; }
.solara-messages::-webkit-scrollbar-thumb { background: #475569; border-radius: 4px; }
.solara-messages::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* --- BALÕES DE MENSAGEM --- */
.msg {
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 85%;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease-out;
}

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

.msg.user {
    background: #2563eb; /* Azul vibrante para Yasuke */
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.msg.bot {
    background: #1e293b; /* Azul médio para EVA */
    color: #cbd5e1;
    border-left: 3px solid #fbbf24;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.msg.bot strong { color: #fbbf24; }
.msg.bot em { color: #94a3b8; }

.subtext {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 8px;
    font-style: italic;
}

/* --- ÁREA DE COMANDOS RÁPIDOS --- */
.solara-commands {
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #1e293b;
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
}

.solara-commands button {
    background: #334155;
    border: 1px solid #475569;
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.solara-commands button:hover {
    background: #fbbf24;
    color: #0f172a;
    border-color: #fbbf24;
    transform: translateY(-1px);
}

/* --- ÁREA DE INPUT --- */
.solara-input-area {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    background: #0f172a;
}

.solara-input-area input {
    flex: 1;
    background: #1e293b;
    border: 1px solid #334155;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.solara-input-area input:focus { border-color: #fbbf24; }
.solara-input-area input::placeholder { color: #64748b; }

.solara-input-area button {
    background: #fbbf24;
    color: #0f172a;
    border: none;
    width: 50px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.solara-input-area button:hover {
    background: #f59e0b;
    transform: scale(1.05);
}

/* --- FOOTER --- */
.solara-footer {
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
    background: #020617;
    border-top: 1px solid #334155;
}

/* --- INDICADOR DE DIGITAÇÃO (OS 3 PONTINHOS) --- */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 5px 0;
}

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

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

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* ============================================================
🤝 CARDS DE PARCERIA (O VÉU COMERCIAL)
============================================================ */
.solara-brand-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.03));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-left: 3px solid #fbbf24;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
}

.solara-brand-card:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.15);
}

.solara-brand-card .brand-icon {
    font-size: 1.3rem;
    filter: grayscale(0.3);
}

.solara-brand-card .brand-text {
    flex: 1;
    color: #fbbf24;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.solara-brand-card .brand-arrow {
    color: #94a3b8;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.solara-brand-card:hover .brand-arrow {
    transform: translateX(4px);
    color: #fbbf24;
}

/* --- LINKS EXTERNOS (Fallback) --- */
.solara-ext-link {
    color: #fbbf24;
    text-decoration: none;
    border-bottom: 1px dashed #fbbf24;
    transition: all 0.2s;
}

.solara-ext-link:hover {
    color: #f59e0b;
    border-bottom-style: solid;
}

/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 640px) {
    .solara-chat-container {
        margin: 10px;
        border-radius: 8px;
    }
    .solara-messages {
        height: 350px;
        padding: 15px;
    }
    .msg {
        max-width: 90%;
        font-size: 0.9rem;
    }
    .solara-brand-card {
        padding: 10px 12px;
        gap: 8px;
    }
    .solara-brand-card .brand-text {
        font-size: 0.8rem;
    }
    .solara-commands button {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    .solara-header h2 {
        font-size: 1rem;
    }
}