/* Book Feature Page Styles */

/* Calculate banded background color (2-5% darker than #f0eded) */
:root {
  --book-section-banded-bg: #e6e2e2; /* approximately 3% darker than #f0eded */
}

/* Common section styling */
.book-announcement-section,
.book-reviews-section,
.book-characters-section,
.book-settings-section,
.book-sample-section,
.book-availability-section,
.book-seen-on-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 3rem 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Banded sections get darker background */
.book-section-banded {
  background-color: var(--book-section-banded-bg);
}

/* Content wrapper for sections */
.book-section-content,
.book-announcement-content,
.book-reviews-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Section headers */
.book-section-content h2,
.book-announcement-content h2,
.book-reviews-content h2 {
  font-family: 'IM Fell DW Pica SC', serif;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
}

/* Announcement Section */
.book-announcement-content {
  text-align: center;
}

.book-announcement-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Reviews Section */
.reviews-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.review-item {
  text-align: center;
  width: 100%;
}

.review-item blockquote {
  font-style: italic;
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  padding: 0;
  border: none;
  quotes: none;
  line-height: 1.4;
}

.review-item cite {
  font-style: normal;
  font-weight: bold;
  font-size: 0.9rem;
  color: #666;
  display: block;
}

/* Characters and Settings Grid */
.characters-grid,
.settings-grid {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* For desktop: ensure horizontal layout */
@media (min-width: 769px) {
  .characters-grid,
  .settings-grid {
    flex-wrap: nowrap;
    justify-content: space-evenly;
  }
}

/* Character and Setting Items */
.character-item,
.setting-item {
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
}

.character-item a,
.setting-item a {
  text-decoration: none;
  color: #000;
  display: block;
}

.character-item a:hover,
.setting-item a:hover {
  text-decoration: none;
  opacity: 0.8;
}

.character-image,
.setting-image {
  width: 200px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.character-item h3,
.setting-item h3 {
  font-family: 'IM Fell DW Pica SC', serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.character-item p,
.setting-item p {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
}

/* Sample Chapter Section */
.sample-content {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.sample-image {
  width: 200px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.sample-text {
  flex: 1;
}

.sample-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Store Links */
.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.store-link {
  background-color: #031346;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
}

.store-link:hover {
  background-color: #00102b;
  color: #fff;
}

/* As Seen On Section */
.seen-on-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.seen-on-list li {
  margin: 0;
}

.seen-on-list a {
  color: #031346;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border: 1px solid #031346;
  border-radius: 4px;
  display: inline-block;
}

.seen-on-list a:hover {
  background-color: #031346;
  color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .book-announcement-section,
  .book-reviews-section,
  .book-characters-section,
  .book-settings-section,
  .book-sample-section,
  .book-availability-section,
  .book-seen-on-section {
    padding: 2rem 1rem;
  }
  
  .reviews-grid {
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .characters-grid,
  .settings-grid {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .sample-content {
    flex-direction: column;
    text-align: center;
  }
  
  .sample-image {
    margin: 0 auto 1rem;
  }
  
  .store-links {
    flex-direction: column;
    align-items: center;
  }
  
  .seen-on-list {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .character-image,
  .setting-image,
  .sample-image {
    width: 150px;
  }
  
  .book-section-content h2,
  .book-announcement-content h2,
  .book-reviews-content h2 {
    font-size: 1.5rem;
  }
}