/* ============================= */
/* BOOK CARD BUTTONS (LIST PAGE) */
/* ============================= */

.book-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, opacity 0.18s ease;
  box-sizing: border-box;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #e59678;
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  min-height: 50px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(230, 140, 100, 0.15);
  color: #e68c64;
  border: 2px solid #e68c64;
  transition: all 0.2s ease;
  box-sizing: border-box;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: #e68c64;
  color: #fff;
}

.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  text-decoration: none !important;
}

.coming-soon-card {
  opacity: 0.65;
  transform: scale(0.98);
}

.activity-link {
  background: rgba(230, 140, 100, 0.1);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: #e68c64;
  text-decoration: none;
}

.btn-muted {
  background: #cfc8c2;
  color: #ffffff;
  cursor: default;
}

.book-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e07a5f;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.book-link:hover {
  opacity: 0.7;
}

/* ============================= */
/* BOOK HERO */
/* ============================= */

.book-hero {
  padding: 2rem 0 1.25rem;
}

.book-hero-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
}

.book-cover-panel {
  background: #ffffff;
  border: 1px solid #dfd2c5;
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 6px 18px rgba(70, 52, 35, 0.05);
}

.book-cover-panel img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

.book-summary-panel {
  background: #fcfbf8;
  border: 1px solid #dfd2c5;
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 4px 12px rgba(70, 52, 35, 0.04);
}

.book-subtitle {
  margin-bottom: 1rem;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1rem;
}

.detail-badges span {
  background: #eef4ff;
  color: #35507d;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1rem;
  margin-top: 1.5rem;
}

.detail-actions .button,
.detail-actions .btn-secondary {
  width: auto;
  flex: 0 0 auto;
}

.detail-actions .text-link {
  flex: 0 0 auto;
}

.text-link {
  font-weight: 700;
  color: #dd7f5c;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* ============================= */
/* GENERAL SECTION SPACING */
/* ============================= */

.section {
  padding: 1.75rem 0;
}

.section-tight {
  padding: 1.25rem 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  margin-bottom: 0.5rem;
}

/* ============================= */
/* CENTERED FEATURE CARD */
/* ============================= */

.centered-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  background: #fcfbf8;
  border: 1px solid #dfd2c5;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(70, 52, 35, 0.04);
}

/* ============================= */
/* BENEFIT CARDS */
/* ============================= */

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.benefit-card {
  padding: 1.25rem;
  background: #fcfbf8;
  border: 1px solid #dfd2c5;
  border-radius: 22px;
  box-shadow: 0 3px 10px rgba(70, 52, 35, 0.04);
}

.benefit-card h3 {
  margin-bottom: 0.5rem;
}

/* ============================= */
/* BOOK PREVIEW */
/* ============================= */

.preview-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.75rem;
  background: #ffffff;
  border: 1px solid #dfd2c5;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(70, 52, 35, 0.04);
}

.preview-card img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

.preview-caption {
  text-align: center;
  max-width: 520px;
  margin: 1rem auto 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #5a5a5a;
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

/* ============================= */
/* DETAIL GRID */
/* ============================= */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.detail-card {
  padding: 1.5rem;
  background: #fcfbf8;
  border: 1px solid #dfd2c5;
  border-radius: 22px;
  box-shadow: 0 3px 10px rgba(70, 52, 35, 0.04);
}

.detail-list {
  padding-left: 1.2rem;
}

.detail-list li + li {
  margin-top: 0.4rem;
}

/* ============================= */
/* BONUS DOWNLOADS */
/* ============================= */

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.bonus-card {
  background: #ffffff;
  border: 1px solid #dfd2c5;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(70, 52, 35, 0.04);
}

.bonus-card img {
  width: 100%;
  display: block;
}

.bonus-card-content {
  padding: 1.25rem;
}

.bonus-card-content h3 {
  margin-bottom: 0.5rem;
}

.bonus-card-content p {
  margin-bottom: 1rem;
}

.bonus-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.bonus-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
}

.bonus-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #e58b6b;
  font-weight: bold;
}

/* ============================= */
/* REVIEWS */
/* ============================= */

.review-section {
  text-align: center;
  margin: 4rem auto 5rem;
}

.review-highlight {
  max-width: 720px;
  margin: 1.25rem auto 0;
  padding: 2rem 2.25rem;
  background: #fff;
  border: 1px solid rgba(230, 140, 100, 0.18);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
  text-align: left;
}

.review-stars {
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 10px;
  color: #f59e0b;
}

.review-stars span {
  color: #f5a623;
}

.review-text {
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 0 0 0.9rem;
}

.review-meta {
  font-size: 0.95rem;
  opacity: 0.75;
  margin: 0;
}

/* ============================= */
/* FLOATING AMAZON CTA */
/* ============================= */

.floating-amazon-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  background: #e68c64;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease,
    background 0.2s ease;
}

.floating-amazon-cta:hover,
.floating-amazon-cta:focus,
.floating-amazon-cta:active {
  background: #d96f45;
  color: #fff;
  text-decoration: none;
}

.floating-amazon-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 980px) {
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bonus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .book-hero-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid,
  .detail-grid,
  .bonus-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .floating-amazon-cta {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
    padding: 14px 18px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .detail-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .detail-actions .button,
  .detail-actions .btn-secondary {
    width: 100%;
  }

  .detail-actions .text-link {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-top: 0.15rem;
  }

  .btn-secondary {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .detail-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .detail-actions .button,
  .detail-actions .btn-secondary {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  .detail-actions .btn-secondary {
    white-space: normal;
  }

  .detail-actions .text-link {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.15rem;
  }
}