/* --- FONTES --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500&display=swap');

/* --- CONFIGURAÇÕES GERAIS --- */
body {
    background: #ede7de;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 1rem;
    color: #3a2010;
}

.container {
    max-width: 580px;
    width: 100%;
    background: #faf6f0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e8ddd2;
    box-shadow: 0 8px 30px rgba(80,40,10,0.08);
    text-align: center;
    padding: 0;
}

/* --- CABEÇALHO --- */
.header-card {
    background: #f2e8da;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 2rem 2rem 1.8rem;
    border-bottom: 1px solid #e0d0c0;
}

.header-info { flex: 1; text-align: left; }

.header-info h1 {
    font-family: 'Lora', serif;
    font-size: 2rem;
    margin: 0 0 0.2rem;
    font-weight: 600;
    color: #7a2e10;
    line-height: 1.1;
}

.sub {
    font-size: 0.82rem;
    color: #a07060;
    font-style: italic;
    letter-spacing: 0.06em;
}

.header-avatar img {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    border: 3px solid #d4b89a;
    object-fit: cover;
}

/* --- FAIXA DECORATIVA --- */
.divider-stripe {
    height: 3px;
    background: linear-gradient(90deg, #c06030, #e8a070, #c06030);
    opacity: 0.35;
}

/* --- CORPO --- */
.body-pad {
    padding: 1.6rem 2rem 1.4rem;
}

/* --- INPUT CONTAINER --- */
.input-container {
    display: flex;
    align-items: center;
    border: 1.5px solid #ddd0c4;
    border-radius: 50px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    padding-right: 0.5rem;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.input-container:focus-within {
    border-color: #a04020;
    box-shadow: 0 0 0 3px rgba(160,64,32,0.08);
}

.input-container:hover {
    border-color: #c4a898;
}

.input-container input {
    flex: 1;
    padding: 0.9rem 1.4rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    outline: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    color: #3a2010;
}

.input-container input::placeholder { color: #b8a090; }

.input-container input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    -webkit-text-fill-color: #3a2010 !important;
}

/* --- BOTÃO MICROFONE --- */
#btn-mic {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #a04020;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
    padding: 0;
}

#btn-mic:hover  { background: #f2e8da; }
#btn-mic:active { transform: scale(0.93); }

#btn-mic.ouvindo {
    color: #ffffff;
    background: #c0392b;
    animation: pulsar 1.2s ease-in-out infinite;
}

@keyframes pulsar {
    0%   { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.4); }
    70%  { box-shadow: 0 0 0 10px rgba(192, 57, 43, 0); }
    100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0); }
}

/* --- BOTÃO ENVIAR --- */
#btn-enviar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #a04020;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
    padding: 0;
    line-height: 1;
}

#btn-enviar:hover  { background: #803010; }
#btn-enviar:active { transform: scale(0.93); }

/* --- RESPOSTA --- */
.resposta {
    margin-bottom: 1rem;
    padding: 1.3rem 1.5rem;
    border: 1px solid #e8ddd2;
    border-radius: 18px;
    background: #ffffff;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 0.97rem;
    line-height: 1.75;
    color: #4a3020;
}

/* --- BOTÕES DE AÇÃO --- */
.share-buttons {
    display: flex;
    justify-content: center;
    align-self: stretch;
    gap: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px dashed #ddd0c4;
}

.share-buttons button, .doc-link {
    color: #a04020 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem !important;
}

.share-buttons button:hover { color: #7a2e10 !important; }

/* --- FOOTER --- */
.footer {
    background: #f2ebe0;
    padding: 1.2rem 2rem 1.4rem;
    border-top: 1px solid #e0d0c0;
}

.gassho-quote {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 0.82rem;
    color: #9a7060;
    line-height: 1.7;
    margin: 0;
}

.gassho-quote strong {
    color: #7a4030;
    font-weight: 600;
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    body { padding: 0.5rem; }

    .header-card { padding: 1.4rem; }

    .header-info h1 { font-size: 1.6rem; }

    .body-pad { padding: 1.2rem; }

    .input-container input {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    #btn-mic    { width: 32px; height: 32px; }
    #btn-enviar { width: 32px; height: 32px; font-size: 0.9rem; }

    .footer { padding: 1rem 1.2rem; }
    .gassho-quote { font-size: 0.78rem; }
}
