/* --- RESET E GERAL --- */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f8;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; }

/* --- HEADER (Estilo unificado - Idêntico às internas) --- */
header {
    background: #2c3e50; /* Fundo escuro */
    padding: 15px 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Botão esq | Título centro | Espaço dir */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 1.3rem; /* Tamanho igual ao das outras páginas */
    font-weight: 600;
    text-align: center;
    flex-grow: 1;
}

/* Botão de Voltar */
.back-btn {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.15);
    padding: 8px 15px;
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.3s;
}

.back-btn:hover {
    background: rgba(255,255,255,0.25);
}

/* Espaçador para equilibrar o header no Flexbox */
.header-spacer {
    width: 110px; /* Largura aproximada do botão "Voltar ao Site" */
    display: block;
}

/* --- ÁREA PRINCIPAL --- */
main {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding: 40px 20px;
}

.titulo-secao {
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    font-weight: bold;
}

/* --- LISTA FLEXÍVEL --- */
.lista-versoes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* --- ESTILO DOS CARDS (HOME) --- */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    
    width: 280px;
    flex-grow: 1;
    max-width: 350px;

    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    border: 1px solid #e0e0e0;
    
    display: flex;
    align-items: center; 
    text-align: left;
    gap: 15px;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: #2c3e50;
}

/* Ícone Redondo */
.sigla {
    width: 50px; 
    height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.conteudo-card {
    display: flex;
    flex-direction: column;
}

.nome {
    font-weight: 700;
    font-size: 1rem;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 3px;
}

.detalhe {
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* --- ESTILOS AUXILIARES PARA PÁGINAS INTERNAS (LIVROS) --- */
/* Se este arquivo CSS for usado nas internas também, mantemos isso: */
.container-biblia {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.card-testamento {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    min-width: 300px;
    border: 1px solid #eee;
}

.card-testamento h2 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-align: center;
}

.book-list {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 2;
    column-gap: 20px;
}

.book-list li { margin-bottom: 8px; break-inside: avoid; }

.book-list li a {
    color: #555;
    font-size: 1rem;
    font-weight: 500;
    display: block;
    padding: 3px 0;
    transition: color 0.2s;
}

.book-list li a:hover { color: #2980b9; }

/* --- RODAPÉ --- */
footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 0.8rem;
    border-top: 1px solid #eee;
    background: white;
    margin-top: auto;
}

/* --- MEDIA QUERIES (CELULAR) --- */
@media (max-width: 768px) {
    header h1 { font-size: 1.1rem; }
    
    .back-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* Oculta o espaçador no mobile para economizar espaço */
    .header-spacer { display: none; }
    
    /* Centraliza o header de forma diferente no mobile se necessário */
    header { justify-content: space-between; gap: 10px;}

    .card { width: 100%; max-width: 100%; }
    
    .container-biblia { flex-direction: column; }
    .card-testamento { width: 100%; }
}