/* ================================================================
   MIRA ROWEN — components.css v1
   Reusable components: cards, grids, book cards, testimonials, CTA
   ================================================================ */

/* --- CARD --- */
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 4px rgba(26,20,18,.04);
  transition: all .2s;
}
.card:hover {
  border-color: var(--acc-l);
  box-shadow: 0 4px 20px rgba(26,20,18,.06);
}

/* --- GRID --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* --- BOOK CARD --- */
.book-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s;
  text-decoration: none;
  display: block;
}
.book-card:hover {
  border-color: var(--acc-l);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(26,20,18,.08);
}
.book-card-cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bg-2);
}
.book-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.book-card:hover .book-card-cover img {
  transform: scale(1.03);
}
.book-card-info {
  padding: 20px;
}
.book-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--t0);
  margin-bottom: 6px;
  line-height: 1.3;
}
.book-card-subtitle {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.5;
  margin-bottom: 12px;
}
.book-card-meta {
  font-size: 12px;
  color: var(--t3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.book-card-stars {
  color: var(--acc);
  font-size: 13px;
}

/* --- TESTIMONIAL --- */
.testimonial {
  padding: 28px 32px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.testimonial::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--acc-l);
  position: absolute;
  top: 8px;
  left: 20px;
  line-height: 1;
}
.testimonial-text {
  font-style: italic;
  color: var(--t1);
  line-height: 1.7;
  margin-bottom: 12px;
  padding-left: 8px;
}
.testimonial-author {
  font-size: 13px;
  color: var(--t3);
  font-weight: 500;
}

/* --- CTA BANNER --- */
.cta-banner {
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.cta-banner p {
  color: var(--t2);
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- DIVIDER --- */
.divider {
  width: 48px;
  height: 2px;
  background: var(--acc-l);
  margin: 0 auto;
  border-radius: 2px;
}
.divider-left {
  margin: 0;
}
.divider-wide {
  width: 100%;
  height: 1px;
  background: var(--line);
}

/* --- TAG / LABEL --- */
.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--acc);
  margin-bottom: 8px;
}

/* --- HERO --- */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}
.hero h1 {
  margin-bottom: 20px;
}
.hero .hero-sub {
  font-size: 18px;
  color: var(--t2);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero .btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero { padding: 64px 0 56px; }
  .testimonial { padding: 24px; }
  .cta-banner { padding: 36px 24px; }
}

/* --- SERIES BANNER (horizontal highlight) --- */
.series-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--acc-d);
  border: 1px solid var(--acc-l);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.series-banner-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.series-banner-text {
  font-size: 14px;
  color: var(--t1);
  line-height: 1.6;
}
.series-banner-text strong {
  color: var(--t0);
}

/* --- FADE IN ANIMATION (CSS only) --- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp .6s ease forwards;
}
.fade-in-delay-1 { animation-delay: .1s; }
.fade-in-delay-2 { animation-delay: .2s; }
.fade-in-delay-3 { animation-delay: .3s; }
.fade-in-delay-4 { animation-delay: .4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
