/* ===========================
   FONTES
=========================== */

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

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

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

/* ===========================
   CONTAINER
=========================== */
.container {
  max-width: 1300px !important;
  padding: 0 25px;
}

/* ===========================
   VITRINE
=========================== */
.vitrine-bloco {
  position: relative;
  background: #f6f6f6;  
  overflow: hidden;
}

.vitrine-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0 0.5rem;
  background-color: <?= $bg_color ?>;
}

.vitrine-title-close {
  font-size: 22px;
  text-transform: uppercase;
  color: #000;
  font-family: 'GalanoGrotesqueRegular', sans-serif;
  margin: 0; /* já elimina o mb-0 */
  margin-top: 5px;
}

/* Botão outline editável via cor */
.btn-ver-todos {
  --btn-color: #c62828;             /* define a cor padrão (vermelho) */
  background: transparent;
  color: var(--btn-color);
  padding: 0.5rem 1rem;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'GalanoGrotesqueRegular', sans-serif;
  transition: all 0.3s ease;
  border: 1px solid var(--btn-color);
}

.btn-ver-todos:hover {
  background: var(--btn-color);
  color: #fff;
  transform: translateY(-2px);
}

/* ===========================
   LIVROS - CARD
=========================== */
.book-card {
  max-width: 200px;
  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 DO LIVRO
=========================== */
.book-cover {
  display: block;
  background: none;
  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 DO LIVRO
=========================== */
.book-info {

  text-align: left;
  padding: 10px 10px;
  height: 80px;
}

.book-genre {
    font-size: 12px;
    color: #777;
    margin-bottom: 2px;
    font-style: italic;
}

.book-title {
  font-family: 'GalanoGrotesqueBold', sans-serif;
  font-weight: 700;
  color: #000;
  font-size: 16px;
  margin: 0 0 0.1rem;
  display: -webkit-box;
  overflow: hidden;
  max-height: 2.6rem;
}

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

/* ===========================
   BOTÕES SWIPER
=========================== */
.swiper-button-next, 
.swiper-button-prev {
  color: #5a6a8f;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.swiper-button-next:hover, 
.swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.swiper-button-next::after, 
.swiper-button-prev::after {
  font-size: 1.4rem;
  font-weight: bold;
}

/* ===========================
   BOTÃO "VER MAIS"
=========================== */
.view-more-btn {
  background: #ffffff;
  color: #455ca5;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-family: 'GalanoGrotesqueRegular', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.view-more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.view-more-btn:hover {
  background: #f2f4fc;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.view-more-btn:hover::before {
  left: 100%;
}

/* ===========================
   PLACEHOLDER SEM CAPA
=========================== */
.no-cover {
  width: 180px;
  height: 240px;
  background: linear-gradient(135deg, #e6ebf5 0%, #ccd8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3e4d7a;
  font-family: 'GalanoGrotesqueRegular', sans-serif;
  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;
}

/* ===========================
   SWIPER SLIDES
=========================== */
.swiper-wrapper {
  display: flex;
  align-items: flex-end;
  padding: 1rem 0;
}

.swiper-slide {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

/* ===========================
   FUNDO COM PADRÃO DECORATIVO
=========================== */
.vitrine-bloco .container {
  position: relative;
  z-index: 2;
}

.vitrine-bloco::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="30" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
  z-index: 0;
}
