/* ============================================================
   BOOKS.CSS — Book Reviews surface (extends blog.css)
   ============================================================ */

/* ---------- INDEX ---------- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.book-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--glass);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.book-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.book-card .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.7rem;
}
.book-card h2 {
  font-size: 1.22rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.book-card .book-author {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.book-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
}
.book-card .meta {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

/* ---------- REVIEW HEADER ---------- */
.book-head {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  margin: 0 0 2.2rem;
}
.book-cover {
  width: 168px;
  flex-shrink: 0;
  min-height: 236px;
  border-radius: var(--radius-md);
  padding: 1.15rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f4f7ff;
  background:
    radial-gradient(circle at 85% 12%, rgba(240, 198, 116, 0.28), transparent 55%),
    linear-gradient(150deg, #1a2742 0%, #0b1020 62%);
  border: 1px solid #2e3d5b;
  box-shadow: var(--shadow-md);
}
.book-cover .bc-kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f0c674;
}
.book-cover h2 {
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.4rem 0;
}
.book-cover .bc-author {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #aab6d2;
}
.book-cover .bc-rule {
  width: 34px;
  height: 2px;
  background: #f0c674;
  margin-bottom: 0.6rem;
}
.book-facts {
  display: grid;
  gap: 0.55rem;
  align-content: center;
  flex: 1;
}
.book-facts .fact {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}
.book-facts .fact:last-child { border-bottom: none; }
.book-facts dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.book-facts dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-bright);
}
.rating .stars { letter-spacing: 0.08em; }

/* ---------- BRAINMAP EMBED ---------- */
.brainmap-wrap {
  margin: 2.6rem 0 1.2rem;
}
.brainmap-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.brainmap-note a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.brainmap-frame {
  width: 100%;
  height: 820px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #0b1020;
  box-shadow: var(--shadow-md);
}

/* ---------- STUDY GUIDE / SUMMARY ---------- */
.study-note {
  margin: 0 0 2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}
.study-toc {
  margin: 0 0 2.4rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--glass);
}
.study-toc .toc-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.7rem;
}
.study-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2rem;
}
.study-toc li {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  break-inside: avoid;
}
.study-toc a { color: var(--ink-soft); }
.study-toc a:hover { color: var(--accent-bright); }

.blog-post table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0 1.8rem;
  font-size: 0.9rem;
}
.blog-post th,
.blog-post td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.blog-post th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: var(--bg-secondary);
}
.blog-post tr:nth-child(even) td { background: var(--glass); }

@media (max-width: 640px) {
  .study-toc ol { columns: 1; }
}

/* ---------- VERDICT ---------- */
.verdict-box {
  margin: 2.2rem 0;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
}
.verdict-box .verdict-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.6rem;
}

@media (max-width: 720px) {
  .book-head { flex-direction: column; }
  .book-cover { width: 100%; min-height: 190px; }
  .brainmap-frame { height: 640px; }
}
