/* Importação do estilo base */
@import url('home.css');

/* Rolagem suave em todo o site */
html {
  scroll-behavior: smooth;
}

/* ================= CONTAINER DA PÁGINA DO LIVRO ================= */
.book-page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Capa do Livro com Badge/Selo */
.book-cover-wrapper {
  position: relative;
  max-width: 380px;
  width: 100%;
  margin-bottom: 3rem;
  border: 0.5px solid var(--gold-accent);
  padding: 0.6rem;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
}

.book-cover-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Badge de Preço / Destaque */
.price-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #cc0000;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  border: 2px dashed #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transform: rotate(12deg);
}

/* Sinopse e Textos */
.book-synopsis {
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.book-synopsis p {
  font-size: 1.05rem;
  color: var(--gold-text);
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.8;
  text-align: justify;
  text-align-last: center;
  text-shadow: 0 0 8px #000000, 0 0 12px #000000;
}

.book-note {
  font-size: 0.95rem;
  color: var(--gold-text);
  margin: 2rem 0 1rem;
  font-style: italic;
  font-weight: 400;
  text-align: center;
}

.book-help-link {
  font-size: 0.8rem;
  color: var(--gold-accent);
  text-decoration: underline;
  margin-bottom: 2.5rem;
  display: inline-block;
  transition: color 0.3s ease;
}

.book-help-link:hover {
  color: #f3e8d3;
}

/* ================= BOTÕES DE COMPRA / DOWNLOAD ================= */
.buy-buttons-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  width: 100%;
  max-width: 750px;
  margin-bottom: 4rem;
}

.btn-platform {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold-text);
  border: 0.5px solid rgba(178, 138, 83, 0.6);
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem 1.2rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.btn-platform:hover {
  background: rgba(178, 138, 83, 0.2);
  border-color: var(--gold-text);
  color: #f3e8d3;
  box-shadow: 0 0 15px rgba(178, 138, 83, 0.35);
  transform: translateY(-2px);
}

/* Seta de Voltar */
.scroll-top-wrapper {
  text-align: center;
  margin: 3rem 0 1rem;
}

.btn-scroll-top {
  display: inline-block;
  text-decoration: none;
  color: var(--gold-text);
  font-size: 2rem; /* Tamanho bem visível */
  font-weight: 300;
  width: 45px;
  height: 45px;
  line-height: 40px;
  border: 0.5px solid var(--gold-accent);
  border-radius: 50%; /* Transforma num botão circular elegante */
  background: rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.btn-scroll-top:hover {
  color: #f3e8d3;
  border-color: var(--gold-text);
  background: rgba(178, 138, 83, 0.25);
  box-shadow: 0 0 15px rgba(178, 138, 83, 0.4);
  transform: translateY(-4px);
}

/* Responsividade */
@media (max-width: 768px) {
  .book-cover-wrapper {
    max-width: 280px;
  }

  .buy-buttons-grid {
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
  }

  .btn-platform {
    width: 100%;
    max-width: 280px;
  }

  .book-synopsis p {
    font-size: 0.95rem;
    text-align: center;
  }
}