/* ═══════════════════════════════════════════════════════
   WebNotePad — Quotes hub & category listing components
   Loaded AFTER blog.css + hints.css
═══════════════════════════════════════════════════════ */

/* ── Category chips (shared across hub + listings) ── */
.qcat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.8em; }
.qcat-chips a {
  padding: 7px 15px;
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: var(--paper-dk);
  border: 1px solid var(--paper-edge);
  color: var(--ink-muted);
  text-decoration: none;
  transition: all var(--t);
}
.qcat-chips a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-pl); }
.qcat-chips a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Post card grid (category listing) ── */
.qpost-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 2.4em;
}

.qpost-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-warm);
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-lg);
  padding: 22px 22px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative;
}
.qpost-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh);
  border-color: var(--accent);
}

.qpost-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: .63rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.qpost-meta .qpm-count { color: var(--accent); font-weight: 700; }
.qpost-meta .qpm-sep { color: var(--paper-edge); }

.qpost-card h3 {
  font-family: var(--f-display);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
  letter-spacing: -.01em;
  margin: 0 0 10px;
}
.qpost-card:hover h3 { color: var(--accent); }

.qpost-excerpt {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 16px;
  flex: 1;
}

.qpost-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--paper-edge);
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--t);
}
.qpost-card:hover .qpost-foot { gap: 14px; }
.qpost-foot .qpf-go { display: inline-flex; align-items: center; gap: 6px; }
.qpost-foot .qpf-sample {
  font-weight: 400;
  color: var(--ink-muted);
  font-size: .65rem;
  letter-spacing: .03em;
  text-transform: none;
}

/* ── Quote cards (used on individual post pages only) ── */
.quote-list { display: flex; flex-direction: column; gap: 14px; margin: 1.6em 0; }

.quote-card {
  position: relative;
  background: var(--paper-warm);
  border: 1px solid var(--paper-edge);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 20px 22px 16px;
  transition: box-shadow var(--t), border-color var(--t);
}
.quote-card:hover { box-shadow: var(--sh); }

.quote-mark {
  font-family: var(--f-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
  opacity: .28;
  display: block;
  margin-bottom: -6px;
}

.quote-text {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 12px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--ink-muted);
}
.quote-author .qa-name { color: var(--accent); font-weight: 700; }
.quote-author .qa-src { color: var(--ink-muted); }

.quote-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  border: 1px solid var(--paper-edge);
  background: var(--paper);
  color: var(--ink-muted);
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--t);
  -webkit-tap-highlight-color: transparent;
}
.quote-copy:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-pl); }
.quote-copy.copied { border-color: var(--green); color: var(--green); background: var(--green-pl); }

/* ── Pagination / load-more strip ── */
.qpager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 2em 0 0;
  padding-top: 1.6em;
  border-top: 1px solid var(--paper-edge);
  flex-wrap: wrap;
}
.qpager a, .qpager span {
  font-family: var(--f-mono);
  font-size: .74rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--r);
  border: 1px solid var(--paper-edge);
  color: var(--ink-muted);
  text-decoration: none;
  transition: all var(--t);
}
.qpager a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-pl); }
.qpager .current { background: var(--accent); border-color: var(--accent); color: #fff; }
.qpager .disabled { opacity: .4; pointer-events: none; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .qpost-grid { grid-template-columns: 1fr; gap: 14px; }
  .qpost-card { padding: 18px 18px 16px; }
  .qpost-card h3 { font-size: 1.1rem; }
  .quote-card { padding: 18px 16px 14px; }
  .quote-text { font-size: 1rem; }
  .quote-copy { top: 8px; right: 8px; width: 32px; height: 32px; }
  .quote-mark { font-size: 2rem; }
}


/* ── Individual post pages: featured image, quote notes ── */
.article-wrap figure { margin: 0 0 40px; }
.article-wrap figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  background: var(--paper-warm);
}
.article-wrap figcaption {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .03em;
  color: var(--ink-muted);
  text-align: center;
}
.quote-card { padding-right: 58px; }
.quote-card .quote-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--paper-edge);
  font-family: var(--f-body);
  font-style: normal;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
@media (max-width: 640px) {
  .quote-card { padding-right: 52px; }
  .article-wrap figcaption { font-size: .64rem; }
}
