/* ------------------------------ */
/*            ESTILO              */
/* ------------------------------ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f3efe9 url('fundo-sagrado.png') center/cover fixed no-repeat;
    color: #222;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

/* fallback caso a imagem não exista */
body {
    background-color: #f3efe9;
}

/* ------------------------------ */
/*        DARK MODE AUTOMÁTICO    */
/* ------------------------------ */
@media (prefers-color-scheme: dark) {
    body {
        background: #0c0c10 !important;
        color: #f3efe9 !important;
    }
    .container {
        background: #14141a !important;
        box-shadow: 0 14px 40px rgba(0,0,0,0.6) !important;
    }
    .card-reflexao {
        background: #1b1b24 !important;
    }
    .card-versiculo {
        border-left-color: #f1c27a !important;
    }
    .logo {
        color: #f1c27a !important;
    }
    .btn-primary {
        background: linear-gradient(135deg, #f1c27a, #c28a3f) !important;
    }
    .btn-outline {
        border-color: #f1c27a44 !important;
        color: #f1c27a !important;
    }
    .rodape {
        color: #b8b8c4 !important;
    }
}

/* ------------------------------ */
/*         CONTAINER / CARD       */
/* ------------------------------ */
.container {
    max-width: 520px;
    width: 100%;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 26px 22px 22px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease-out, transform .7s ease-out;
}

.container.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Halo dourado */
.halo {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,215,130,0.45), transparent 70%);
    top: -70px;
    right: -60px;
    pointer-events: none;
}

/* ------------------------------ */
/*           HEADER               */
/* ------------------------------ */

.header {
    text-align: center;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.logo {
    font-size: 0.78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #b58b5b;
    font-weight: 600;
}

.titulo {
    font-size: 1.5rem;
    margin-top: 6px;
    font-weight: 700;
}

.subtitulo {
    font-size: .9rem;
    margin-top: 4px;
    color: #777;
}

.frase-topo {
    margin-top: 10px;
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
}

.frase-topo::before {
    content: "✧ ";
}

/* ------------------------------ */
/*         REFLEXÃO & VERSÍCULO   */
/* ------------------------------ */

.card-reflexao {
    background: #f9f5ee;
    border-radius: 14px;
    padding: 16px 14px;
    margin-bottom: 18px;
}

.card-reflexao p {
    font-size: 1rem;
    line-height: 1.6;
}

.card-versiculo {
    border-left: 3px solid #d1a15d;
    padding-left: 10px;
    margin-bottom: 18px;
}

.versiculo-texto {
    font-size: 0.95rem;
    line-height: 1.5;
}

.versiculo-ref {
    font-size: 0.85rem;
    margin-top: 4px;
    color: #555;
    font-weight: 600;
}

.frase-impacto {
    font-size: 0.88rem;
    margin-bottom: 16px;
    color: #555;
    font-style: italic;
    text-align: center;
}

/* ------------------------------ */
/*             BOTÕES             */
/* ------------------------------ */

.botoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.btn {
    flex: 1 1 calc(50% - 8px);
    border-radius: 999px;
    padding: 10px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    transition: .15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #d1a15d, #b77a35);
    color: #fff;
    box-shadow: 0 4px 14px rgba(183,122,53,0.35);
}

.btn-outline {
    background: #fff;
    border: 1px solid #e1d3bf;
    color: #7b5a30;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ------------------------------ */
/*        FORMULÁRIO ORAÇÃO       */
/* ------------------------------ */

.pedido-oracao {
    margin-top: 10px;
    border-top: 1px dashed #e0d3c2;
    padding-top: 12px;
}

.pedido-oracao h3 {
    font-size: 0.95rem;
}

.grupo-campo {
    margin-bottom: 8px;
}

.grupo-campo label {
    font-size: 0.8rem;
    margin-bottom: 3px;
    display: block;
}

.grupo-campo input,
.grupo-campo textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #dccab4;
    padding: 7px 8px;
}

.btn-enviar {
    margin-top: 4px;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 10px;
    font-size: 0.9rem;
    background: #b98b4c;
    color: #fff;
}

.audio-box {
    margin-top: 10px;
    font-size: .8rem;
    color: #555;
}

.audio-box audio {
    width: 100%;
}

.rodape {
    margin-top: 12px;
    text-align: center;
    font-size: 0.78rem;
    color: #777;
}

/* ------------------------------ */
/*           RESPONSIVO           */
/* ------------------------------ */

@media (max-width: 480px) {
    .container {
        padding: 22px 16px;
    }
    .btn {
        flex: 1 1 100%;
    }
}