/* ============================================================
   BLOG — shared styles for listing and post pages
   ============================================================ */

/* ── BLOG HERO ─────────────────────────────────────────────── */
.blog-hero {
  background: var(--black);
  padding: 110px 0 80px;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 77, 0, 0.07) 0%,
    transparent 65%
  );
  top: -150px;
  left: -100px;
  pointer-events: none;
}
.blog-hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 16px;
}
.blog-hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-white);
  margin-bottom: 20px;
}
.blog-hero-sub {
  font-size: 1.05rem;
  color: #6b7280;
  max-width: 560px;
  line-height: 1.75;
}

/* ── BLOG LISTING ───────────────────────────────────────────── */
.blog-listing {
  padding: 80px 0 96px;
  background: var(--off-white);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 28px 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.blog-card:hover {
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.1),
    0 16px 48px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}
.blog-card-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-start;
}
.badge-orange {
  background: rgba(255, 77, 0, 0.1);
  color: var(--orange);
  border: 1px solid rgba(255, 77, 0, 0.2);
}
.badge-blue {
  background: rgba(26, 111, 255, 0.1);
  color: var(--blue);
  border: 1px solid rgba(26, 111, 255, 0.2);
}

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.blog-card-title a {
  color: var(--text-black);
  text-decoration: none;
}
.blog-card-title a:hover {
  color: var(--orange);
}
.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
}
.blog-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.blog-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--off-white);
  border: 1px solid var(--border-light);
  color: var(--text-dim);
}
.blog-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  margin-top: 4px;
  transition: letter-spacing 0.15s;
}
.blog-card-link:hover {
  letter-spacing: 0.02em;
}

/* ── POST LAYOUT ────────────────────────────────────────────── */
.post-hero {
  background: var(--black);
  padding: 110px 0 72px;
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(26, 111, 255, 0.07) 0%,
    transparent 65%
  );
  top: -150px;
  right: -100px;
  pointer-events: none;
}
.post-breadcrumb {
  font-size: 12px;
  color: #4b5563;
  margin-bottom: 20px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.post-breadcrumb a {
  color: #4b5563;
  text-decoration: none;
}
.post-breadcrumb a:hover {
  color: #9ca3af;
}
.post-breadcrumb-sep {
  color: #374151;
}
.post-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.post-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: var(--text-white);
  margin-bottom: 20px;
  max-width: 820px;
}
.post-byline {
  font-size: 13px;
  color: #6b7280;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.post-byline strong {
  color: #9ca3af;
}

/* ── POST BODY ──────────────────────────────────────────────── */
.post-body {
  background: var(--white);
  padding: 72px 0 80px;
}
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 960px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
}

.post-content {
  min-width: 0;
}
.post-content h2 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-black);
  margin: 48px 0 16px;
  padding-top: 8px;
}
.post-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-black);
  margin: 28px 0 10px;
}
.post-content p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 18px;
}
.post-content ul,
.post-content ol {
  margin: 0 0 18px 20px;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.8;
}
.post-content li {
  margin-bottom: 6px;
}
.post-content strong {
  color: var(--text-black);
}
.post-content a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content a:hover {
  color: var(--orange-light);
}
/* Buttons inside post-content must override the orange link colour */
.post-content a.btn {
  text-decoration: none;
}
.post-content a.btn-orange,
.post-content a.btn-lime {
  color: #fff;
}
.post-content a.btn-blue,
.post-content a.btn-purple {
  color: #fff;
}
.post-content a.btn-outline-light {
  color: #fff;
}
.post-content a.btn-ghost-dark {
  color: rgba(255, 255, 255, 0.6);
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.post-content th {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--text-black);
}
.post-content td {
  border: 1px solid var(--border-light);
  padding: 10px 14px;
  color: var(--text-body);
}
.post-content tr:nth-child(even) td {
  background: #fafafa;
}

/* Pull quote */
.pull-quote {
  border-left: 4px solid var(--orange);
  padding: 16px 20px;
  background: rgba(255, 77, 0, 0.04);
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
}
.pull-quote blockquote {
  font-size: 15px;
  font-style: italic;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0 0 6px;
}
.pull-quote cite {
  font-size: 12px;
  color: var(--text-dim);
  font-style: normal;
}

/* Reddit/X quote */
.social-quote {
  border-left: 3px solid var(--border-light);
  padding: 14px 18px;
  margin: 12px 0;
  border-radius: 0 10px 10px 0;
  background: var(--off-white);
}
.social-quote p {
  font-size: 14px;
  color: var(--text-body);
  margin: 0 0 6px;
  font-style: italic;
}
.social-quote cite {
  font-size: 12px;
  color: var(--text-dim);
  font-style: normal;
}

/* Warning / tip boxes */
.tip-box {
  background: rgba(255, 208, 0, 0.1);
  border: 1px solid rgba(255, 208, 0, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
}
.warn-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
}
.rejected-box {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0;
}
.rejected-box p {
  font-size: 14px;
  color: var(--text-body);
  margin: 6px 0;
}

/* Inline CTA */
.inline-cta {
  background: linear-gradient(
    135deg,
    rgba(255, 77, 0, 0.06) 0%,
    rgba(255, 77, 0, 0.02) 100%
  );
  border: 1px solid rgba(255, 77, 0, 0.2);
  border-radius: var(--r-card);
  padding: 24px 26px;
  margin: 36px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inline-cta.blue {
  background: linear-gradient(
    135deg,
    rgba(26, 111, 255, 0.06) 0%,
    rgba(26, 111, 255, 0.02) 100%
  );
  border-color: rgba(26, 111, 255, 0.2);
}
.inline-cta strong {
  font-size: 16px;
  color: var(--text-black);
}
.inline-cta p {
  font-size: 14px;
  color: var(--text-body);
  margin: 0;
}
.inline-cta small {
  font-size: 12px;
  color: var(--text-dim);
}

/* Checklist */
.checklist {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.checklist li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.6;
  border-bottom: 1px solid var(--border-light);
}
.checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* FAQ */
.faq-block {
  margin: 48px 0 0;
}
.faq-block h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-black);
}
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 18px 0;
}
.faq-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-black);
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0;
}

/* Sources */
.post-sources {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-dim);
}
.post-sources h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.post-sources ul {
  margin: 0;
  padding-left: 18px;
}
.post-sources li {
  margin-bottom: 6px;
}
.post-sources a {
  color: var(--text-dim);
}
.post-sources a:hover {
  color: var(--orange);
}

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: 88px;
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-card);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.sidebar-card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.sidebar-cta-btn {
  display: block;
  background: var(--orange);
  color: #fff;
  border-radius: 100px;
  padding: 12px 18px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 8px;
  transition:
    background 0.18s,
    transform 0.18s;
}
.sidebar-cta-btn:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
}
.sidebar-cta-btn.blue {
  background: var(--blue);
}
.sidebar-cta-btn.blue:hover {
  background: #1460e0;
}
.sidebar-small {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}
.sidebar-related a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.4;
}
.sidebar-related a:last-child {
  border-bottom: none;
}
.sidebar-related a:hover {
  color: var(--orange);
}

/* Nav active state */
.nav-links a.active {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 600px) {
  .post-hero {
    padding: 80px 0 52px;
  }
  .post-body {
    padding: 48px 0 56px;
  }
  .post-content h2 {
    font-size: 1.3rem;
    margin-top: 36px;
  }
  .inline-cta {
    padding: 18px;
  }
}
