/* style.css COMPLETO */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a; /* Fundo escuro atrás do celular */
    margin: 0;
    display: flex;
    justify-content: center;
    /* Usa 'dvh' para garantir que preencha a tela toda no celular sem linha branca */
    min-height: 100dvh; 
}

.container {
    background-color: white;
    width: 100%;
    max-width: 400px; /* Largura de um celular */
    min-height: 100dvh; /* Preenche a altura total */
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Cabeçalho Azul */
header {
    background-color: #0047AB; /* Azul Igreja */
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

header h2 {
    margin: 0;
    font-weight: 400;
    font-size: 1.5rem;
}

/* Conteúdo Principal */
main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

h3.titulo-palavra {
    text-align: center;
    color: #000;
    font-size: 1.2rem;
    margin-top: 10px;
}

.versiculo-box {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.5;
}

.referencia {
    font-weight: bold;
    margin-top: 10px;
    display: block;
    color: #000;
}

.comentario-box {
    background-color: #f9f9f9;
    border-left: 4px solid #0047AB;
    padding: 15px;
    margin-top: 20px;
    font-size: 1rem;
    color: #444;
    border-radius: 0 10px 10px 0;
}

/* --- RODAPÉ (FINAL AJUSTADO) --- */

/* --- RODAPÉ AJUSTADO (CENTRALIZADO) --- */

footer {
    background-color: #0047AB; 
    color: white;
    padding: 15px 20px; 
    
    /* Mantém o arredondado no topo */
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    
    margin-top: auto; 
    
    /* Layout */
    display: flex;
    align-items: center; 
    justify-content: space-between;
    gap: 10px;
}

/* Coluna Esquerda (Agora Centralizada) */
.conteudo-esquerdo {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* <--- MUDOU AQUI: Centraliza os blocos */
    text-align: center;  /* <--- MUDOU AQUI: Centraliza o texto dentro dos blocos */
    gap: 8px;
}

/* 1. Texto da Igreja */
.texto-igreja {
    font-size: 0.85rem;
    line-height: 1.2;
    font-weight: normal;
    color: white;
}

/* 2. Link do Mapa */
.link-mapa {
    cursor: pointer;
    width: 100%;
    font-size: 0.9rem; 
    font-weight: bold; 
    color: white;
    white-space: nowrap; 
    overflow: hidden;    
    text-overflow: ellipsis;
}

.pequeno {
    font-size: 0.7rem;
    font-weight: normal;
    opacity: 0.8;
    display: block;
}

/* 3. Redes Sociais */
.redes-sociais-linha {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center; /* <--- Garante que o conjunto fique no meio */
    gap: 8px;
    opacity: 0.9;
    margin-top: 5px;
}

.icones-frente {
    display: flex;
    gap: 8px;
}

.icones-frente img {
    width: 20px; 
    height: 20px;
    background-color: white;
    border-radius: 4px;
    padding: 1px;
    display: block;
}

/* LADO DIREITO: Logo Menor */
/* LADO DIREITO: Logo Menor (Sem caixinha branca) */
.logo-direita {
    width: 55px;  
    height: 55px;
    object-fit: contain;
    /* Removido background-color, border-radius e padding */
    flex-shrink: 0;
}

/* AJUSTE PARA TELAS MUITO ESTREITAS */
@media (max-width: 360px) {
    .texto-igreja { font-size: 0.75rem; }
    .link-mapa { font-size: 0.8rem; white-space: normal; }
    .logo-direita { width: 45px; height: 45px; }
}

/* --- ESTILOS DO MAPA E FORMULÁRIO --- */

/* Ajuste do Popup do Mapa */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}
.leaflet-popup-content {
    margin: 15px;
    line-height: 1.4;
}

/* Estilos do Formulário (Página dos Irmãos) */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

textarea, input {
    width: 100%;
    padding: 12px;
    border: 2px solid #000;
    border-radius: 10px;
    box-sizing: border-box; 
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button.btn-salvar {
    background-color: #0047AB;
    color: white;
    border: none;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
}

button.btn-salvar:hover {
    background-color: #003580;
}

.aviso {
    text-align: center;
    color: green;
    font-weight: bold;
    display: none;
}