/* ============ CATALOG (main event) ============ */
.catalog-section {
  position: relative;
  padding: 64px 32px 64px;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 2;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 80px;
  gap: 40px;
}
.section-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-id::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}
.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 700px;
}
.section-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
}
.section-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  line-height: 1.8;
  min-width: 180px;
}
.section-meta strong {
  color: var(--gold);
  font-weight: 700;
}

/* Centered variant (catalog header) */
.section-header-centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin-bottom: 80px;
}
.section-header-centered .section-id {
  justify-content: center;
  margin-bottom: 0;
}
.section-header-centered .section-id::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}
.section-header-centered .section-title {
  max-width: 18ch;
  text-wrap: pretty;
}
.section-meta-inline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

/* Book grid — asymmetric, staggered */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px 24px;
  position: relative;
}
.book-tile {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.book-tile:hover { transform: translateY(-8px); }
.book-tile-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 1px rgba(0, 229, 255, 0.3);
  transition: box-shadow 0.4s;
}
.book-tile:hover .book-tile-cover {
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 229, 255, 0.6),
    0 0 40px rgba(0, 229, 255, 0.25);
}
.book-tile-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 55%, rgba(3,5,16,0.75) 100%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s;
}
.book-tile:hover .book-tile-cover::before { opacity: 0.6; }
.book-tile-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(0, 229, 255, 0.35) 50%,
    transparent 100%);
  height: 2px;
  top: -10%;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}
.book-tile:hover .book-tile-scan {
  animation: tile-scan 1.2s ease-out;
}
@keyframes tile-scan {
  0% { top: -10%; opacity: 1; }
  100% { top: 110%; opacity: 0; }
}
.book-tile-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 8px;
  background: rgba(3, 5, 14, 0.85);
  color: var(--gold);
  border: 1px solid var(--gold);
  z-index: 3;
  backdrop-filter: blur(4px);
}
.book-tile-badge.pink { color: var(--pink); border-color: var(--pink); }
.book-tile-badge.cyan { color: var(--cyan); border-color: var(--cyan); }
.book-tile-meta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.book-tile-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.book-tile-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: color 0.25s;
}
.book-tile:hover .book-tile-title { color: var(--cyan); }
.book-tile-title em { font-style: italic; }
.book-tile-sub {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}
.book-tile-tag {
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
}

/* Grid layout — asymmetric */
.book-tile.t1 { grid-column: span 4; }
.book-tile.t2 { grid-column: span 4; margin-top: 60px; }
.book-tile.t3 { grid-column: span 4; }
.book-tile.t4 { grid-column: span 4; margin-top: 40px; }
.book-tile.t5 { grid-column: span 4; }
.book-tile.t6 { grid-column: span 4; margin-top: 60px; }

/* Placeholder for Untrained Therapist (no cover) */
.book-tile-placeholder {
  position: relative;
  aspect-ratio: 2 / 3;
  background:
    linear-gradient(135deg, #1a0514 0%, #0a0a20 100%);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 24px;
  border: 1px solid rgba(255, 26, 107, 0.25);
}
.book-tile-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 26, 107, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 26, 107, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.placeholder-title {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pink);
  background: rgba(3, 5, 14, 0.7);
  padding: 10px 12px;
  align-self: flex-start;
  position: relative;
  z-index: 2;
  max-width: 85%;
}
.placeholder-footer {
  background: rgba(3, 5, 14, 0.9);
  padding: 10px 12px;
  position: relative;
  z-index: 2;
}
.placeholder-footer span {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
}

