/* ============================================
   LYN GARDNER — BOOK DETAIL PAGE STYLES
   Two-column balanced layout:
   Left  = cover + rating + awards
   Right = synopsis + buy links
   Reviews below as standalone section
   ============================================ */

/* --- BOOK HERO --- */
.book-hero {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.book-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}

/* Left column wrapper (cover + rating + awards) */
.book-hero-left {
  justify-self: center;
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Cover */
.book-hero-cover {
  width: 100%;
}

.book-hero-cover img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 12px 40px var(--color-shadow-lg), 0 4px 12px var(--color-shadow);
}

/* Rating (below cover) */
.book-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-top: var(--space-md);
  padding: 0.75rem 1rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  width: 100%;
  text-align: center;
}

.book-rating-stars {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.book-rating-number {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
}

.book-rating-count {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Hero info (right side on desktop) */
.book-hero-info {
  text-align: center;
}

.back-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: var(--space-md);
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--accent-2);
}

.book-hero-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  margin-bottom: var(--space-sm);
}

.book-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  color: var(--color-text);
  letter-spacing: -0.01em;
}

/* Synopsis */
.book-synopsis {
  margin-bottom: var(--space-lg);
}

.book-synopsis p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
}

.book-synopsis p:last-child {
  margin-bottom: 0;
}

/* Buy heading */
.buy-heading {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  margin-top: var(--space-md);
  margin-bottom: 0.6rem;
  text-align: center;
}

/* Pill buttons */
.book-hero-buy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  border: 1px solid var(--panel-border);
  white-space: nowrap;
  line-height: 1.3;
}

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

.btn-pill-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--text);
}

.btn-pill-primary:hover {
  background: linear-gradient(180deg, rgba(90, 125, 160, 0.98), var(--accent-hover));
  border-color: rgba(232, 237, 244, 0.22);
  color: var(--text);
  box-shadow: 0 4px 12px var(--color-shadow);
}

.btn-pill-secondary {
  background: var(--surface-2);
  color: var(--text);
}

.btn-pill-secondary:hover {
  border-color: rgba(232, 237, 244, 0.22);
  box-shadow: 0 4px 12px var(--color-shadow);
}


/* --- REVIEWS SECTION --- */
.book-reviews {
  padding: var(--space-2xl) 0;
}

.book-reviews .section-title {
  margin-bottom: var(--space-lg);
}

.book-reviews-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.book-review {
  padding: var(--space-md) var(--space-lg);
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  transition: box-shadow var(--transition-normal);
}

.book-review:hover {
  box-shadow: 0 4px 16px var(--color-shadow);
}

.review-stars {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 0.4rem;
}

.review-title {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.review-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.review-text p {
  margin-bottom: 0.6rem;
}

.review-text p:last-child {
  margin-bottom: 0;
}

.review-attribution {
  font-size: 0.82rem;
  color: var(--color-text-light);
  font-style: italic;
}


/* --- MORE BOOKS --- */
.more-books {
  padding: var(--space-2xl) 0;
}

.more-books .section-title {
  margin-bottom: var(--space-lg);
}

.more-books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.more-book-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-normal);
}

.more-book-card:hover {
  transform: translateY(-4px);
}

.more-book-cover {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--color-shadow), 0 1px 3px var(--color-shadow);
  aspect-ratio: 2 / 3;
  background: var(--color-bg-warm);
  margin-bottom: 0.5rem;
}

.more-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.more-book-title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  color: var(--color-text);
}


/* ============================================
   RESPONSIVE — TABLET (640px+)
   ============================================ */
@media (min-width: 640px) {
  .book-hero-left {
    width: 280px;
  }

  .more-books-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 540px;
  }
}


/* ============================================
   RESPONSIVE — DESKTOP (960px+)
   ============================================ */
@media (min-width: 960px) {
  .book-hero {
    padding: var(--space-2xl) 0;
  }

  .book-hero-inner {
    grid-template-columns: 320px 1fr;
    gap: var(--space-xl);
  }

  .book-hero-left {
    width: 100%;
    justify-self: start;
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
  }

  .book-hero-info {
    text-align: left;
  }

  .book-hero-buy {
    justify-content: flex-start;
  }

  .book-hero-awards {
    justify-content: flex-start;
  }

  .more-books-grid {
    grid-template-columns: repeat(6, 1fr);
    max-width: 100%;
  }
}


/* ============================================
   RESPONSIVE — WIDE (1200px+)
   ============================================ */
@media (min-width: 1200px) {
  .book-hero-inner {
    grid-template-columns: 350px 1fr;
  }
}


/* --- AWARD BADGES (visual images) --- */
.book-awards-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.book-award-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  transition: transform var(--transition-fast);
}

.book-award-img:hover {
  transform: scale(1.08);
}

@media (min-width: 960px) {
  .book-awards-images {
    justify-content: flex-start;
  }

  .book-award-img {
    height: 80px;
  }
}

/* Award item with text label */
.book-award-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  max-width: 110px;
}

.book-award-text {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.award-level {
  display: block;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--color-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}


/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .book-review:hover {
    box-shadow: none;
  }
}
