/* style.css - História Eclesiástica de Teodoreto */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.7;
    padding: 20px;
}
.container {
    max-width: 920px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    padding: 35px;
}
h1 {
    font-size: 2.1rem;
    color: #1e3a5f;
    border-bottom: 3px solid #1e3a5f;
    padding-bottom: 10px;
    margin-bottom: 25px;
    text-align: center;
}
h2 {
    font-size: 1.65rem;
    color: #2c4a7c;
    margin: 30px 0 18px;
    border-left: 6px solid #1e3a5f;
    padding-left: 18px;
}
.chapter-nav {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    margin: 30px 0; padding: 15px; background-color: #f1f3f5; border-radius: 50px;
}
.chapter-nav a {
    min-width: 42px; padding: 8px 12px; background: #fff; color: #1e3a5f;
    text-decoration: none; font-weight: bold; border-radius: 30px;
    transition: all 0.2s; text-align: center;
}
.chapter-nav a:hover:not(.active) {
    background-color: #1e3a5f; color: white; transform: scale(1.05);
}
.chapter-nav .active {
    background-color: #1e3a5f; color: white; pointer-events: none;
}
.prev-next {
    display: flex; justify-content: space-between; margin: 25px 0;
}
.prev-next a {
    padding: 12px 24px; background: #1e3a5f; color: white;
    text-decoration: none; border-radius: 8px; font-weight: bold;
}
.prev-next a:hover:not(.disabled) { background: #132d4a; }
.prev-next .disabled {
    background: #6c757d; cursor: not-allowed; opacity: 0.65; pointer-events: none;
}
.texto {
    margin-bottom: 35px; padding: 25px; background: #fefefe;
    border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    text-align: justify;
}
.texto p { margin-bottom: 1.1rem; }
.book-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px; margin: 35px 0;
}
.book-card {
    background: #f8f9fa; border-radius: 12px; border: 1px solid #dee2e6;
    transition: all 0.25s; overflow: hidden;
}
.book-card:hover { transform: translateY(-6px); box-shadow: 0 12px 25px rgba(0,0,0,0.12); }
.book-card .book-title {
    display: block; padding: 18px 15px; text-align: center;
    background: #e9ecef; font-weight: 700; color: #1e3a5f; font-size: 1.25rem;
}
.book-card ul { list-style: none; padding: 12px; max-height: 280px; overflow-y: auto; }
.book-card a { display: block; padding: 8px 12px; color: #2c4a7c; text-decoration: none; border-radius: 6px; }
.book-card a:hover { background: #e2e6ea; }
.back-link {
    display: inline-block; margin-top: 35px; padding: 12px 26px;
    background: #1e3a5f; color: white; text-decoration: none; border-radius: 8px; font-weight: bold;
}
.back-link:hover { background: #132d4a; }
footer { margin-top: 50px; text-align: center; color: #6c757d; font-size: 0.92rem; }

@media (max-width: 640px) {
    .container { padding: 20px; }
    h1 { font-size: 1.85rem; }
}
/* MENU */
.menu{
text-align:center;
margin-bottom:30px;
}
.menu a{
text-decoration:none;
margin:0 10px;
padding:8px 12px;
background:#f4f4f4;
border-radius:5px;
color:#333;
font-weight:bold;
}
.menu a:hover{
background:#e0e0e0;
}
/* RODAPÉ */
.footer{
margin-top:40px;
padding-top:20px;
border-top:1px solid #ddd;
text-align:center;
font-size:14px;
color:#666;
}
/* GRID dos livros */
.book-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

/* BOTÕES dos livros */
.book-grid li a {
    display: block;
    text-align: center;
    text-decoration: none;

    padding: 16px;

    background: #2c7be5;
    color: white;

    font-size: 18px;
    font-weight: bold;

    border-radius: 10px;

    transition: 0.25s;
}

/* HOVER (quando passa o mouse) */
.book-grid li a:hover {
    background: #1a5fb4;
    transform: translateY(-3px);
}

/* Clique */
.book-grid li a:active {
    transform: scale(0.97);
}