/* custom.css — unchanged from your original design, only moved into its own file */
:root {
  --brand: #7c3aed;
  --brand-dark: #6d28d9;
  --ink: #0f172a;
  --line: #e7e6f2;
  --bg: #f7f7fb;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); }
section { scroll-margin-top: 24px; }

/* ---------- Typography ---------- */
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 700; color: var(--brand);
}
.eyebrow-link { color: inherit; text-decoration: none; }
.eyebrow-link:hover { text-decoration: underline; }

.section-title {
  position: relative; padding-bottom: 10px;
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 44px; height: 3px; border-radius: 999px; background: var(--brand);
}

.quote-mark { user-select: none; }

/* ---------- Cards ---------- */
.qh-card {
  background: #fff; border: 1px solid #eceaf4;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

/* Quote Image color overlay intentionally removed per update request —
   the Quote Image must display in its original, unaltered appearance.
   .quote-overlay is left in the markup only as an empty, non-visual
   element so the layout/DOM structure is not touched. */
.quote-overlay {
  background: none;
}

.quote-box { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; border-radius: .65rem; cursor: pointer;
  transition: all .2s ease;
}

.btn-outline {
  border: 1.5px solid #c9b8f7; color: var(--brand-dark); background: #fff;
  padding: .62rem 1.15rem; font-size: .9rem;
}
.btn-outline:hover { border-color: var(--brand); background: #f5f3ff; }

.btn-solid {
  background: var(--brand); color: #fff;
  padding: .68rem 1.35rem; font-size: .9rem;
  box-shadow: 0 8px 20px rgba(124, 58, 237, .28);
}
.btn-solid:hover { background: var(--brand-dark); transform: translateY(-1px); }

.btn-icon {
  width: 47px; height: 47px; border: 1.5px solid var(--line);
  border-radius: .7rem; background: #fff; color: #475569;
}
.btn-icon:hover { border-color: #c9b8f7; color: var(--brand); }

.btn-download {
  background: #fff; color: var(--brand-dark); border-radius: 999px;
  padding: .82rem 1.7rem; font-weight: 700; font-size: .95rem;
  box-shadow: 0 12px 32px rgba(10, 4, 30, .3);
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(10, 4, 30, .38); }

/* ---------- Hearts ---------- */
.heart-btn svg { transition: all .2s ease; }
.heart-btn.active { color: var(--brand); }
.heart-btn.active svg { fill: var(--brand); stroke: var(--brand); transform: scale(1.08); }

/* ---------- Tags ---------- */
.tag-pill {
  background: #f3f0fd; border: 1px solid #e2dcfa; color: #334155;
  padding: .52rem 1.1rem; border-radius: .55rem; font-size: .88rem; font-weight: 500;
  transition: all .18s ease;
}
.tag-pill:hover { border-color: var(--brand); color: var(--brand-dark); background: #ede9fe; }

/* ---------- Category columns ---------- */
.cat-col li + li { border-top: 1px solid #edeff4; }
.cat-link {
  display: block; padding: .72rem .1rem; font-size: .95rem; color: #1f2937;
  transition: color .15s ease, transform .15s ease;
}
.cat-link:hover { color: var(--brand); transform: translateX(3px); }

/* ---------- Author link ---------- */
.quote-author-link { color: inherit; text-decoration: none; }
.quote-author-link:hover { text-decoration: underline; color: var(--brand-dark); }

/* ---------- View Full Post ---------- */
.view-full-post {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .95rem; color: var(--brand-dark);
  transition: color .15s ease, gap .15s ease;
}
.view-full-post:hover { color: var(--brand); gap: .65rem; }

/* ---------- Share buttons ---------- */
.share-btn {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  height: 52px; border-radius: .6rem; color: #fff;
  font-weight: 600; font-size: .95rem;
  border: none; width: 100%; cursor: pointer;
  transition: transform .15s ease, filter .2s ease;
}
.share-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.share-more { background: #f1f1f5; color: #1e293b; border: 1px solid #e4e4ec; }
.share-more:hover { background: #e9e9f2; }
.share-copy { background: #171233; color: #fff; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80;
  transform: translate(-50%, 16px);
  background: #171233; color: #fff;
  padding: .72rem 1.3rem; border-radius: 999px;
  font-size: .9rem; font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  opacity: 0; pointer-events: none;
  transition: all .3s ease;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 1023px) {
  .quote-card figcaption p:first-child { font-size: 26px; }
}
