/* ============================================================
   extra.css — WPW Theme supplemental styles
   Non-Tailwind: prose, reading progress bar, TOC, scrollbar
   ============================================================ */

/* Reading progress bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #4338ca);
  z-index: 9999;
  transition: width 0.1s linear;
  width: 0%;
}

/* ── Prose (blog post body) ──────────────────────────────── */
.prose h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  scroll-margin-top: 6rem;
}

.prose h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  color: #1e293b;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  scroll-margin-top: 6rem;
}

.prose p {
  color: #334155;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose li {
  color: #334155;
  margin-bottom: 0.4rem;
  line-height: 1.75;
}

.prose a {
  color: #4f46e5;
  text-decoration: none;
  border-bottom: 1px solid #a5b8fc;
}

.prose a:hover {
  border-color: #4f46e5;
}

.prose blockquote {
  border-left: 4px solid #6366f1;
  background: #f0f4ff;
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.prose blockquote p {
  color: #3730a3;
  margin: 0;
  font-style: italic;
}

.prose code:not(pre code) {
  background: #f1f5f9;
  color: #4f46e5;
  border-radius: 0.25rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.88em;
}

.prose pre {
  background: #0f172a;
  border-radius: 0.75rem;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  color: #e2e8f0;
  font-size: 0.875rem;
  background: none;
  padding: 0;
}

.prose strong {
  color: #0f172a;
}

/* ── Table of Contents ───────────────────────────────────── */
#toc a {
  color: #64748b;
  text-decoration: none;
  display: block;
  padding: 0.3rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  font-size: 0.8rem;
  transition: all 0.2s;
  line-height: 1.5;
}

#toc a:hover,
#toc a.active {
  color: #4f46e5;
  border-color: #4f46e5;
}

/* ── Scrollbar hide utility ──────────────────────────────── */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ── Line clamp ──────────────────────────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
