/* === ESTILO GLOBAL === */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0d1117;
    color: #f0f0f0;
    
  }
  
  
  
  
  /* === BANNER === */
  .banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 2rem;
    background-color: #0d1117;
    flex-wrap: wrap;
    gap: 3rem; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  .banner-content {
    max-width: 600px;
    margin-left: 9rem;
    color: #e4e6eb;
  }
  
  .banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.1;
    font-weight: 800;
    color: #f0e6d2;
    text-shadow: 2px 2px 8px rgba(139, 111, 78, 0.7);
  }
  
  .banner-content p {
    font-size: 1rem;
    color: #bbb;
    margin-bottom: 2.5rem;
    max-width: 480px;
    line-height: 1.5;
  }
  
  .banner-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .btn-destaque {
    background-color: #8b6f4e;
    border: none;
    color: #fff;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(139, 111, 78, 0.6);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  .btn-destaque:hover {
    background-color: #a98856;
    box-shadow: 0 8px 18px rgba(169, 136, 86, 0.85);
  }
  
  .btn-secundario {
    background: transparent;
    color: #8b6f4e;
    border: 2px solid #8b6f4e;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .btn-secundario:hover {
    background-color: #8b6f4e;
    color: #fff;
  }
  
  .banner-estatisticas {
    display: flex;
    gap: 3rem;
    font-size: 1rem;
    color: #bbb;
  }
  
  .banner-estatisticas div {
    text-align: center;
  }
  
  .banner-estatisticas .icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.4rem;
    color: #8b6f4e;
    text-shadow: 1px 1px 4px rgba(139, 111, 78, 0.6);
  }
  
  
  /* === CARTÃO DE LIVRO === */
  .banner-card {
    background-color: #161b22;
    padding: 1.5rem;
    border-radius: 16px;
    width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin-top: 2rem;
    margin-right: 3rem;
    transform: rotate(5deg);
    height: auto;
    display: flex;
    transition: transform 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  
  .banner-card:hover {
    transform: rotate(0deg) translateY(-10px);
    cursor: pointer;
  }
  
  .livro-capa {
    width: 140px; 
    height: 200px; 
    object-fit: cover; 
    border-radius: 4px;
    margin-right: 2rem;
  }
  
  .livro-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
  }
  
  .livro-info h3 {
    margin: 0;
    font-size: 1.2rem;
  }
  
  .livro-info .autor {
    color: #aaa;
    margin-bottom: 0.5rem;
  }
  
  .avaliacao {
    color: #f5c518;
    margin-bottom: 0.5rem;
  }
  
  .descricao {
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 0.8rem;
  
  }

  
  
  
  @media (max-width: 768px) {
    .banner {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .banner-card {
      width: 100%;
    }
  
    .search-bar {
      width: 100%;
      margin-top: 1rem;
    }
  
    .navbar {
      flex-direction: column;
      align-items: flex-start;
    }
  } 
/* === CATÁLOGO DE LIVROS === */

.catalog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.catalog-header select {
  background-color: #0d1117;
  border: none;
  color: #f0e6d2;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 0 transparent;
}

.catalog-header select:hover {
  background-color: #161b22;
  box-shadow: 0 0 0 2px #8b6f4e66;
}

.catalog-header select:focus {
  outline: none;
  background-color: #161b22;
  box-shadow: 0 0 0 2px #8b6f4e;
}

.custom-select {
  position: relative;
  width: 240px;
  font-family: inherit;
  z-index: 10;
}

.custom-select-toggle {
  background-color: #0d1117;
  color: #f0e6d2;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #8b6f4e44;
  transition: all 0.3s ease;
}

.custom-select-toggle:hover {
  background-color: #161b22;
  box-shadow: 0 0 0 2px #8b6f4e55;
}

.custom-select-menu {
  list-style: none;
  margin: 0;
  padding: 0.3rem 0;
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background-color: #161b22;
  border: 1px solid #8b6f4e33;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.custom-select-menu li {
  padding: 0.5rem 1rem;
  color: #f0e6d2;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.custom-select-menu li:hover {
  background-color: #1e232b;
}

.custom-select.open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.catalog-header .count {
  font-size: 0.95rem;
  color: #f0e6d2;
  font-weight: 600;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}


.book-card {
  background-color: #161b22;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  
}

.book-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}


.book-card:hover {
  transform: translateY(-6px);
}

.book-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.book-image-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
}

.book-genre-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 0.25rem 0.7rem;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f0e6d2;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
}

.book-info {
  padding: 1rem 1.2rem 1.4rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;  
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.4em;
  line-height: 1.4em;
}



.book-author {
  font-size: 0.85rem;
  color: #c4b7a6;
  margin-bottom: 0.8rem;
}

.book-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #d1d5db;
  align-items: center;
}

.book-rating {
  color: #fbbf24;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.book-rating span {
  color: #fbbf24;
  font-weight: 600;
}


