/* Estilos Globais */
html {
    height: 100%; /* Garante que o html ocupe toda a altura da viewport */
}
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    color: #343a40;

    display: flex; /* Transforma o body em um container flex */
    flex-direction: column; /* Organiza os itens filhos em uma coluna */
    min-height: 100vh; /* Garante que o body tenha no mínimo 100% da altura da viewport */
    margin: 0; /* Remove margens padrão do body */
}

/* IMPORTANTE: Aqui, o main é o elemento que vai "empurrar" o footer */
main {
    flex-grow: 1;          /* Permite que o <main> ocupe todo o espaço vertical disponível */
}

/* Opcional, mas boa prática para garantir que header e footer não encolham */
header, footer {
    flex-shrink: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #2c3e50;
}
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #0056b3;
    text-decoration: underline;
}


/*--------------------------------------------------------------------------*/
/* Estilos da barra de navegação */
/*--------------------------------------------------------------------------*/
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.navbar-brand {
    font-weight: 700;
    color: #2c3e50;
}
.navbar-brand:hover {
    color: #2c3e50;
}
.nav-link {
    font-weight: 500;
    color: #343a40;
    margin-left: 1rem;
}
.nav-link:hover {
    color: #007bff;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(44,62,80,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


/* Estilos do Input de Busca */
.form-control {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    max-width: 800px;
}
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.btn-primary {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    background-color: #007bff;
    border: none;
}


.btn-primary:hover {
    background-color: #0056b3;
}

/* Estilos dos Gêneros */
.generos-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.generos-section h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}
.btn-genero {
    border-radius: 25px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    margin: 0.25rem;
    background-color: #e9ecef;
    color: #343a40;
    border: none;
    transition: all 0.3s ease;
}
.btn-genero:hover {
    background-color: #007bff;
    color: #ffffff;
}

/* Estilos dos Livros em Destaque */
.destaques-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.destaques-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}
.livro-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}
.livro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.livro-card img {
    max-height: 500px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    width: 100%;
}
.livro-card-body {
    padding: 1.0rem;
    text-align: center;
}
.livro-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}
.livro-card-autor {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;

}
.livro-card-ano {
    margin-bottom: 1rem;
}
.livro-card-genero {
    margin-bottom: 0.5rem;
}
.livro-card-preco {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0rem;
}
.ver-todos-btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    background-color: #ffffff;
    color: #007bff;
    border: 2px solid #007bff;
    transition: all 0.3s ease;
}
.ver-todos-btn:hover {
    background-color: #007bff;
    color: #ffffff;
}



/*--------------------------------------------------------------------------*/
/* Estilos do Rodapé */
/*--------------------------------------------------------------------------*/    
.footer {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid #34495e;
    /*margin-top: auto; /* Empurra o rodapé para o final */
}
.footer p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.footer ul li {
    margin: 0 1rem;
}
.footer ul li a {
    color: #ffffff;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer ul li a:hover {
    color: #007bff;
}
.footer .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}
.footer .social-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #34495e;
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}
.footer .social-icons a:hover {
    background-color: #007bff;
    transform: scale(1.1);
}



/*--------------------------------------------------------------------------*/
/* Estilos Responsivos */
/* Responsividade para telas menores que 992px */
/*--------------------------------------------------------------------------*/
@media (max-width: 992px) {
    .navbar-nav {
        margin-top: 1rem;
    }
    .nav-link {
        margin-left: 0;
        margin-right: 0;
    }
    .form-control {
        margin-bottom: 1rem;
    }
    .btn-primary {
        margin-bottom: 0;
    }
    .generos-section .btn-genero {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    .livro-card img {
        max-height: 200px;
    }
    .texto-apenas-desktop {
        display: none; /* Ou inline, inline-block, dependendo do elemento */
    }
}
/* Responsividade para telas menores que 768px */
@media (max-width: 768px) {
    .generos-section .btn-genero {
        font-size: 0.7rem;
        padding: 0.5rem 0.75rem;
    }
    .livro-card img {
        max-height: 180px;
    }
}
/* Responsividade para telas menores que 576px */
@media (max-width: 576px) {



    .navbar-brand {
        font-size: 1.2rem;
    }
    .navbar-toggler {
        margin-left: auto;
    }

    .form-control {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    .btn-primary {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .generos-section h2 {
        font-size: 1.2rem;
    }
    .generos-section .btn-genero {
        font-size: 0.7rem;
        padding: 0.5rem;
    }
    .destaques-section h2 {
        font-size: 1.5rem;
    }
    .livro-card img {
        max-height: 500px;
    }
    .footer ul {
        flex-direction: column;
        align-items: center;
    }
    .footer ul li {
        margin: 0.5rem 0;
    }

}

  main .titulo-pagina {
  text-align: center;
  margin-bottom: 3rem; /* equivalente a mb-5 no Bootstrap */
  color: #275278; /* azul escuro */
    }