/* ============================================================
   PAGES/BOOKS.CSS - Book grid, book cards, covers
   ============================================================ */

.book-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.book-card {
  flex: 1 1 280px;
  background: #FFFFFF;
  border-radius: 3px;
  box-shadow: 0 4px 14px rgba(18,18,18,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---- Book cover ---- */
.book-cover {
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: #fff;
  position: relative;
}

.book-cover::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  pointer-events: none;
}

.cover-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.cover-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 25px;
  line-height: 1.18;
}

.cover-author {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.cover-a { background: linear-gradient(165deg, #77BD43 0%, #559632 100%); }
.cover-b { background: linear-gradient(165deg, #191919 0%, #3a1010 100%); }
.cover-c { background: linear-gradient(165deg, #4d8a2e 0%, #191919 100%); }

/* ---- Book info panel ---- */
.book-info {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.book-info h3 {
  font-size: 18px;
  color: #191919;
  margin: 0;
}

.book-info .blurb {
  font-size: 14px;
  color: #2A2A2A;
  flex: 1;
}

.book-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.book-price {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 21px;
  color: #77BD43;
}

/* ---- Coming soon placeholder card ---- */
.more-titles-card {
  flex: 1 1 280px;
  background: #DFF2CC;
  border: 2px dashed rgba(18,18,18,0.14);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 34px 28px;
  gap: 10px;
}

.more-titles-card h3 {
  font-size: 19px;
  color: #191919;
  margin: 0;
}

.more-titles-card p {
  font-size: 14px;
  color: #2A2A2A;
  margin: 0 0 6px;
}

/* ---- Responsive ---- */
@media (max-width: 680px) {
  .book-cover {
    height: 300px;
  }
}

/* ---- Real cover photo (overrides gradient when image uploaded) ---- */
.book-cover.has-photo {
  background: #191919;
  padding: 0;
}

.book-cover.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-cover.has-photo::after {
  border-color: rgba(255,255,255,0.2);
}
