/* ─────────────────────────────────────────────────────────────────────────────
   InkHub Demo — Shared Stylesheet
   Each genre page imports this, then sets its own CSS variables.
───────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Demo Banner ── */
.demo-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a2540;
  color: #e8edf8;
  text-align: center;
  padding: 10px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.demo-banner .banner-sep {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.demo-banner a {
  color: #c8d4e8;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s;
}
.demo-banner a:hover { color: #fff; }
.demo-banner a.banner-cta-ink {
  color: #f4c2d4;
  border-bottom-color: rgba(244,194,212,0.5);
}
.demo-banner a.banner-cta-ink:hover { color: #fff; }

/* ── Coming Soon Badge ── */
.badge-soon {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  vertical-align: middle;
}

/* ── Book Card (shared base, overridden per theme) ── */
.book-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease;
}
.book-card:hover { transform: translateY(-4px); }
.book-card .cover-wrap {
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.book-card .cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.book-card:hover .cover-wrap img { transform: scale(1.03); }
.book-card .book-title { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.book-card .book-tagline { font-size: 0.85rem; opacity: 0.7; line-height: 1.4; }

/* ── Newsletter Form ── */
.newsletter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 420px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
}
.newsletter-form button {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}
.newsletter-form button:hover { transform: translateY(-1px); }
.newsletter-form button:active { transform: none; }

/* ── Series Badge ── */
.series-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ── Responsive grid utilities ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .demo-banner { font-size: 11px; gap: 8px; padding: 8px 16px; }
}
