/* ========================================================
   InfoSecPanda — Blog Article Styles
   ======================================================== */

/* Reading progress bar */
.reading-progress { position:fixed; top:0; left:0; right:0; height:3px; z-index:300; background:transparent; }
.reading-progress-bar { height:100%; width:0%; background:linear-gradient(90deg, var(--teal), #38bdf8); border-radius:0 2px 2px 0; transition:width .1s linear; box-shadow:0 0 8px rgba(45,212,191,.3); }

/* Article hero */
.article-hero { padding:100px 0 48px; border-bottom:1px solid var(--border); }
.breadcrumbs { font-family:var(--font-mono); font-size:.78rem; color:var(--text-dim); margin-bottom:24px; display:flex; gap:8px; align-items:center; min-height:44px; }
.breadcrumbs a { color:var(--text-dim); transition:color .2s; min-height:44px; display:inline-flex; align-items:center; }
.breadcrumbs a:hover { color:var(--teal); }
.article-hero h1 { font-size:clamp(1.6rem,4vw,2.4rem); letter-spacing:-.02em; line-height:1.15; margin-bottom:18px; max-width:820px; }
.article-hero h1 em { font-family:var(--font-editorial); font-style:italic; color:var(--teal); }
.article-lead { font-size:1.05rem; color:var(--text-secondary); line-height:1.7; max-width:780px; margin-bottom:28px; }
.article-meta-row { display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding-top:20px; border-top:1px solid var(--border); }
.meta-item { display:flex; align-items:center; gap:8px; font-size:.88rem; color:var(--text-secondary); }
.meta-icon { width:16px; height:16px; color:var(--teal); display:inline-flex; }
.meta-icon svg { width:100%; height:100%; stroke-width:1.75; fill:none; stroke-linecap:round; stroke-linejoin:round; stroke:currentColor; }
.meta-divider { width:1px; height:14px; background:var(--border); }

/* Layout */
.article-layout { display:grid; grid-template-columns:200px 1fr; gap:48px; padding:48px 0; max-width:1100px; margin:0 auto; }

/* Sticky TOC */
.toc { position:sticky; top:80px; align-self:start; }
.toc-label { font-family:var(--font-mono); font-size:.75rem; letter-spacing:.1em; color:var(--text-dim); text-transform:uppercase; margin-bottom:14px; padding-left:14px; }
.toc-list { list-style:none; display:flex; flex-direction:column; gap:2px; }
.toc-item a { display:block; padding:8px 14px; font-size:.85rem; color:var(--text-secondary); border-left:2px solid var(--border); transition:all .2s; min-height:44px; display:flex; align-items:center; }
.toc-item a:hover { color:var(--text-primary); border-left-color:var(--text-dim); }
.toc-item.active a { color:var(--teal); border-left-color:var(--teal); background:var(--teal-dim); }

/* Article body */
.article-body { max-width:720px; min-width:0; }
.article-body h2 { font-size:1.5rem; font-weight:700; margin:44px 0 16px; letter-spacing:-.015em; scroll-margin-top:80px; }
.article-body h2:first-child { margin-top:0; }
.article-body p { font-size:1rem; color:var(--text-secondary); line-height:1.85; margin-bottom:18px; }
.article-body strong { color:var(--text-primary); font-weight:500; }

/* Pullquote */
.article-body .pullquote { border-left:3px solid var(--teal); padding:24px 0 24px 28px; margin:28px 0; box-shadow:-4px 0 20px rgba(45,212,191,.05); }
.article-body .pullquote p { font-family:var(--font-editorial); font-style:italic; font-size:1.2rem; line-height:1.55; color:var(--text-primary); margin-bottom:0; }

/* Checklist component (used in multiple articles) */
.checklist {
  margin:36px 0; background:rgba(10,16,26,0.88);
  border:1px solid var(--border); border-radius:14px;
  padding:30px 32px; position:relative; overflow:hidden;
}
.checklist::before { content:''; position:absolute; top:0; left:0; width:30%; height:3px; background:var(--teal); }
.checklist::after { content:''; position:absolute; top:0; left:0; width:3px; height:30%; background:var(--teal); }
.cl-label { font-family:var(--font-mono); font-size:.78rem; letter-spacing:.12em; color:var(--teal); text-transform:uppercase; margin-bottom:6px; }
.cl-title { font-size:1.1rem; font-weight:700; color:var(--text-primary); margin-bottom:6px; }
.cl-sub { font-family:var(--font-editorial); font-style:italic; font-size:.92rem; color:var(--text-secondary); margin-bottom:22px; }
.cl-list { list-style:none; display:flex; flex-direction:column; gap:0; }
.cl-item { padding:14px 0; border-bottom:1px solid var(--border); display:flex; gap:14px; align-items:flex-start; }
.cl-item:last-child { border-bottom:none; }
.cl-check {
  width:22px; height:22px; border-radius:5px;
  background:var(--teal-dim); border:1px solid rgba(45,212,191,.15);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; margin-top:2px;
}
.cl-check svg {
  width:12px; height:12px; stroke:var(--teal); fill:none;
  stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round;
}
.cl-text { flex:1; min-width:0; }
.cl-q { font-size:.92rem; font-weight:600; color:var(--text-primary); line-height:1.4; margin-bottom:4px; }
.cl-a { font-size:.82rem; color:var(--text-secondary); line-height:1.55; }

@media (max-width:768px) {
  .checklist { padding:24px 20px; }
}

/* Share buttons */
.share-bar { display:flex; align-items:center; gap:10px; padding:20px 0; border-top:1px solid var(--border); margin-top:40px; }
.share-label { font-family:var(--font-mono); font-size:.78rem; color:var(--text-dim); margin-right:4px; }
.share-btn { width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:rgba(10,16,26,.88); border:1px solid var(--border); cursor:pointer; transition:all .2s; }
.share-btn:hover { border-color:rgba(45,212,191,.15); background:var(--teal-dim); }
.share-btn svg { width:18px; height:18px; stroke:var(--text-secondary); fill:none; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
.share-btn:hover svg { stroke:var(--teal); }

/* Related articles */
.related-section { padding:48px 0 80px; border-top:1px solid var(--border); margin-top:40px; }
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.related-card { padding:24px; text-decoration:none; color:inherit; display:flex; flex-direction:column; }
.related-card:hover h4 { color:var(--teal); }
.related-cat { font-family:var(--font-mono); font-size:.75rem; color:var(--teal); margin-bottom:8px; }
.related-card h4 { font-size:.95rem; font-weight:600; line-height:1.3; margin-bottom:8px; transition:color .2s; }
.related-card p { font-size:.84rem; color:var(--text-dim); }

/* Bottom CTA */
.bottom-cta { margin:48px 0; padding:36px; text-align:center; }
.bottom-cta h3 { font-size:1.3rem; font-weight:700; margin-bottom:8px; }
.bottom-cta h3 em { font-family:var(--font-editorial); font-style:italic; color:var(--teal); }
.bottom-cta p { color:var(--text-secondary); font-size:.92rem; margin-bottom:20px; max-width:480px; margin-left:auto; margin-right:auto; line-height:1.65; }

/* Responsive */
@media (max-width:900px) {
  .article-layout { grid-template-columns:1fr; gap:0; padding:32px 0; }
  .toc { display:none; }
  .related-grid { grid-template-columns:1fr; }
  .article-hero { padding:80px 0 36px; }
}
@media (max-width:768px) {
  .article-meta-row { gap:12px; }
  .meta-divider { display:none; }
  .share-bar { flex-wrap:wrap; }
}
