/* ========================================================
   BOOKS PAGE — Personal Bookstore (cleaner, tighter)
   ======================================================== */

/* ---------- HERO (no stats, tighter) ---------- */
.books-hero {
  min-height: 50vh;          /* was 60vh — reduced */
  padding: 3rem 0 2rem;      /* was 5rem top — reduced */
  text-align: left;
}
.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}
.hero-tagline {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--terracotta);
  margin-bottom: 1rem;
  font-weight: 500;
}
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
}

/* ---------- SECTION HEADINGS ---------- */
.section-heading {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 1.5rem;
}
.section-header { margin-bottom: 1rem; }

/* Tighter sections — reduced from 4rem to 2.5rem */
.section { padding: 2.5rem 0 1.5rem; }

/* ---------- FEATURED BOOK ---------- */
.featured-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep-teal);
  margin-bottom: 0.6rem;
}
.featured-label .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(180, 95, 58, 0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(180, 95, 58, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(180, 95, 58, 0.05); }
}

.featured-book {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 32px;
  padding: 3rem;
  box-shadow: 0 25px 60px rgba(44, 40, 34, 0.08);
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}
.featured-book::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(200, 135, 61, 0.08), transparent 60%);
  pointer-events: none;
}
.featured-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.featured-badge {
  position: absolute;
  top: -10px;
  right: 5%;
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 40px;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 25px rgba(201, 126, 90, 0.35);
  z-index: 2;
}
/* Clickable cover wrapper */
.featured-cover-link {
  display: block;
  cursor: pointer;
  transition: transform 0.4s ease;
}
.featured-cover-link:hover {
  transform: translateY(-8px) rotate(-1deg);
}
.featured-cover {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(44, 40, 34, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.featured-category {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep-teal);
  padding: 0.3rem 0.9rem;
  background: rgba(79, 139, 140, 0.12);
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 1rem;
}
.featured-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}
.featured-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.featured-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.featured-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-primary);
}
.featured-points .check {
  color: var(--deep-teal);
  font-weight: 700;
  flex-shrink: 0;
}
.featured-meta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 1rem 0;
  border-top: 1px dashed var(--border-light);
  border-bottom: 1px dashed var(--border-light);
  margin-bottom: 1.5rem;
}
.featured-cta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.featured-price { display: flex; flex-direction: column; }
.price-label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.price-value {
  font-family: var(--ff-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ---------- BOOK GRID (no stars, clickable cover) ---------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.book-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 1.3rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.book-card:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 107, 108, 0.3);
  box-shadow: 0 20px 40px rgba(44, 40, 34, 0.1);
}
/* Clickable cover wrapper */
.book-cover-link {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #e8ddd0, #d4c4b0);
  margin-bottom: 1.2rem;
  position: relative;
  cursor: pointer;
}
.book-cover-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.book-card:hover .book-cover-link img {
  transform: scale(1.05);
}
/* "View book" overlay on hover */
.book-cover-link::after {
  content: "View book →";
  position: absolute;
  inset: 0;
  background: rgba(44, 40, 34, 0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}
.book-card:hover .book-cover-link::after {
  opacity: 1;
}
.book-category-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(44, 40, 34, 0.85);
  color: #fff;
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.book-title {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.book-meta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-light);
}
.book-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}
.book-price {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}
.btn-buy {
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  background:lightgreen;
  color: Black;
  font-family: var(--ff-sans);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}
.btn-buy:hover {
  background: var(--terracotta);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(180, 95, 58, 0.3);
}

/* ---------- COMING SOON ---------- */
.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.coming-soon-card {
  background: var(--card-bg);
  border: 1px dashed rgba(180, 95, 58, 0.35);
  border-radius: 22px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.coming-soon-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(200, 135, 61, 0.08), transparent 60%);
  pointer-events: none;
}
.coming-soon-card:hover {
  transform: translateY(-4px);
  border-color: var(--terracotta);
}
.cs-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  filter: grayscale(0.3) brightness(0.95);
  margin-bottom: 1.2rem;
  box-shadow: 0 15px 35px rgba(44, 40, 34, 0.15);
  transition: filter 0.4s ease;
}
.coming-soon-card:hover .cs-cover {
  filter: grayscale(0) brightness(1);
}
.cs-badge {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  padding: 0.25rem 0.8rem;
  background: rgba(180, 95, 58, 0.1);
  border-radius: 30px;
  margin-bottom: 0.8rem;
}
.cs-title {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.cs-date {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.btn-notify {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--terracotta);
  color: var(--terracotta);
  font-family: var(--ff-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-notify:hover {
  background: var(--terracotta);
  color: #fff;
}

/* ---------- WHY READ MY BOOKS ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.why-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.8rem;
  transition: all 0.25s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--soft-amber);
}
.why-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(79, 139, 140, 0.12);
  color: var(--deep-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.why-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.why-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- READER BENEFITS ---------- */
.benefits-card {
  background: linear-gradient(135deg, rgba(79, 139, 140, 0.06), rgba(200, 135, 61, 0.06));
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 3rem;
}
.benefits-header { margin-bottom: 2rem; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.benefit-check {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--deep-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 2px;
}
.benefit-item h4 {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.benefit-item p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 1rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item.open { border-color: var(--soft-amber); }
.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  gap: 1rem;
}
.faq-toggle {
  font-family: var(--ff-mono);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--terracotta);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.3rem;
}
.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .featured-book {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem;
    text-align: center;
  }
  .featured-visual { justify-content: center; }
  .featured-points, .featured-cta, .featured-meta { justify-content: center; }
  .featured-points li { text-align: left; }
}
@media (max-width: 600px) {
  .books-hero { padding: 2rem 0 1.5rem; min-height: auto; }
  .featured-book { padding: 1.5rem; border-radius: 22px; }
  .featured-cover { max-width: 240px; }
  .featured-title { font-size: 1.7rem; }
  .featured-cta { flex-direction: column; align-items: stretch; gap: 1rem; }
  .featured-price { align-items: center; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .book-card { padding: 1rem; }
  .book-title { font-size: 1rem; }
  .book-footer { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .btn-buy { width: 100%; text-align: center; }
  .benefits-card { padding: 2rem 1.5rem; }
  .faq-question { font-size: 0.95rem; padding: 1rem 1.2rem; }
}

/* ---------- FADE-IN ON SCROLL ---------- */
.fade-up-initial {
  opacity: 0;
  transform: translateY(28px);
}
.fade-up-visible {
  animation: fadeUp 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}

