/* ============================================================
   TradesBill Blog
   Shared styles for /blog/ index and article pages
   ============================================================ */

.blog-body {
  overflow-x: hidden;
  background: #ffffff;
}

/* ── Blog index hero ─────────────────────────────────────── */
.blog-hero {
  background: #0f172a;
  padding: 64px 24px 56px;
  text-align: center;
}
.blog-hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 16px;
}
.blog-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.blog-hero p {
  font-size: 18px;
  color: #94a3b8;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Blog grid ───────────────────────────────────────────── */
.blog-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.blog-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.blog-card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f97316;
}
.blog-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin: 0;
}
.blog-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.blog-card-meta {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}
.blog-card-arrow {
  font-size: 13px;
  font-weight: 600;
  color: #f97316;
  margin-top: 4px;
}

/* ── Article layout ──────────────────────────────────────── */
.article-hero {
  background: #0f172a;
  padding: 56px 24px 48px;
}
.article-hero-inner {
  max-width: 740px;
  margin: 0 auto;
}
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
}
.article-breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
}
.article-breadcrumb a:hover { color: #f97316; }
.article-breadcrumb span { color: #475569; }
.article-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 16px;
}
.article-hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #64748b;
}
.article-meta strong { color: #94a3b8; }

/* ── Article body ────────────────────────────────────────── */
.article-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.article-body p {
  font-size: 17px;
  line-height: 1.8;
  color: #334155;
  margin: 0 0 24px;
}
.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}
.article-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 32px 0 12px;
}
.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-body li {
  font-size: 17px;
  line-height: 1.7;
  color: #334155;
}
.article-body strong { color: #0f172a; }
.article-body a { color: #f97316; text-decoration: underline; }
.article-body a:hover { color: #ea6c0a; }

/* ── Callout box ─────────────────────────────────────────── */
.callout {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f97316;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 32px 0;
}
.callout p {
  margin: 0;
  font-size: 16px;
  color: #7c2d12;
}
.callout strong { color: #9a3412; }

/* ── Checklist ───────────────────────────────────────────── */
.checklist {
  list-style: none;
  margin: 0 0 24px !important;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  color: #334155;
  line-height: 1.6;
}
.checklist li::before {
  content: "✓";
  font-weight: 700;
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── CTA box ─────────────────────────────────────────────── */
.article-cta {
  background: #0f172a;
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  margin: 48px 0;
}
.article-cta h3 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}
.article-cta p {
  color: #94a3b8;
  font-size: 16px;
  margin: 0 0 24px;
}
.article-cta .btn {
  display: inline-block;
  background: #f97316;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}
.article-cta .btn:hover { background: #ea6c0a; }

/* ── Related articles ────────────────────────────────────── */
.related-section {
  border-top: 1px solid #e2e8f0;
  padding: 48px 24px 64px;
  max-width: 740px;
  margin: 0 auto;
}
.related-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.related-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
}
.related-card:hover { border-color: #f97316; }
.related-card span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f97316;
  display: block;
  margin-bottom: 8px;
}
.related-card p {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  line-height: 1.4;
}

/* ── Article images ──────────────────────────────────────── */
.article-img {
  margin: 36px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.article-img img {
  width: 100%;
  height: auto;
  display: block;
}
.article-img figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: #64748b;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

/* Placeholder shown when screenshot hasn't been added yet */
.article-img-placeholder {
  margin: 36px 0;
  border-radius: 14px;
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  padding: 40px 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
}
.article-img-placeholder strong {
  display: block;
  color: #64748b;
  margin-bottom: 6px;
  font-size: 15px;
}

/* Hero image — full-width banner below the dark article header */
.article-hero-img {
  width: 100%;
  max-width: 740px;
  margin: 0 auto 0;
  display: block;
}
.article-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .article-cta { padding: 28px 20px; }
  .article-img { border-radius: 10px; }
}
