/* ═══════════════════════════════════════════════════
   CYBER NATE — shared-blog.css
   Level 3 Intelligence Document Styles
   ═══════════════════════════════════════════════════ */

/* ── ARTICLE HERO BANNER ──────────────────────────── */
.art-hero {
  padding: 120px 0 0;
  position: relative; z-index: 1;
}
.art-banner {
  width: 100%; height: 280px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-end;
}
.art-banner-bg {
  position: absolute; inset: 0;
  background: var(--bg2);
}
.art-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,.08), rgba(232,168,32,.05));
}
/* Scanline on banner */
.art-banner::before {
  content: '';
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,212,255,.018) 3px, rgba(0,212,255,.018) 4px
  );
}
.art-banner-content {
  position: relative; z-index: 2;
  width: 100%; padding: 2rem 0;
}
.art-banner svg {
  position: absolute; inset: 0; z-index: 0;
  opacity: .12; pointer-events: none;
}

/* ── ARTICLE META ROW ─────────────────────────────── */
.art-meta {
  display: flex; align-items: center; gap: .5rem;
  flex-wrap: wrap; margin-bottom: .85rem;
}
.art-category {
  font-family: var(--mono); font-size: .65rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 2px;
}
.cat-ti    { background: rgba(232,168,32,.12);  color: var(--gold);   border: 1px solid rgba(232,168,32,.28); }
.cat-dfir  { background: rgba(255,181,71,.1);   color: var(--amber);  border: 1px solid rgba(255,181,71,.28); }
.cat-soc   { background: rgba(0,212,255,.1);    color: var(--cyan);   border: 1px solid rgba(0,212,255,.25); }
.cat-osint { background: rgba(0,229,122,.08);   color: var(--green);  border: 1px solid rgba(0,229,122,.22); }
.cat-aware { background: rgba(167,139,250,.1);  color: #c4b5fd;       border: 1px solid rgba(167,139,250,.25); }
.cat-dev   { background: rgba(125,211,252,.08); color: #7dd3fc;       border: 1px solid rgba(125,211,252,.22); }
.cat-acad  { background: rgba(167,139,250,.08); color: #a78bfa;       border: 1px solid rgba(167,139,250,.2); }
.cat-career{ background: rgba(0,229,122,.08);   color: var(--green);  border: 1px solid rgba(0,229,122,.22); }

.art-meta-sep { color: var(--border2); font-family: var(--mono); font-size: .7rem; }
.art-read-time, .art-date, .art-author {
  font-family: var(--mono); font-size: .65rem; color: var(--text3);
}
.art-read-time { color: var(--cyan); }

/* ── ARTICLE TITLE ────────────────────────────────── */
.art-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400; line-height: 1.08;
  letter-spacing: .02em; color: var(--text);
  margin-bottom: .85rem;
}

/* ── ARTICLE LAYOUT ───────────────────────────────── */
.art-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 28px 80px;
  position: relative; z-index: 1;
}
.art-body { min-width: 0; }
.art-sidebar { position: sticky; top: 90px; }

/* ── EXECUTIVE SUMMARY ────────────────────────────── */
.exec-summary {
  background: linear-gradient(135deg, rgba(0,212,255,.05), rgba(232,168,32,.03));
  border: 1px solid var(--border2);
  border-left: 4px solid var(--cyan);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.5rem;
  position: relative; overflow: hidden;
}
.exec-summary::before {
  content: 'EXECUTIVE SUMMARY';
  font-family: var(--mono); font-size: .58rem;
  color: var(--cyan); letter-spacing: .14em;
  display: block; margin-bottom: .6rem;
}
.exec-summary p {
  font-size: .9rem; color: var(--text2); line-height: 1.75;
  margin: 0;
}

/* ── KEY FINDINGS ─────────────────────────────────── */
.key-findings {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.5rem;
}
.key-findings-label {
  font-family: var(--mono); font-size: .6rem;
  color: var(--gold); letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: .75rem;
  display: flex; align-items: center; gap: 8px;
}
.key-findings-label::before {
  content: ''; width: 16px; height: 1.5px;
  background: var(--gold); border-radius: 1px;
}
.findings-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 7px;
}
.findings-list li {
  font-size: .86rem; color: var(--text2);
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.55;
}
.findings-list li::before {
  content: '•'; color: var(--gold);
  font-family: var(--mono); flex-shrink: 0;
  margin-top: .08rem;
}

/* ── ARTICLE BODY TYPOGRAPHY ──────────────────────── */
.art-prose h2 {
  font-family: var(--display);
  font-size: 1.5rem; font-weight: 400;
  color: var(--text); margin: 2.5rem 0 .85rem;
  letter-spacing: .02em; line-height: 1.2;
}
.art-prose h3 {
  font-family: var(--body);
  font-size: 1rem; font-weight: 700;
  color: var(--cyan); margin: 2rem 0 .65rem;
  display: flex; align-items: center; gap: 10px;
}
.art-prose h3::before {
  content: '//'; font-family: var(--mono);
  font-size: .75rem; color: var(--border2);
  font-weight: 400;
}
.art-prose p {
  font-size: .93rem; color: var(--text2);
  line-height: 1.82; margin-bottom: 1.1rem;
}
.art-prose p strong { color: var(--text); font-weight: 600; }
.art-prose a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(0,212,255,.3); transition: border-color var(--t); }
.art-prose a:hover { border-color: var(--cyan); }
.art-prose ul, .art-prose ol {
  padding-left: 0; list-style: none;
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 1.25rem;
}
.art-prose ul li, .art-prose ol li {
  font-size: .9rem; color: var(--text2);
  line-height: 1.65; display: flex;
  align-items: flex-start; gap: 10px;
}
.art-prose ul li::before {
  content: '→'; color: var(--cyan);
  font-family: var(--mono); font-size: .78rem;
  flex-shrink: 0; margin-top: .15rem;
}
.art-prose ol { counter-reset: art-ol; }
.art-prose ol li { counter-increment: art-ol; }
.art-prose ol li::before {
  content: counter(art-ol) '.';
  color: var(--cyan); font-family: var(--mono);
  font-size: .75rem; flex-shrink: 0;
  min-width: 18px; margin-top: .12rem;
}
.art-prose strong { color: var(--text); font-weight: 600; }

/* ── INLINE CODE & CODE BLOCKS ────────────────────── */
.art-prose code {
  font-family: var(--mono); font-size: .8rem;
  background: rgba(0,212,255,.07);
  color: var(--cyan); padding: 1px 6px;
  border-radius: 3px; border: 1px solid rgba(0,212,255,.15);
}
.art-code-block {
  background: #020810;
  border: 1px solid rgba(0,212,255,.18);
  border-radius: var(--r); overflow: hidden;
  margin: 1.5rem 0; font-family: var(--mono);
}
.art-code-label {
  background: rgba(0,212,255,.06);
  padding: 8px 14px; font-size: .62rem;
  color: var(--text3); letter-spacing: .08em;
  border-bottom: 1px solid rgba(0,212,255,.1);
  display: flex; align-items: center; gap: 8px;
}
.art-code-label::before {
  content: ''; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
}
.art-code-body {
  padding: 1.1rem 1.4rem;
  font-size: .78rem; line-height: 1.7;
  color: var(--text2); overflow-x: auto;
  position: relative;
}
.art-code-body::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,212,255,.012) 2px, rgba(0,212,255,.012) 3px
  );
}

/* ── IOC TABLE ────────────────────────────────────── */
.ioc-table-wrap {
  background: #020810;
  border: 1px solid rgba(0,212,255,.18);
  border-radius: var(--r); overflow: hidden;
  margin: 1.5rem 0;
}
.ioc-table-label {
  background: rgba(255,77,109,.08);
  padding: 9px 14px; font-family: var(--mono);
  font-size: .62rem; color: var(--red);
  letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,77,109,.2);
  display: flex; align-items: center; gap: 8px;
}
.ioc-table-label::before {
  content: '⚠'; font-size: .75rem;
}
.ioc-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--mono); font-size: .75rem;
}
.ioc-table th {
  padding: .55rem 1rem; text-align: left;
  font-size: .6rem; color: var(--text3);
  letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(255,255,255,.02);
}
.ioc-table td {
  padding: .5rem 1rem; color: var(--text2);
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
}
.ioc-table tr:last-child td { border-bottom: none; }
.ioc-table .ioc-type {
  color: var(--amber); font-size: .65rem;
}
.ioc-table .ioc-val { color: var(--red); word-break: break-all; }
.ioc-table .ioc-desc { color: var(--text3); font-size: .7rem; }

/* ── TLDR / CALLOUT ───────────────────────────────── */
.art-callout {
  background: rgba(0,212,255,.04);
  border: 1px solid var(--border2);
  border-radius: var(--r); padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.art-callout-label {
  font-family: var(--mono); font-size: .6rem;
  color: var(--cyan); letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: .5rem;
}
.art-callout p { font-size: .88rem; color: var(--text2); margin: 0; line-height: 1.65; }
.art-callout.warn { background: rgba(255,181,71,.05); border-color: rgba(255,181,71,.25); }
.art-callout.warn .art-callout-label { color: var(--amber); }
.art-callout.danger { background: rgba(255,77,109,.04); border-color: rgba(255,77,109,.2); }
.art-callout.danger .art-callout-label { color: var(--red); }

/* ── MITRE TABLE ──────────────────────────────────── */
.mitre-grid {
  display: grid; gap: .5rem;
  margin: 1.25rem 0;
}
.mitre-row {
  display: grid; grid-template-columns: 110px 130px 1fr;
  gap: .75rem; padding: .65rem 1rem;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: var(--r2); align-items: center;
}
.mitre-id {
  font-family: var(--mono); font-size: .7rem;
  color: var(--cyan);
}
.mitre-tactic {
  font-family: var(--mono); font-size: .65rem;
  color: var(--amber);
}
.mitre-desc { font-size: .82rem; color: var(--text2); }

/* ── SECTION DIVIDER ──────────────────────────────── */
.art-section-rule {
  display: flex; align-items: center; gap: 1rem;
  margin: 2.5rem 0;
}
.art-section-rule::before, .art-section-rule::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.art-section-rule span {
  font-family: var(--mono); font-size: .6rem;
  color: var(--text3); letter-spacing: .12em;
  text-transform: uppercase; white-space: nowrap;
}

/* ── SIDEBAR ──────────────────────────────────────── */
.art-sidebar-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.25rem;
  margin-bottom: .85rem;
}
.art-sidebar-card h4 {
  font-family: var(--mono); font-size: .6rem;
  color: var(--text3); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .75rem;
}
.art-sidebar-card ul {
  list-style: none; display: flex;
  flex-direction: column; gap: 5px;
}
.art-sidebar-card ul li {
  font-family: var(--mono); font-size: .7rem;
  color: var(--text2); padding: .35rem 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; transition: color var(--t);
}
.art-sidebar-card ul li:last-child { border-bottom: none; }
.art-sidebar-card ul li:hover { color: var(--cyan); }
.art-sidebar-card ul li::before {
  content: '#'; color: var(--text3); font-size: .65rem;
}
.author-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.25rem;
  text-align: center; margin-bottom: .85rem;
  position: relative; overflow: hidden;
}
.author-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--cyan), var(--gold));
}
.author-name {
  font-family: var(--mono); font-size: .78rem;
  font-weight: 600; color: var(--text); margin-bottom: 2px;
}
.author-creds {
  font-family: var(--mono); font-size: .6rem;
  color: var(--text3); margin-bottom: .75rem; line-height: 1.5;
}
.author-tags {
  display: flex; flex-wrap: wrap; gap: 4px; justify-content: center;
}

/* ── REFERENCES ───────────────────────────────────── */
.art-references {
  border-top: 1px solid var(--border);
  margin-top: 3rem; padding-top: 2rem;
}
.art-references h3 {
  font-family: var(--mono); font-size: .65rem;
  color: var(--text3); letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.art-references ol {
  list-style: decimal; padding-left: 1.25rem;
  display: flex; flex-direction: column; gap: 6px;
}
.art-references ol li {
  font-size: .82rem; color: var(--text3); line-height: 1.55;
}
.art-references ol li a {
  color: var(--cyan); text-decoration: none;
  border-bottom: 1px solid rgba(0,212,255,.2);
}

/* ── ARTICLE FOOTER ───────────────────────────────── */
.art-footer-actions {
  display: flex; gap: .75rem; flex-wrap: wrap;
  padding: 1.5rem 0; border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.art-author-byline {
  font-family: var(--mono); font-size: .75rem;
  color: var(--text3); line-height: 1.55; margin-bottom: 1.25rem;
}
.art-author-byline strong { color: var(--text); }

/* ── RELATED POSTS ────────────────────────────────── */
.related-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
}
.related-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 1rem 1.1rem;
  text-decoration: none; color: inherit;
  transition: all var(--t); display: block;
}
.related-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.related-card .r-cat {
  font-family: var(--mono); font-size: .58rem;
  color: var(--text3); letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: .35rem;
}
.related-card h4 {
  font-size: .85rem; font-weight: 600;
  color: var(--text); line-height: 1.35;
}

/* ── BLOG CARD (index/listing) ────────────────────── */
.blog-cover {
  height: 160px; overflow: hidden;
  border-radius: var(--r) var(--r) 0 0;
  position: relative;
}
.blog-cover svg { width: 100%; height: 100%; display: block; }
.blog-card-body { padding: 1.25rem 1.4rem; }
.blog-card-footer {
  padding: .75rem 1.4rem;
  background: rgba(0,0,0,.12);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
}
.blog-card-footer .bc-meta {
  font-family: var(--mono); font-size: .6rem;
  color: var(--text3); display: flex; gap: .65rem;
}
.blog-card-footer .bc-arrow {
  font-family: var(--mono); font-size: .65rem;
  color: var(--text3); transition: color var(--t);
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media(max-width:900px){
  .art-layout { grid-template-columns: 1fr; }
  .art-sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr; }
  .mitre-row { grid-template-columns: 90px 1fr; }
  .mitre-tactic { display: none; }
}
@media(max-width:600px){
  .art-banner { height: 200px; }
  .art-title { font-size: 1.6rem; }
}
