/* =======================================================
   1. TIMELINE DO LEGADO (MODAL)
======================================================= */
.timeline-wrapper {
  margin-top: 30px;
  border-left: 2px solid rgba(255, 215, 0, 0.3);
  padding-left: 20px;
  position: relative;
}

.timeline-item-site {
  margin-bottom: 25px;
  position: relative;
  transition: transform 0.3s ease;
}

.timeline-item-site:hover {
  transform: translateX(5px);
}

.timeline-item-site::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 5px;
  width: 12px;
  height: 12px;
  background-color: #000;
  border: 2px solid #ffd700;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.timeline-item-site:hover::before {
  background-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.timeline-ano {
  display: inline-block;
  background: #ffd700;
  color: #000;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.timeline-titulo {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 5px 0;
}

.timeline-desc {
  color: #aaa;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* =======================================================
   2. MODAL DE AUTORES (PREMIUM GLASSMORPHISM)
======================================================= */
.modal-autor-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-autor-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-autor-box {
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 16px;
  width: 90%;
  max-width: 850px;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.modal-autor-overlay.active .modal-autor-box {
  transform: translateY(0) scale(1);
}

.modal-autor-fechar {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
}

.modal-autor-fechar:hover {
  background: #ffd700;
  color: #000;
}

.modal-autor-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
}

#modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
  filter: grayscale(100%);
}

.modal-autor-text {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#modal-nome {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 5px;
  line-height: 1.1;
}

#modal-cargo {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.modal-bio-texto {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.8;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 15px;
}

.modal-bio-texto::-webkit-scrollbar {
  width: 5px;
}
.modal-bio-texto::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .modal-autor-content {
    grid-template-columns: 1fr;
  }
  #modal-img {
    min-height: 250px;
    height: 250px;
    object-position: top;
  }
  .modal-autor-text {
    padding: 25px;
  }
  #modal-nome {
    font-size: 1.6rem;
  }
} /* =======================================================
   RESPONSIVIDADE DAS SEÇÕES DE CONVITE E VENDA
======================================================= */

/* Ajuste Global para Grids de 2 Colunas */
@media (max-width: 992px) {
  .grid-2-cols {
    grid-template-columns: 1fr !important; /* Empilha as colunas */
    gap: 40px;
    text-align: center; /* Centraliza textos para melhor leitura no mobile */
  }

  .check-list {
    display: inline-block;
    text-align: left; /* Mantém os itens da lista alinhados à esquerda mas o bloco centralizado */
  }

  /* Centraliza os botões dentro das colunas empilhadas */
  .btn-inscrever-large,
  .btn-comprar-livro {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Regras específicas para a Seção de Venda do Livro (#comprar-livro) */
@media (max-width: 768px) {
  #comprar-livro .book-mockup {
    display: none !important; /* ESCONDE A FOTO DO LIVRO NO CELULAR */
  }

  .book-sales-info h3 {
    font-size: 1.8rem; /* Diminui o título para não quebrar linha excessivamente */
  }

  /* Ajuste fino na seção de convite (#convite-coautor) */
  #convite-coautor h3 {
    font-size: 1.8rem !important;
  }

  #convite-coautor .center-text div {
    padding: 30px 20px !important; /* Reduz padding interno do card no mobile */
  }
}

/* Ajuste dos Pacotes de Preço para Mobile */
@media (max-width: 480px) {
  .price-option {
    padding: 15px !important;
  }

  .option-details .valor {
    font-size: 1.1rem !important;
  }
}
/* Estilos Base para a Seção de Venda */
.sale-section {
  padding: 100px 0;
  overflow: hidden;
}

.sale-section .check-list {
  margin-bottom: 30px;
}

/* Responsividade */
@media (max-width: 992px) {
  .sale-section .grid-2-cols {
    grid-template-columns: 1fr; /* Empilha as colunas em tablets e celulares */
    text-align: center;
    gap: 30px;
  }

  .sale-section .check-list {
    display: inline-block;
    text-align: left; /* Mantém a lista alinhada à esquerda dentro do centro */
  }

  .sale-section .btn-comprar-livro {
    max-width: 100%;
  }
}

/* Regra de Ouro: Esconder a foto do livro no Mobile */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .sale-section {
    padding: 60px 0; /* Reduz o respiro da seção no mobile */
  }

  .sale-section h3 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .price-option {
    padding: 15px;
    justify-content: center;
  }
}

/* Ajuste fino para telas muito pequenas */
@media (max-width: 480px) {
  .option-details .valor {
    font-size: 1.2rem;
  }

  .yellow-tag {
    font-size: 0.7rem;
  }
}
