/* ─── Blog Article Styles ─────────────────────────────────────────────────── */

.blog-article {
  /* 72px = fixed nav height; 40px top breathing room */
  padding: 112px 24px 80px;
}

.blog-container {
  max-width: 780px;
  margin: 0 auto;
}

/* ─── Header ──────────────────────────────────────────────────────────────── */
.blog-header {
  margin-bottom: 40px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 4px;
}

.blog-reading-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.blog-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.author-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.author-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Body Links ──────────────────────────────────────────────────────────── */
.blog-article p a,
.blog-article li a,
.blog-article td a {
  color: var(--purple-600, #7C5CFC);
  text-decoration: underline;
  text-decoration-color: rgba(124, 92, 252, 0.35);
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.blog-article p a:hover,
.blog-article li a:hover,
.blog-article td a:hover {
  color: var(--purple-700, #6D28D9);
  text-decoration-color: var(--purple-600, #7C5CFC);
}

.blog-article p a:visited,
.blog-article li a:visited {
  color: var(--purple-700, #6D28D9);
}

/* ─── Table of Contents ───────────────────────────────────────────────────── */
.blog-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 48px;
}

.blog-toc h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-toc ol {
  padding-left: 20px;
  margin: 0;
}

.blog-toc li {
  margin: 8px 0;
}

.blog-toc a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.blog-toc a:hover {
  color: var(--accent);
}

/* ─── Content Sections ────────────────────────────────────────────────────── */
.blog-article section {
  margin-bottom: 48px;
}

.blog-article h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.blog-article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 12px;
}

.blog-article p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary, #5A5A7A);
  margin-bottom: 16px;
}

.blog-article ul, .blog-article ol {
  margin: 12px 0 20px;
  padding-left: 24px;
}

.blog-article li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary, #5A5A7A);
  margin: 6px 0;
}

.blog-article li strong {
  color: var(--text);
}

.blog-article code {
  background: var(--surface2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: #6d28d9;
}

/* ─── Image Placeholders ──────────────────────────────────────────────────── */
.image-placeholder {
  margin: 28px 0;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ─── SVG Infographics ────────────────────────────────────────────────────── */
.blog-infographic {
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}

.blog-infographic svg {
  display: block;
}

.blog-infographic text,
.blog-infographic tspan {
  pointer-events: none;
}

.placeholder-inner {
  padding: 48px 24px;
  text-align: center;
  background: var(--surface);
}

.placeholder-inner span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}

.placeholder-inner p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-style: italic;
}

.placeholder-inner small {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}

.video-placeholder {
  border-color: var(--purple);
}

.video-placeholder .placeholder-inner {
  background: var(--purple-dim);
}

/* ─── Callouts ────────────────────────────────────────────────────────────── */
.callout {
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  border-left: 4px solid;
}

.callout-info {
  background: rgba(59, 130, 246, 0.06);
  border-color: var(--blue);
}

.callout-warning {
  background: rgba(245, 158, 11, 0.06);
  border-color: var(--amber);
}

.callout-tip {
  background: rgba(16, 185, 129, 0.06);
  border-color: var(--emerald);
}

.callout strong {
  color: var(--text);
}

.callout p {
  margin: 0;
}

/* ─── Code Blocks ─────────────────────────────────────────────────────────── */
.code-block {
  margin: 24px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.code-header {
  padding: 10px 16px;
  background: var(--surface2);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.code-block pre {
  margin: 0;
  padding: 20px;
  background: var(--surface);
  overflow-x: auto;
}

.code-block code {
  font-size: 0.85rem;
  line-height: 1.6;
  background: none;
  padding: 0;
  color: var(--text-muted);
}

/* ─── Blog Table ──────────────────────────────────────────────────────────── */
.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 20px 0;
}

.blog-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--surface2);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--border);
}

.blog-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ─── CTA Box ─────────────────────────────────────────────────────────────── */
.blog-cta {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 48px 0;
}

.blog-cta h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.blog-cta p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.cta-button:hover {
  opacity: 0.85;
}

/* ─── Related Articles ────────────────────────────────────────────────────── */
.blog-related {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 48px;
}

.blog-related h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.blog-related ul {
  list-style: none;
  padding: 0;
}

.blog-related li {
  margin: 12px 0;
}

.blog-related a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.blog-related a:hover {
  opacity: 0.7;
}

/* ─── Breadcrumb ──────────────────────────────────────────────────────────── */
.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.82rem;
}

.blog-breadcrumb a {
  color: var(--purple-600, #7c5cfc);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}

.blog-breadcrumb a:hover {
  opacity: 0.75;
}

.blog-breadcrumb span {
  color: var(--text-muted, #9494B0);
}

.breadcrumb-sep {
  color: var(--border-hover, #D4D4E0);
  font-size: 0.95rem;
  line-height: 1;
}
