/* books.css — page-specific styles for books.html
 *
 * Tailwind (with preflight disabled) handles utilities and spacing.
 * This file covers only what Tailwind can't do cleanly:
 *   - Named component classes used across JS templates
 *   - Layout rules that need to cascade (main-layout, feed-col)
 *   - Stateful styles (.chip.active)
 *   - The background video
 */

/* -------------------------------------------------------------------------
   Page chrome
   ------------------------------------------------------------------------- */

body {
  font-family: 'Work Sans', sans-serif;
  background: #fff8f2;
  color: #1a1408;
  --video-opacity: 0.3;
}

.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--video-opacity);
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr !important;
  }
  .feed-col {
    order: 2;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(139, 122, 90, 0.1);
  }
}

/* -------------------------------------------------------------------------
   Filter chips — need .active state which Tailwind can't do without JS toggling
   ------------------------------------------------------------------------- */

.chip {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(139, 122, 90, 0.2);
  color: #8b7a5a;
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover {
  border-color: #fbbf24;
  color: #fbbf24;
}

.chip.active {
  background: #1a1408;
  color: #fff8f2;
  border-color: #1a1408;
}

/* -------------------------------------------------------------------------
   Reading progress bar
   Two named classes because they're used as a pair in JS templates
   ------------------------------------------------------------------------- */

.progress-bar {
  height: 2px;
  background: rgba(139, 122, 90, 0.2);
  border-radius: 1px;
}

.progress-fill {
  height: 2px;
  background: #fbbf24;
  border-radius: 1px;
}

/* -------------------------------------------------------------------------
   Star ratings — gold with dark shadow for legibility on parchment
   ------------------------------------------------------------------------- */

.stars {
  font-size: 0.75rem;
  color: #fbbf24;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  letter-spacing: 0.05em;
}

/* -------------------------------------------------------------------------
   Review arrow indicator on rows that have reviews
   ------------------------------------------------------------------------- */

.review-arrow {
  font-size: 1rem;
  line-height: 1;
}

/* -------------------------------------------------------------------------
   Review panel prose — strip margin from injected <p> tags
   ------------------------------------------------------------------------- */

#panel-review p {
  margin-bottom: 0.75rem;
}

#panel-review p:last-child {
  margin-bottom: 0;
}
