/* =========================
   FONTES
========================= */
@font-face {
  font-family: 'GalanoGrotesqueRegular';
  src: url('/assets/fonts/GalanoGrotesqueRegular.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'GalanoGrotesqueBold';
  src: url('/assets/fonts/GalanoGrotesqueBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'GalanoGrotesqueItalic';
  src: url('/assets/fonts/GalanoGrotesqueItalic.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

/* =========================
   BASE
========================= */
body {
  margin: 0;
  font-family: 'GalanoGrotesqueRegular';
  background: #f9f9f9;
  color: #333;
}

/* =========================
   BREADCRUMB
========================= */
.breadcrumb-container {
  max-width: 1300px;
  margin: 20px auto 10px;
  padding: 0 25px;
}

.breadcrumb {
  font-family: 'GalanoGrotesqueRegular'; 
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #4a6fa5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

.breadcrumb span {
  color: #333;
  font-weight: 600;
}

/* =========================
   CONTAINER
========================= */
.vitrine-bloco {
  max-width: 1300px;
  margin: 10px auto;
  padding: 0 25px;
}

.containerPrincipal {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.prateleira-container {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 3rem;
}

/* =========================
   PRATELEIRA HEADER
========================= */
.prateleira-header {
  display: grid;
  grid-template-columns: 1fr 2fr; /* esquerda menor, direita maior */
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.prateleira-info {
  text-align: left;
}

.prateleira-title {
  font-family: 'GalanoGrotesqueBold';
  color: #000;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
}

.books-count {
  color: #616161;
  font-size: 1rem;
  margin: 0;
}

.prateleira-filtros {
  display: flex;
  justify-content: flex-end;
}

/* =========================
   FILTROS
========================= */
.filters-container {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label {
  font-family: 'GalanoGrotesqueRegular';
  font-weight: 500;
  color: #495580;
  font-size: 0.9rem;
  white-space: nowrap;
}

.filter-select,
.filter-input {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-family: 'GalanoGrotesqueRegular';
  font-size: 0.9rem;
  background: white;
  transition: all 0.3s ease;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: #495580;
  box-shadow: 0 0 0 2px rgba(73, 85, 128, 0.2);
}

.filter-button {
  background: #c72041;
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-family: 'GalanoGrotesqueRegular';
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.filter-button:hover {
  background: #5d5d5d;
  transform: translateY(-2px);
}

.reset-button {
  background: transparent;
  color: #495580;
  border: 1px solid #495580;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-family: 'GalanoGrotesqueRegular';
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: auto;
}
.reset-button:hover {
  background: #f5f5f5;
  color: #c72041;
}

/* =========================
   GRID DE LIVROS
========================= */
.book-shelf {
  position: relative;
  padding: 1.5rem 0 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
  align-items: end;
}

/* =========================
   CARD DO LIVRO
========================= */
.book-card {
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  height: auto;
  display: block;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(500px) rotateY(0deg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.book-card:hover {
  transform: perspective(200px) rotateY(-1deg) translateY(-2px) scale(1.005);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  z-index: 10;
}

/* CAPA */
.book-cover {
  display: block;
  position: relative;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease-out;
  position: relative;
  z-index: 1;
}

.book-card:hover .book-cover img {
  transform: scale(1.03);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

/* INFO */
.book-info {
  font-family: 'GalanoGrotesqueRegular'; 
  text-align: left;
  padding: 10px 10px;
  height: 80px;
  background: #fff;
}

.book-genre {
  font-size: 12px;
  color: #777;
  margin-bottom: 2px;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-title {
  font-family: 'GalanoGrotesqueBold';
  font-weight: 700;
  color: #000;
  font-size: 16px;
  margin: 0 0 0.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author {
  font-family: 'GalanoGrotesqueRegular';
  color: #8c7470;
  font-size: 12px;
  margin-top: -5px;
  margin-bottom: 5px;
}

/* PLACEHOLDER SEM CAPA */
.no-cover {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, #e6ebf5 0%, #ccd8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3e4d7a;
  font-family: 'GalanoGrotesqueRegular';
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}
.no-cover::after {
  content: "?";
  position: absolute;
  font-size: 5rem;
  font-weight: bold;
  color: rgba(58, 75, 135, 0.1);
  z-index: 0;
}

/* BADGES */
.featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #f8b195;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

/* =========================
   MENSAGENS & MOBILE
========================= */
.no-books-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
}

.no-books-message i {
  font-size: 3rem;
  color: #495580;
  opacity: 0.5;
}

.no-books-message h3 {
  color: #495580;
  margin-top: 1rem;
}

.no-books-message p {
  color: #5a6a8f;
}

@media (max-width: 768px) {
  .book-shelf {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .prateleira-title {
    font-size: 1.8rem;
  }

  .book-info {
    padding: 0.6rem;
    min-height: 70px;
  }

  .book-title {
    font-size: 0.85rem;
    min-height: 2.6em;
  }

  .book-author {
    font-size: 0.75rem;
  }

  .filters-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .filter-select,
  .filter-input {
    width: 100%;
  }

  .filter-button,
  .reset-button {
    width: 100%;
    justify-content: center;
  }
}
