/* ===========================
   Mae Adventures - Books
   =========================== */

/* --- Hero --- */
.books-hero {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-purple) 100%);
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.books-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.books-hero p {
  font-size: 1.1rem;
  color: var(--color-text);
}

/* --- Shelf --- */
.books-shelf {
  padding: 3rem 0 4rem;
}

/* --- Featured Book --- */
.book-feature {
  display: flex;
  gap: 3.5rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.book-cover {
  flex: 0 0 auto;
  width: clamp(180px, 28vw, 280px);
}

.book-cover img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

/* --- Book Details --- */
.book-details {
  flex: 1;
  min-width: 0;
}

.book-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.book-badge {
  display: inline-block;
  background: var(--color-yellow);
  color: var(--color-text);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-pill);
}

/* Live-on-Amazon badge - flips when status: "live" in books.json */
.book-badge--live {
  background: #1a7a36;
  color: #fff;
}

.book-buy-amazon {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.55rem 1rem;
  background: #ff9900;
  color: #111;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 2px solid #111;
  transition: transform 0.12s, box-shadow 0.12s;
}

.book-buy-amazon:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #111;
}

.book-buy-amazon::after {
  content: " →";
}

.book-format-note {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #666;
}

.book-age {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-light);
}

.book-details h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.book-byline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
}

.book-tagline {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--color-blue);
}

.book-description {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.book-themes {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-top: 1.25rem;
}

/* --- More coming --- */
.books-more {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-light);
  padding-top: 2rem;
  border-top: 2px dashed var(--color-yellow);
}

/* --- Mae corner character --- */
.mae-corner {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 170px;
  pointer-events: none;
}

@media (max-width: 600px) {
  .mae-corner {
    width: 110px;
  }
}

/* --- Mobile --- */
@media (max-width: 640px) {
  .book-feature {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .book-cover {
    width: clamp(160px, 60vw, 240px);
  }

  .book-details {
    text-align: center;
  }

  .book-tagline {
    border-left: none;
    border-top: 4px solid var(--color-blue);
    padding-left: 0;
    padding-top: 1rem;
    text-align: left;
  }

  .book-meta {
    justify-content: center;
  }
}
