/*
Theme Name: EasyExtract Blog
Theme URI: https://easyextract.online/
Author: EasyExtract
Description: Blog theme for easyextract.online. Loads the main site stylesheet so /blog/ is visually identical to the tool pages, and takes its header and footer from partials generated by _build/build.py, so the tool list never drifts out of sync. Blog-specific styles only are defined below.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: easyextract
*/

/* The site stylesheet is enqueued first (see functions.php); everything below layers on
   top of it and uses the same custom properties, so colours and type stay consistent. */

/* post listing */
.postlist {
  display: grid;
  gap: 22px;
  margin: 30px 0 40px;
}
.postcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px;
}
.postcard h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.postcard h2 a {
  color: var(--ink);
  text-decoration: none;
}
.postcard h2 a:hover {
  color: var(--teal-dark);
}
.postcard p {
  color: var(--ink-soft);
  font-size: .95rem;
}
.postmeta {
  font-size: .82rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.postmeta a {
  color: var(--ink-soft);
}
.postmore {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  text-decoration: none;
}
.postmore:hover {
  text-decoration: underline;
}

/* article body — matches the .content rhythm of the tool pages */
.postbody {
  max-width: 46em;
}
.postbody h2 {
  margin-top: 38px;
}
.postbody h3 {
  font-size: 1.15rem;
  margin: 26px 0 8px;
}
.postbody p,
.postbody li {
  color: var(--ink-soft);
}
.postbody ul,
.postbody ol {
  padding-left: 22px;
  margin: 12px 0;
}
.postbody li {
  margin-bottom: 7px;
}
.postbody img {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 22px 0;
}
.postbody blockquote {
  border-left: 3px solid var(--hl);
  background: var(--hl-soft);
  border-radius: 0 10px 10px 0;
  padding: 14px 20px;
  margin: 22px 0;
}
.postbody blockquote p {
  color: var(--ink);
  margin: 0;
}
.postbody pre {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .85rem;
  margin: 18px 0;
}
.postbody table {
  border-collapse: collapse;
  width: 100%;
  font-size: .9rem;
  margin: 20px 0;
  display: block;
  overflow-x: auto;
}
.postbody th,
.postbody td {
  border: 1px solid var(--line);
  padding: 8px 11px;
  text-align: left;
}
.postbody th {
  background: var(--paper);
}

/* a call-to-action box for linking a post to the tool it is about */
.toolcta {
  background: var(--hl-soft);
  border: 1px solid #efd75a;
  border-radius: 14px;
  padding: 20px 22px;
  margin: 28px 0;
}
.toolcta strong {
  display: block;
  margin-bottom: 4px;
}
.toolcta p {
  color: var(--ink-soft);
  font-size: .92rem;
  margin-bottom: 14px;
}

/* pagination */
.pager {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 40px;
}
.pager .page-numbers {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  padding: 7px 13px;
  text-decoration: none;
  font-size: .9rem;
  color: var(--ink-soft);
}
.pager .page-numbers:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}
.pager .page-numbers.current {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 600;
}

/* author byline + bio box */
.authorbox {
  margin: 34px 0 0;
  padding: 20px 22px;
  background: var(--paper, #FAFBFD);
  border: 1px solid var(--line, #E3E8F0);
  border-radius: 14px;
}
.authorbox strong { display: block; margin-bottom: 6px; font-size: 1.02rem; }
.authorbox p { margin: 0; color: var(--ink-soft, #3D4A63); font-size: .95rem; }
.postmeta a[rel="author"] { color: var(--teal, #0E7C6B); text-decoration: none; font-weight: 600; }
.postmeta a[rel="author"]:hover { text-decoration: underline; }

/* ---- blog upgrade: hero image, category eyebrow, TOC, tool CTA, image cards ---- */

/* category eyebrow above the post title */
.posteyebrow {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  margin-bottom: 10px;
}
.posteyebrow a { color: var(--teal, #0E7C6B); text-decoration: none; }

/* featured image hero at the top of a post */
.post-hero {
  margin: 6px 0 30px;
}
.post-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line, #E3E8F0);
}

/* table of contents — mirrors the .toc on the tool pages */
.posttoc {
  background: var(--paper, #FAFBFD);
  border: 1px solid var(--line, #E3E8F0);
  border-radius: 14px;
  padding: 16px 22px;
  margin: 0 0 30px;
  max-width: 46em;
}
.posttoc-h {
  display: block;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--ink-soft, #3D4A63);
  margin-bottom: 8px;
}
.posttoc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}
.posttoc li { margin: 4px 0; break-inside: avoid; }
.posttoc a { color: var(--teal-dark, #0A5F52); text-decoration: none; font-size: .92rem; }
.posttoc a:hover { text-decoration: underline; }
@media (max-width: 640px) { .posttoc ol { columns: 1; } }

/* "Try the tool" CTA after the article body */
.post-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--hl-soft, #FEF9E3);
  border: 1px solid #efd75a;
  border-radius: 16px;
  padding: 20px 24px;
  margin: 34px 0 0;
  max-width: 46em;
}
.post-cta-txt strong { display: block; font-size: 1.05rem; margin-bottom: 3px; color: var(--ink, #111B2E); }
.post-cta-txt span { color: var(--ink-soft, #3D4A63); font-size: .92rem; }
.post-cta .btn { flex: 0 0 auto; white-space: nowrap; }

/* index cards with a thumbnail */
.postcard.has-thumb {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.postcard-thumb { display: block; height: 100%; }
.postcard-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 170px;
}
.postcard.has-thumb .postcard-body { padding: 24px 28px; }
@media (max-width: 620px) {
  .postcard.has-thumb { grid-template-columns: 1fr; }
  .postcard-thumb img { min-height: 150px; max-height: 190px; }
}
