/* 
   books.css — Ber Schein | Books Page Styles  (public/index.html)
   Depends on style.css being loaded first for reset, typography, and layout.
    */


/* 
   1. PAGE HERO
   Full-width heading section at the top of the books page.
   Uses the .news-hero class retained from the original for HTML compatibility.
    */

.news-hero {
  padding: 6rem 2rem 3rem;
  text-align: center;
  background: transparent;
  color: #00ffcc;
  font-family: 'Courier New', Courier, monospace;
}

.news-hero h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-hero p {
  font-size: 1rem;
  color: #ccc;
  margin-top: 0.5rem;
}


/* 
   2. FEATURED BOOK — Two-column layout (cover + details)
   Each book is a .featured-book section in the HTML. Cover image on the left,
   title / blurb / purchase links on the right. Stacks to single column on
   mobile. To add a new book, copy a .featured-book section in index.html.
    */

.featured-book {
  display: flex;
  flex-wrap: wrap;           /* allows natural wrap to single column on narrow viewports */
  align-items: center;
  padding: 4rem 2rem;
  background: transparent;
}

/* Cover image — constrained width, subtle teal glow */
.featured-book-cover img {
  max-width: 480px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 20px #00ffcc33;
  margin: 0 auto;
}

/* Text panel — grows to fill remaining space beside the cover */
.featured-book-details {
  flex: 1;
  padding: 2rem;
  font-family: 'Courier New', Courier, monospace;
  color: #00ffcc;
}

.featured-book-details h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.featured-book-details p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1.5rem;
}


/* 
   3. PURCHASE LINKS
   Teal bordered badge-style links (Amazon, Kobo, Bookshop.org).
   Deliberately different from the yellow nav buttons — these are content
   actions, not navigation.
    */

.book-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;  /* left-align on desktop, centered on mobile */
}

.book-links a {
  display: inline-block;
  background: #00ffcc22;
  color: #00ffcc;
  border: 1px solid #00ffcc55;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.book-links a:hover {
  background: #00ffcc44;
  color: #ffffff;
}


/* 
   4. RESPONSIVE — MOBILE (max-width: 768px)
   Featured book stacks to single column. Cover centers above the text block.
   Purchase links center beneath the description.
    */

@media (max-width: 768px) {

  .featured-book {
    flex-direction: column;
    padding: 2rem 1rem;
    text-align: center;
  }

  .featured-book-cover img {
    max-width: 80%;
    margin-bottom: 2rem;
  }

  .featured-book-details {
    padding: 1.5rem 0;
  }

  .featured-book-details h2 {
    font-size: 1.8rem;
  }

  .featured-book-details p {
    font-size: 1rem;
    color: #bbb;
  }

  /* Center purchase links under centered text block */
  .book-links {
    justify-content: center;
  }

  .book-links a {
    padding: 0.6rem 1.2rem;
  }

}