.biblioteca-menu {
    background: #222;
    padding: 12px 20px;
    margin-bottom: 25px;
    border-bottom: 3px solid #444;
}

.biblioteca-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.biblioteca-menu a {
    color: #eee;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: 0.2s;
}

.biblioteca-menu a:hover {
    color: #ffd700;
}

nav form {
    display: inline-block;
    margin-left: auto;
}

nav input[type="text"] {
    width: 180px;
    transition: width 0.3s;
}

nav input[type="text"]:focus {
    width: 260px;
}

/**************************************************/

.menu-portal {
    font-weight: 600;
    color: #0066cc;
}

.menu-portal:hover {
    text-decoration: underline;
}


/* Base geral */

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f7;
    color: #222;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout principal */

.section-block {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.section-title {
    margin: 0 0 15px 0;
    font-size: 1.6rem;
    font-weight: 600;
}

/* Navegação topo */

nav {
    max-width: 1100px;
    margin: 10px auto 0 auto;
    padding: 10px 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    font-size: 0.95rem;
}

nav a {
    margin-right: 15px;
}

/* Grelha de livros */

.livros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.livro-card {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.livro-card:hover {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.livro-titulo {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.livro-meta {
    margin: 8px 0;
    font-size: 1rem;
    color: #444;
}

/* Botões */

.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 6px;
    border: 1px solid #0066cc;
    color: #0066cc;
    background: #ffffff;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    background: #0066cc;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Página moderna do livro */

.livro-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.livro-capa {
    width: 240px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.livro-info {
    flex: 1;
}

.livro-info h2 {
    margin-top: 0;
    font-size: 2rem;
    font-weight: 700;
}

.livro-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: #0066cc;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn-secondary {
    background: #555;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.livro-nav {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.livro-nav a {
    margin-right: 15px;
}

/* Formatos */

.formatos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.formato-card {
    background: #f0f0f0;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.formato-card:hover {
    background: #e0e0e0;
}

/* Mini-capas */

.livro-capa-thumb {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #eee;
}


/* Página de autores */

.autores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.autor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: #222;
    transition: background 0.2s, box-shadow 0.2s;
}

.autor-card:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.autor-card-foto {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    background: #ddd;
    margin-bottom: 10px;
}

.autor-card-nome {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
}

.autor-card-contagem {
    font-size: 0.9rem;
    color: #555;
}



/* Responsivo */

@media (max-width: 768px) {
    .section-block {
        margin: 10px;
        padding: 15px;
    }

    .livro-header {
        flex-direction: column;
    }

    nav {
        margin: 5px 10px 0 10px;
        padding: 8px 12px;
    }
}

.prateleiras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.prateleira-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: #222;
    font-size: 1rem;
    transition: background 0.2s, box-shadow 0.2s;
}

.prateleira-card:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.prateleira-icone {
    font-size: 2rem;
    margin-bottom: 10px;
}

.autor-header {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-bottom: 25px;
}

.autor-foto {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    background: #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.autor-info h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.autor-info p {
    margin: 6px 0;
    color: #555;
}

.autor-bio {
    margin-top: 15px;
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
}

.autor-contagem {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.autor-nav {
    margin-bottom: 20px;
}

.autor-nav a {
    margin-right: 15px;
}


.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #666;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 6px;
    color: #999;
}

