/* ============================================
   Board Page Styles (shared: books + ads)
   ============================================ */

.board-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ---- Section Navigator ---- */
.section-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.section-nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.section-nav-inner::-webkit-scrollbar { display: none; }

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-pill:hover { border-color: var(--accent); color: var(--accent); }
.nav-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---- Panel ---- */
.board-panel {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 120px;
}
.board-panel:last-of-type { border-bottom: none; }

.panel-header { margin-bottom: 28px; }
.panel-num { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 1px; margin-bottom: 4px; }
.panel-title { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 4px; }
.panel-subtitle { font-size: 14px; color: var(--text-secondary); }

/* ---- Stats Row ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat-box {
  text-align: center;
  padding: 24px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-big { display: block; font-size: 28px; font-weight: 800; color: var(--accent); letter-spacing: -1px; }
.stat-small { display: block; font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ---- Category Bars ---- */
.reading-categories { display: flex; flex-direction: column; gap: 12px; }
.cat-bar { display: flex; align-items: center; gap: 12px; }
.cat-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); width: 50px; flex-shrink: 0; }
.cat-track { flex: 1; height: 10px; background: #f1f5f9; border-radius: 5px; overflow: hidden; }
.cat-fill { height: 100%; border-radius: 5px; transition: width 0.6s ease; }
.cat-count { font-size: 12px; color: var(--text-light); width: 40px; text-align: right; }

/* ---- Book Cards ---- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.book-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
}
.book-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.book-cover {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-cover-text { color: #fff; font-size: 18px; font-weight: 700; text-align: center; padding: 0 16px; }
.book-info { padding: 16px; }
.book-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.book-author { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.book-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.book-progress { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 80px; }
.progress-track { flex: 1; height: 6px; background: #f1f5f9; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 3px; }
.progress-text { font-size: 11px; color: var(--text-light); font-weight: 600; }
.book-tag { padding: 2px 8px; border-radius: 4px; background: var(--tag-bg); color: var(--tag-text); font-size: 11px; font-weight: 500; }
.book-note { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ---- Book List (finished) ---- */
.book-list { display: flex; flex-direction: column; gap: 10px; }
.book-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.book-row:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.book-cover-sm {
  width: 40px; height: 52px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.book-row-info { flex: 1; }
.book-row-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.book-row-info p { font-size: 12px; color: var(--text-light); }
.book-rating { font-size: 13px; letter-spacing: 1px; }
.star { color: #f59e0b; }
.book-row-tags { display: flex; gap: 4px; }

/* ---- Wishlist ---- */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.wishlist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.wishlist-item:hover { border-color: var(--accent); }
.wishlist-cat { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.wishlist-title { font-size: 13px; font-weight: 500; }

/* ---- Notes ---- */
.notes-list { display: flex; flex-direction: column; gap: 16px; }
.note-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.note-quote { font-size: 15px; font-weight: 600; line-height: 1.7; color: var(--text); margin-bottom: 8px; }
.note-source { font-size: 12px; color: var(--text-light); margin-bottom: 12px; }
.note-comment { font-size: 13px; color: var(--text-secondary); line-height: 1.7; padding-top: 12px; border-top: 1px solid var(--border); }

/* ---- Ad Case Cards ---- */
.ad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.ad-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
}
.ad-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.ad-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ad-platform { font-size: 13px; font-weight: 700; }
.ad-score {
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.score-high { background: #d1fae5; color: #065f46; }
.score-mid { background: #fef3c7; color: #92400e; }
.score-low { background: #fee2e2; color: #991b1b; }
.ad-card-body { padding: 16px 20px; }
.ad-hook { font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.5; }
.ad-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.ad-analysis { font-size: 12px; color: var(--text-secondary); line-height: 1.6; padding: 10px 12px; background: #f8fafc; border-radius: var(--radius-sm); }
.ad-analysis strong { color: var(--text); }
.ad-card-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; gap: 6px; flex-wrap: wrap; }

/* ---- Business Model Canvas ---- */
.bm-canvas {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.bm-block {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}
.bm-block-title { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.bm-block-content { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.bm-block-full { grid-column: span 3; }

/* ---- Revenue Flow ---- */
.revenue-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.flow-node {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.flow-arrow { font-size: 18px; color: var(--text-light); }
.flow-source { background: #dbeafe; color: #1d4ed8; }
.flow-channel { background: #ede9fe; color: #5b21b6; }
.flow-product { background: #d1fae5; color: #065f46; }
.flow-revenue { background: #fef3c7; color: #92400e; }

/* ---- Insight Cards ---- */
.insight-list { display: flex; flex-direction: column; gap: 14px; }
.insight-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.insight-num { font-size: 24px; font-weight: 800; color: var(--accent); opacity: 0.25; flex-shrink: 0; line-height: 1; }
.insight-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.insight-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex; align-items: center; padding: 11px 22px;
  background: var(--accent); color: #fff !important; border: none;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; text-decoration: none; font-family: var(--font-sans);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .board-main { padding: 0 16px 60px; }
  .section-nav-inner { padding: 0 16px; }
  .panel-title { font-size: 20px; }
  .board-panel { padding: 36px 0; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .book-grid { grid-template-columns: 1fr; }
  .book-row { flex-wrap: wrap; }
  .book-row-tags { width: 100%; }
  .wishlist-grid { grid-template-columns: 1fr; }
  .ad-grid { grid-template-columns: 1fr; }
  .bm-canvas { grid-template-columns: 1fr; }
  .bm-block-full { grid-column: span 1; }
  .revenue-flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
}
