/*
 * blog-single.css — Styles for the single blog post template (single.php).
 *
 * @package ChefAnandHub
 */

/* ── PAGE LAYOUT ── */
.page-wrap {
  display: grid;
  grid-template-columns: 42px 1fr;
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 28px 96px;
  align-items: start;
}

/* ── SHARE SIDEBAR ── */
.share-col {
  position: sticky; top: 80px;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding-top: 52px;
}
.share-label {
  font-size: 9px; font-weight: 700;
  color: #9CA3AF; letter-spacing: .1em; text-transform: uppercase;
  writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 2px;
}
.share-ico {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid #D1D5DB; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .13s, background .13s;
}
.share-ico:hover { border-color: #111827; background: #F9FAFB; }
.share-ico svg { width: 14px; height: 14px; fill: #4B5563; }

/* ── MAIN POST COLUMN ── */
.post-col { padding-left: 26px; min-width: 0; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 3px;
  font-size: 12px; color: #6B7280; margin-bottom: 20px;
}
.breadcrumb a { color: #6B7280; transition: color .12s; }
.breadcrumb a:hover { color: #111827; text-decoration: underline; }
.breadcrumb .sep { color: #9CA3AF; margin: 0 2px; }

/* Title block */
.post-eyebrow { font-size: 11px; font-weight: 700; color: #6B7280; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.post-title {
  font-size: 30px; font-weight: 800; color: #111827;
  line-height: 1.18; letter-spacing: -.025em; margin-bottom: 14px;
}

/* Post meta */
.post-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 5px; font-size: 12.5px; color: #6B7280; margin-bottom: 10px;
}
.meta-chip { display: flex; align-items: center; gap: 4px; }
.meta-chip svg { width: 12px; height: 12px; stroke: #6B7280; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.meta-sep { color: #D1D5DB; }

/* Action buttons */
.post-actions { display: flex; gap: 8px; margin-bottom: 22px; }
.act-btn {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; color: #6B7280;
  padding: 5px 12px; border: 1px solid #E5E7EB; border-radius: 6px;
  background: none; cursor: pointer; font-family: inherit;
  transition: color .12s, border-color .12s;
}
.act-btn:hover { color: #111827; border-color: #111827; }
.act-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Featured image */
.featured-img {
  background: #1A1A1A; border-radius: 10px;
  width: 100%; aspect-ratio: 16/7;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px; overflow: hidden;
}
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.food-word { font-size: 52px; font-weight: 800; color: #fff; letter-spacing: -.03em; }

/* Key takeaways box */
.optin-box {
  background: #F9FAFB; border: 1px solid #E5E7EB;
  border-radius: 10px; padding: 16px 20px; margin-bottom: 24px;
}
.optin-hdr {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: #111827;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px;
}
.optin-hdr svg { width: 14px; height: 14px; stroke: #111827; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.optin-box p { font-size: 13px; color: #4B5563; line-height: 1.65; }
.optin-list { display: flex; flex-direction: column; gap: 5px; }
.optin-list li {
  font-size: 13px; color: #4B5563; line-height: 1.52;
  display: flex; align-items: flex-start; gap: 8px;
}
.optin-list li::before { content: '→'; font-size: 11px; color: #9CA3AF; flex-shrink: 0; margin-top: 2px; }

/* Table of Contents */
.toc-box {
  border: 1px solid #E5E7EB; border-radius: 10px;
  padding: 16px 20px; margin-bottom: 28px;
}
.toc-box h3 { font-size: 13px; font-weight: 700; color: #111827; margin-bottom: 11px; }
.toc-list { display: flex; flex-direction: column; gap: 6px; counter-reset: toc-c; list-style: none; padding: 0; }
.toc-list li {
  counter-increment: toc-c;
  font-size: 13px; color: #4B5563;
  display: flex; align-items: flex-start; gap: 8px;
  cursor: pointer; transition: color .12s;
}
.toc-list li::before {
  content: counter(toc-c); font-size: 11.5px; color: #9CA3AF; font-weight: 600;
  min-width: 16px; flex-shrink: 0; margin-top: 1px;
}
.toc-list li:hover { color: #111827; }

/* ── ARTICLE BODY ── */
.post-body { margin-bottom: 44px; }
.post-body h2 {
  font-size: 20px; font-weight: 700; color: #111827;
  margin: 32px 0 12px; letter-spacing: -.015em; scroll-margin-top: 80px;
}
.post-body h3 {
  font-size: 16.5px; font-weight: 700; color: #111827;
  margin: 24px 0 9px; scroll-margin-top: 80px;
}
.post-body h4 { font-size: 14.5px; font-weight: 600; color: #111827; margin: 18px 0 7px; }
.post-body p { font-size: 14px; color: #4B5563; line-height: 1.8; margin-bottom: 13px; }
.post-body ul { margin: 0 0 15px 18px; list-style: disc; }
.post-body ol { margin: 0 0 15px 18px; list-style: decimal; }
.post-body li { font-size: 14px; color: #4B5563; line-height: 1.74; margin-bottom: 4px; }
.post-body strong { color: #111827; font-weight: 600; }
.post-body a { color: #111827; text-decoration: underline; text-underline-offset: 2px; }
.post-body hr { border: none; border-top: 1px solid #E5E7EB; margin: 26px 0; }

/* Numbered section badge */
.sec-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: #111827; color: #fff; font-size: 12px; font-weight: 700;
  margin-right: 8px; vertical-align: middle; flex-shrink: 0;
}

/* Comparison table */
.cmp-table {
  width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13px;
  border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden;
}
.cmp-table thead tr { background: #111827; }
.cmp-table thead th {
  padding: 11px 16px; font-weight: 600; color: #fff;
  text-align: left; font-size: 12.5px;
}
.cmp-table thead th:not(:first-child) { text-align: center; }
.cmp-table tbody tr { border-bottom: 1px solid #E5E7EB; }
.cmp-table tbody tr:last-child { border-bottom: none; }
.cmp-table tbody tr:nth-child(even) { background: #F9FAFB; }
.cmp-table tbody tr:hover { background: #F3F4F6; }
.cmp-table td { padding: 10px 16px; color: #4B5563; vertical-align: middle; }
.cmp-table td:first-child { font-weight: 500; color: #111827; }
.cmp-table td:not(:first-child) { text-align: center; }
.chk svg { width: 14px; height: 14px; stroke: #111827; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.xmk svg { width: 14px; height: 14px; stroke: #9CA3AF; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* ── FAQ ACCORDION (blog post style) ── */
.faq-section { margin-bottom: 44px; }
.faq-section > h2 {
  font-size: 20px; font-weight: 700; color: #111827;
  letter-spacing: -.015em; margin-bottom: 18px;
}
.faq-list { border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; }
.faq-row { border-bottom: 1px solid #E5E7EB; }
.faq-row:last-child { border-bottom: none; }
.faq-trigger {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 20px; cursor: pointer; user-select: none; transition: background .12s;
}
.faq-trigger:hover { background: #F9FAFB; }
.faq-trigger .q-text { font-size: 13.5px; font-weight: 500; color: #111827; flex: 1; line-height: 1.45; padding-right: 12px; }
.faq-icon {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid #D1D5DB;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, transform .22s;
}
.faq-icon svg { width: 10px; height: 10px; stroke: #4B5563; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.faq-row.open .faq-icon { background: #111827; border-color: #111827; transform: rotate(45deg); }
.faq-row.open .faq-icon svg { stroke: #fff; }
.faq-body { display: none; padding: 2px 20px 16px; }
.faq-body p { font-size: 13px; color: #4B5563; line-height: 1.72; }
.faq-row.open .faq-body { display: block; }

/* ── AUTHOR BOX (dark) ── */
.author-box {
  background: #111827; border-radius: 14px; padding: 28px 26px;
  display: flex; gap: 18px; align-items: flex-start; margin-bottom: 36px;
}
.author-avi {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: #374151; border: 2px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.author-avi img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.author-avi svg { width: 26px; height: 26px; stroke: rgba(255,255,255,.7); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.author-name { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.author-role { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.5); margin-bottom: 10px; }
.author-bio { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.66; margin-bottom: 8px; }
.author-links { font-size: 12px; color: rgba(255,255,255,.4); }
.author-links a { color: rgba(255,255,255,.72); text-decoration: underline; text-underline-offset: 2px; }

/* ── NEWSLETTER CTA (dark card) ── */
.nl-card {
  background: #111827; border-radius: 14px;
  padding: 36px 32px; text-align: center; margin-bottom: 44px;
}
.nl-card h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; letter-spacing: -.01em; }
.nl-card p { font-size: 13.5px; color: rgba(255,255,255,.55); margin-bottom: 24px; line-height: 1.6; }
.nl-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.nl-inp {
  flex: 1; min-width: 200px; max-width: 260px; padding: 11px 18px;
  border: 1.5px solid rgba(255,255,255,.22); border-radius: 50px;
  font-size: 14px; font-family: inherit; outline: none;
  background: rgba(255,255,255,.07); color: #fff; transition: border-color .15s;
}
.nl-inp::placeholder { color: rgba(255,255,255,.3); }
.nl-inp:focus { border-color: rgba(255,255,255,.55); }
.nl-sub {
  background: #fff; color: #111827; border: none;
  padding: 11px 24px; border-radius: 50px;
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
  white-space: nowrap; transition: opacity .18s;
}
.nl-sub:hover { opacity: .88; }
.nl-note { font-size: 12px; color: rgba(255,255,255,.32); margin-bottom: 5px; }
.nl-signin { font-size: 12px; color: rgba(255,255,255,.38); }
.nl-signin a { color: rgba(255,255,255,.72); text-decoration: underline; }

/* ── COMMENT FORM (overrides WP default) ── */
.comment-wrap { border-top: 1px solid #E5E7EB; padding-top: 36px; margin-bottom: 10px; }
.comment-wrap h3 { font-size: 18px; font-weight: 700; color: #111827; margin-bottom: 20px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .page-wrap { grid-template-columns: 1fr; padding: 20px 16px 64px; }
  .share-col { flex-direction: row; position: static; padding-top: 0; margin-bottom: 16px; }
  .share-label { writing-mode: horizontal-tb; transform: none; margin-bottom: 0; margin-right: 6px; }
  .post-col { padding-left: 0; }
  .post-title { font-size: 22px; }
  .nl-form { flex-direction: column; align-items: stretch; }
  .nl-inp { max-width: 100%; }
}
@media (max-width: 460px) {
  .post-title { font-size: 19px; }
  .featured-img .food-word { font-size: 36px; }
}
