/* ============================================================
   FLEXO — Blog Stylesheet (extends style.css)
   ============================================================ */

/* ── Article Layout ──────────────────────────────────────────── */
.article-header {
  background: var(--dark);
  padding-top: calc(68px + clamp(48px, 8vw, 80px));
  padding-bottom: clamp(48px, 8vw, 72px);
  color: var(--white);
  position: relative; overflow: hidden;
}
.article-header::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(240,192,64,.1) 0%, transparent 70%);
  pointer-events: none;
}
.article-header-inner { position: relative; z-index: 1; max-width: 780px; }
.article-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--text-muted); margin-bottom: 20px;
}
.article-breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.article-breadcrumb a:hover { color: var(--gold); }
.article-breadcrumb span { color: var(--border-dark); }
.article-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.article-meta-item { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-muted); }
.article-meta-item strong { color: var(--text-light); }

/* ── Article Body ────────────────────────────────────────────── */
.article-body {
  max-width: 780px; margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 40px);
}
.article-body h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 800;
  margin: 44px 0 16px; color: var(--dark);
  padding-bottom: 12px; border-bottom: 2px solid var(--off-white);
}
.article-body h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 700;
  margin: 32px 0 12px; color: var(--dark-2);
}
.article-body p { margin-bottom: 18px; color: #2d2d3a; font-size: 1.02rem; line-height: 1.8; }
.article-body ul, .article-body ol {
  margin: 16px 0 20px 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px;
}
.article-body ul li, .article-body ol li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 1rem; color: #2d2d3a; line-height: 1.72;
}
.article-body ul li::before {
  content: '→'; color: var(--gold-dk); font-weight: 800; flex-shrink: 0; margin-top: 2px;
}
.article-body ol { counter-reset: list; }
.article-body ol li::before {
  counter-increment: list;
  content: counter(list) '.';
  color: var(--gold-dk); font-weight: 800; flex-shrink: 0; margin-top: 2px; min-width: 22px;
}
.article-body strong { color: var(--dark); font-weight: 700; }
.article-body em { color: var(--text-muted); font-style: normal; font-size: .95em; }
.article-body a { color: var(--gold-dk); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--gold); }

/* ── Info Box ────────────────────────────────────────────────── */
.info-box {
  background: rgba(240,192,64,.06); border: 1px solid rgba(240,192,64,.2);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px; margin: 28px 0;
}
.info-box p { margin: 0; color: #2d2d3a; font-size: .95rem; }
.info-box strong { color: var(--dark); }

.warning-box {
  background: rgba(239,68,68,.05); border: 1px solid rgba(239,68,68,.2);
  border-left: 4px solid #ef4444;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px; margin: 28px 0;
}

.tip-box {
  background: rgba(16,185,129,.06); border: 1px solid rgba(16,185,129,.2);
  border-left: 4px solid #10b981;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px; margin: 28px 0;
}

/* ── Article CTA ─────────────────────────────────────────────── */
.article-cta {
  background: var(--dark); border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 48px); text-align: center; margin: 48px 0 0;
  position: relative; overflow: hidden;
}
.article-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(240,192,64,.12) 0%, transparent 60%);
  pointer-events: none;
}
.article-cta h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 10px; position: relative; }
.article-cta p  { color: var(--text-light); margin-bottom: 24px; position: relative; font-size: .95rem; }
.article-cta .btn { position: relative; }

/* ── Table of Contents ───────────────────────────────────────── */
.toc {
  background: var(--off-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 24px 28px; margin: 0 0 36px;
}
.toc h4 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 14px; }
.toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 8px; }
.toc ol li::before { counter-increment: toc; content: counter(toc) '.'; color: var(--gold-dk); font-weight: 700; margin-right: 8px; }
.toc ol li { font-size: .9rem; }
.toc ol li a { color: var(--dark); transition: color var(--transition); }
.toc ol li a:hover { color: var(--gold-dk); }

/* ── Blog List ───────────────────────────────────────────────── */
.blog-hero {
  background: var(--dark);
  padding: calc(68px + clamp(40px, 6vw, 64px)) 0 clamp(40px, 6vw, 64px);
  color: var(--white);
}
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.blog-featured {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-featured-img {
  background: var(--dark-3); display: flex; align-items: center; justify-content: center;
  font-size: 4rem; padding: 48px;
}
.blog-featured-body { padding: 40px; background: var(--white); display: flex; flex-direction: column; justify-content: center; }
.blog-featured-body .blog-card-category { color: var(--gold-dk); }
.blog-featured-body h2 { font-size: 1.6rem; margin-bottom: 12px; }
.blog-featured-body p { color: var(--text-muted); margin-bottom: 20px; font-size: .95rem; }

/* ── Responsive blog ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 160px; }
  .blog-grid { grid-template-columns: 1fr; }
}
