/* ============================================
   blog.css — Shared stylesheet for all blog pages
   DexScanr v1 — Single source of truth
   ============================================ */

/* ── RESET ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{font-size:16px;-webkit-font-smoothing:antialiased;scroll-behavior:smooth;}
body{background:#080b10;color:#f0f0f0;font-family:'Inter',sans-serif;min-height:100vh;overflow-x:hidden;}
a{text-decoration:none;color:inherit;}

/* ── NAV ── */
nav{position:fixed;top:0;left:0;right:0;z-index:200;height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:rgba(8,11,16,0.92);backdrop-filter:blur(20px);border-bottom:1px solid rgba(249,115,22,0.12);}
.nav-logo{display:flex;align-items:center;gap:12px;text-decoration:none;}
.nav-logo-img,.nav-logo img{width:80px;height:80px;object-fit:contain;filter:drop-shadow(0 0 8px rgba(249,115,22,0.6));}
.nav-logo-name,.nav-logo span{font-family:'Space Mono',monospace;font-size:15px;font-weight:700;color:#F97316;}
.nav-links{display:flex;align-items:center;gap:28px;}
.nav-links a{font-family:'Inter',sans-serif;font-size:14px;font-weight:500;color:#888;transition:color 0.15s;}
.nav-links a:hover{color:#f0f0f0;}
.nav-links a.active{color:#F97316;}
.nav-cta{font-family:'Inter',sans-serif!important;font-size:13px!important;font-weight:800!important;color:#fff!important;background:linear-gradient(135deg,#FB923C 0%,#F97316 50%,#EA6C00 100%);border:none;border-radius:8px;padding:9px 20px;cursor:pointer;letter-spacing:0.04em;transition:all 0.2s;white-space:nowrap;display:inline-flex!important;align-items:center;gap:7px;box-shadow:0 2px 0 #c45a00,0 4px 12px rgba(249,115,22,0.35);text-shadow:0 1px 0 rgba(255,255,255,0.15);transform:translateY(0);}
.nav-cta:hover{background:linear-gradient(135deg,#FDAB6A 0%,#FB923C 50%,#F97316 100%);box-shadow:0 1px 0 #c45a00,0 2px 8px rgba(249,115,22,0.4);transform:translateY(1px);}

/* ── ARTICLE HERO ── */
.article-hero,.hero{position:relative;padding:130px 24px 60px;overflow:hidden;}
.article-hero-glow,.hero-bg{position:absolute;top:0;left:50%;transform:translateX(-50%);width:700px;height:400px;border-radius:50%;background:radial-gradient(circle,rgba(249,115,22,0.1) 0%,rgba(249,115,22,0.03) 50%,transparent 70%);pointer-events:none;}
.article-hero-grid,.hero-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(249,115,22,0.03) 1px,transparent 1px),linear-gradient(90deg,rgba(249,115,22,0.03) 1px,transparent 1px);background-size:60px 60px;pointer-events:none;mask-image:radial-gradient(ellipse 80% 80% at 50% 50%,black 0%,transparent 100%);}
.article-hero-inner,.hero-inner{position:relative;z-index:10;max-width:780px;margin:0 auto;}

/* ── BREADCRUMB ── */
.article-breadcrumb,.breadcrumb{display:flex;align-items:center;gap:8px;margin-bottom:24px;}
.article-breadcrumb a,.breadcrumb a{font-family:'Space Mono',monospace;font-size:11px;color:#444;transition:color 0.15s;}
.article-breadcrumb a:hover,.breadcrumb a:hover{color:#F97316;}
.article-breadcrumb span,.breadcrumb span{font-family:'Space Mono',monospace;font-size:11px;color:#333;}

/* ── ARTICLE TAG ── */
.article-tag{display:inline-flex;align-items:center;gap:6px;background:rgba(249,115,22,0.1);border:1px solid rgba(249,115,22,0.2);border-radius:100px;padding:5px 14px;font-family:'Space Mono',monospace;font-size:10px;font-weight:700;color:#F97316;letter-spacing:0.1em;margin-bottom:20px;}
.tag-blue{background:rgba(59,130,246,0.15);color:#60a5fa;border:1px solid rgba(59,130,246,0.3);}
.tag-red{background:rgba(239,68,68,0.1);border:1px solid rgba(239,68,68,0.2);color:#ef4444;}
.tag-green{background:rgba(34,197,94,0.1);border:1px solid rgba(34,197,94,0.2);color:#22c55e;}

/* ── ARTICLE HERO H1 ── */
.article-hero h1,.hero h1{font-family:'Inter',sans-serif;font-size:48px;font-weight:900;line-height:1.1;letter-spacing:-1.5px;color:#f0f0f0;margin-bottom:20px;}
.article-hero h1 span,.hero h1 span{color:#F97316;}

/* ── ARTICLE META ── */
.article-meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap;}
.article-meta span{font-family:'Space Mono',monospace;font-size:11px;color:#444;}
.article-meta-dot,.meta-dot{width:3px;height:3px;border-radius:50%;background:#333;}

/* ── ARTICLE WRAP + BODY ── */
.article-wrap{max-width:780px;margin:0 auto;padding:60px 24px 100px;}
.article-body{max-width:780px;margin:0 auto;padding:64px 24px;}
.article-body h2{font-family:'Inter',sans-serif;font-size:26px;font-weight:800;color:#f0f0f0;margin:48px 0 16px;letter-spacing:-0.3px;padding-bottom:12px;border-bottom:1px solid rgba(249,115,22,0.15);}
.article-body h3{font-family:'Inter',sans-serif;font-size:18px;font-weight:700;color:#f0f0f0;margin:32px 0 12px;}
.article-body p{font-size:16px;color:#888;line-height:1.8;margin-bottom:20px;}
.article-body strong{color:#f0f0f0;}
.article-body ul,.article-body ol{margin:0 0 20px 24px;}
.article-body li{font-size:16px;color:#888;line-height:1.8;margin-bottom:8px;}
.article-body li strong{color:#f0f0f0;}
.article-body a{color:#F97316;border-bottom:1px solid rgba(249,115,22,0.3);transition:border-color 0.15s;}
.article-body a:hover{border-color:#F97316;}

/* ── CALLOUTS ── */
.callout{border-radius:12px;padding:20px 24px;margin:28px 0;display:flex;gap:16px;align-items:flex-start;}
.callout-icon{flex-shrink:0;margin-top:2px;}
.callout-label{font-family:'Space Mono',monospace;font-size:10px;font-weight:700;letter-spacing:0.1em;margin-bottom:8px;display:block;}
.callout-body p,.callout p{font-size:15px;color:#aaa;margin:0;line-height:1.7;}
.callout.orange{background:rgba(249,115,22,0.06);border:1px solid rgba(249,115,22,0.2);border-left:3px solid #F97316;}
.callout.orange .callout-label,.callout.orange .callout-body strong{color:#F97316;}
.callout.red,.callout.danger{background:rgba(239,68,68,0.06);border:1px solid rgba(239,68,68,0.2);border-left:3px solid #ef4444;}
.callout.red .callout-label,.callout.danger .callout-label,.callout.red .callout-body strong{color:#ef4444;}
.callout.green,.callout.tip{background:rgba(34,197,94,0.06);border:1px solid rgba(34,197,94,0.2);border-left:3px solid #22c55e;}
.callout.green .callout-label,.callout.tip .callout-label,.callout.green .callout-body strong{color:#22c55e;}

/* ── CODE ── */
code{font-family:'Space Mono',monospace;font-size:0.85rem;background:#0d1117;color:#F97316;padding:2px 8px;border-radius:4px;border:1px solid rgba(249,115,22,0.2);}
.code-block{background:#0d1117;border:1px solid rgba(249,115,22,0.15);border-radius:12px;padding:24px;margin:28px 0;overflow-x:auto;}
.code-block-label{font-family:'Space Mono',monospace;font-size:10px;color:#444;letter-spacing:0.1em;margin-bottom:12px;}
.code-block code{font-family:'Space Mono',monospace;font-size:13px;color:#f0f0f0;line-height:1.7;white-space:pre;background:none;border:none;padding:0;}
.code-block .comment{color:#555;}
.code-block .highlight,.code-highlight{color:#F97316;}
.code-danger{color:#ef4444;}

/* ── PULL QUOTE ── */
.pull-quote{border-left:3px solid #F97316;padding:16px 24px;margin:36px 0;background:rgba(249,115,22,0.04);border-radius:0 12px 12px 0;}
.pull-quote p{font-family:'Inter',sans-serif;font-size:22px;font-weight:700;color:#f0f0f0;line-height:1.4;font-style:italic;}

/* ── SCAN CTA ── */
.scan-cta{position:relative;background:linear-gradient(135deg,rgba(249,115,22,0.08),rgba(249,115,22,0.03));border:1px solid rgba(249,115,22,0.2);border-radius:16px;padding:40px;text-align:center;margin:48px 0;overflow:hidden;}
.scan-cta h3{font-family:'Inter',sans-serif;font-size:22px;font-weight:800;color:#f0f0f0;margin-bottom:12px;}
.scan-cta p{font-size:14px;color:#666;margin-bottom:24px;line-height:1.7;}
.scan-cta-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;}
.cta-btn{font-family:'Inter',sans-serif;font-size:13px;font-weight:800;color:#fff!important;background:linear-gradient(135deg,#FB923C 0%,#F97316 50%,#EA6C00 100%);padding:12px 28px;border-radius:10px;text-decoration:none!important;display:inline-flex;align-items:center;gap:8px;box-shadow:0 2px 0 #c45a00,0 4px 12px rgba(249,115,22,0.35);text-shadow:0 1px 0 rgba(0,0,0,0.2);transition:all 0.15s;}
.cta-btn:hover{transform:translateY(1px);box-shadow:0 1px 0 #c45a00,0 2px 8px rgba(249,115,22,0.3);}
.btn-primary{font-family:'Space Mono',monospace;font-size:0.85rem;font-weight:700;background:#F97316;color:#080b10;padding:12px 28px;border-radius:10px;text-decoration:none;transition:all 0.2s;box-shadow:0 4px 20px rgba(249,115,22,0.3);display:inline-block;}
.btn-primary:hover{background:#FB923C;transform:translateY(-2px);box-shadow:0 8px 28px rgba(249,115,22,0.45);}
.btn-outline{font-family:'Space Mono',monospace;font-size:0.85rem;font-weight:700;background:transparent;color:#F97316;padding:12px 28px;border-radius:10px;text-decoration:none;border:2px solid rgba(249,115,22,0.4);transition:all 0.2s;display:inline-block;}
.btn-outline:hover{border-color:#F97316;background:rgba(249,115,22,0.08);transform:translateY(-2px);}

/* ── RISK GRID ── */
.risk-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:28px 0;}
.risk-card{background:#0d1117;border:1px solid rgba(255,255,255,0.06);border-radius:12px;padding:20px;}
.risk-card-label{font-family:'Space Mono',monospace;font-size:10px;font-weight:700;letter-spacing:0.08em;margin-bottom:8px;}
.risk-card-label.red{color:#ef4444;}
.risk-card-label.orange{color:#F97316;}
.risk-card h4{font-size:14px;font-weight:700;color:#f0f0f0;margin-bottom:6px;}
.risk-card p{font-size:13px;color:#666;line-height:1.6;margin:0;}

/* ── RELATED ── */
.related,.related-section{max-width:780px;margin:0 auto;padding:0 24px 80px;}
.related{border-top:1px solid rgba(255,255,255,0.06);padding-top:48px;margin-top:48px;}
.related h3,.related-section h3{font-family:'Space Mono',monospace;font-size:12px;font-weight:700;color:#444;letter-spacing:0.1em;margin-bottom:24px;text-transform:uppercase;}
.related-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;}
.related-card{background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.07);border-radius:14px;padding:24px;text-decoration:none;transition:border-color 0.2s,transform 0.2s;display:block;}
.related-card:hover{border-color:rgba(249,115,22,0.3);transform:translateY(-3px);}
.related-tag,.related-card-tag{font-family:'Space Mono',monospace;font-size:10px;font-weight:700;color:#F97316;letter-spacing:0.08em;margin-bottom:8px;display:block;}
.related-card h4{font-family:'Inter',sans-serif;font-size:14px;font-weight:700;color:#f0f0f0;line-height:1.4;margin-bottom:8px;}
.related-card p{font-size:13px;color:#666;line-height:1.6;}

/* ── FOOTER ── */
footer,.footer{background:rgba(0,0,0,0.3);border-top:1px solid rgba(255,255,255,0.06);padding:32px 24px;text-align:center;}
.footer-inner{max-width:900px;margin:0 auto;}
.footer-logo{display:flex;align-items:center;gap:10px;justify-content:center;margin-bottom:16px;}
.footer-logo img{width:28px;height:28px;filter:drop-shadow(0 0 6px rgba(249,115,22,0.6));}
.footer-logo span{font-family:'Space Mono',monospace;font-size:14px;font-weight:700;color:#F97316;}
.footer-links{display:flex;gap:24px;justify-content:center;flex-wrap:wrap;margin-bottom:16px;}
.footer-links a{font-family:'Space Mono',monospace;font-size:12px;color:#444;transition:color 0.15s;}
.footer-links a:hover{color:#F97316;}
.footer-copy{font-family:'Space Mono',monospace;font-size:11px;color:#333;}

/* ── RESPONSIVE ── */
@media(max-width:1024px){
  .nav-links{display:none;}
  .hamburger{display:flex!important;}
}
@media(max-width:768px){
  .article-hero h1,.hero h1{font-size:32px;letter-spacing:-0.5px;}
  .related-grid{grid-template-columns:1fr;}
  .risk-grid{grid-template-columns:1fr;}
  .pull-quote p{font-size:18px;}
  .scan-cta{padding:32px 24px;}
  .scan-cta-btns{flex-direction:column;align-items:center;}
}
@media(max-width:480px){
  nav{padding:0 16px;}
  .article-hero h1,.hero h1{font-size:26px;}
  .article-body,.article-wrap{padding-left:16px;padding-right:16px;}
}

/* ── ARTICLE BODY TYPOGRAPHY ── */
.article-body h2{font-family:'Inter',sans-serif;font-size:26px;font-weight:800;color:#f0f0f0;margin:48px 0 16px;letter-spacing:-0.3px;}
.article-body h3{font-family:'Inter',sans-serif;font-size:18px;font-weight:700;color:#f0f0f0;margin:32px 0 12px;}
.article-body p{font-size:16px;color:#888;line-height:1.8;margin-bottom:20px;}
.article-body strong{color:#f0f0f0;}
.article-body ul,.article-body ol{margin:0 0 20px 24px;}
.article-body li{font-size:16px;color:#888;line-height:1.8;margin-bottom:8px;}
.article-body li strong{color:#f0f0f0;}
.article-body a{color:#F97316;border-bottom:1px solid rgba(249,115,22,0.3);transition:border-color 0.15s;}
.article-body a:hover{border-color:#F97316;}
.article-body code{font-family:'Space Mono',monospace;background:#0d1117;color:#F97316;padding:2px 7px;border-radius:4px;font-size:0.85em;border:1px solid rgba(249,115,22,0.2);}

/* ── CALLOUT VARIANTS ── */
.callout{background:rgba(249,115,22,0.06);border:1px solid rgba(249,115,22,0.2);border-left:3px solid #F97316;border-radius:0 12px 12px 0;padding:20px 24px;margin:28px 0;}
.callout-label{font-family:'Space Mono',monospace;font-size:10px;font-weight:700;color:#F97316;letter-spacing:0.1em;margin-bottom:8px;}
.callout p{font-size:15px;color:#aaa;margin:0;line-height:1.7;}
.callout.danger{background:rgba(239,68,68,0.06);border-color:rgba(239,68,68,0.2);border-left-color:#ef4444;}
.callout.danger .callout-label{color:#ef4444;}
.callout.tip{background:rgba(34,197,94,0.06);border-color:rgba(34,197,94,0.2);border-left-color:#22c55e;}
.callout.tip .callout-label{color:#22c55e;}
.callout-title{font-family:'Space Mono',monospace;font-size:10px;font-weight:700;letter-spacing:0.1em;margin-bottom:8px;}
.callout.orange .callout-title{color:#F97316;}
.callout.red .callout-title{color:#ef4444;}
.callout.green .callout-title{color:#22c55e;}

/* ── CODE BLOCKS ── */
.code-block{background:#0d1117;border:1px solid rgba(255,255,255,0.06);border-radius:12px;padding:24px;margin:28px 0;overflow-x:auto;}
.code-block-label{font-family:'Space Mono',monospace;font-size:10px;color:#444;letter-spacing:0.1em;margin-bottom:12px;}
.code-block code{font-family:'Space Mono',monospace;font-size:13px;color:#f0f0f0;line-height:1.7;white-space:pre;}
.code-highlight{color:#F97316;}
.code-danger{color:#ef4444;}

/* ── PULL QUOTE ── */
.pull-quote{border-left:3px solid #F97316;padding:4px 0 4px 28px;margin:36px 0;}
.pull-quote p{font-family:'Inter',sans-serif;font-size:22px;font-weight:700;color:#f0f0f0;line-height:1.4;font-style:italic;}

/* ── COMPARE TABLE ── */
.compare-table{width:100%;border-collapse:collapse;margin:28px 0;border-radius:12px;overflow:hidden;}
.compare-table th{background:#0d1117;font-family:'Space Mono',monospace;font-size:11px;font-weight:700;color:#F97316;letter-spacing:0.08em;padding:14px 20px;text-align:left;border-bottom:1px solid rgba(255,255,255,0.06);}
.compare-table td{font-size:14px;color:#888;padding:14px 20px;border-bottom:1px solid rgba(255,255,255,0.04);line-height:1.6;}
.compare-table tr:last-child td{border-bottom:none;}
.compare-table tr:nth-child(even) td{background:rgba(255,255,255,0.01);}
.compare-table td strong{color:#f0f0f0;}
.td-soft{color:#F97316!important;font-family:'Space Mono',monospace;font-size:12px;font-weight:700;}
.td-hard{color:#ef4444!important;font-family:'Space Mono',monospace;font-size:12px;font-weight:700;}

/* ── COMPARE CARDS (ownership page) ── */
.compare-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:28px 0;}
.compare-card{background:#0d1117;border:1px solid rgba(255,255,255,0.06);border-radius:12px;padding:20px;}
.compare-card.good{border-color:rgba(34,197,94,0.2);}
.compare-card.bad{border-color:rgba(239,68,68,0.2);}
.compare-card h4{font-family:'Inter',sans-serif;font-size:14px;font-weight:700;color:#f0f0f0;margin-bottom:12px;line-height:1.4;}
.compare-card ul{margin:0 0 0 16px;}
.compare-card li{font-size:13px;color:#888;line-height:1.7;margin-bottom:4px;}

/* ── RISK GRID ── */
.risk-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:28px 0;}
.risk-card{background:#0d1117;border:1px solid rgba(255,255,255,0.06);border-radius:12px;padding:20px;}
.risk-card-label{font-family:'Space Mono',monospace;font-size:9px;font-weight:700;letter-spacing:0.1em;color:#F97316;margin-bottom:8px;}
.risk-card h4{font-family:'Inter',sans-serif;font-size:14px;font-weight:700;color:#f0f0f0;margin-bottom:6px;}
.risk-card p{font-size:13px;color:#666;line-height:1.6;margin:0;}

/* ── SCAN CTA BUTTON SPECIFICITY FIX ── */
.scan-cta .cta-btn{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg,#FB923C 0%,#F97316 50%,#EA6C00 100%);color:#fff!important;font-family:'Inter',sans-serif;font-size:13px;font-weight:800;padding:12px 28px;border-radius:10px;box-shadow:0 2px 0 #c45a00,0 4px 12px rgba(249,115,22,0.35);text-shadow:0 1px 0 rgba(0,0,0,0.2);text-decoration:none!important;transition:all 0.15s;}
.scan-cta .cta-btn:hover{background:linear-gradient(135deg,#FDAB6A 0%,#FB923C 50%,#F97316 100%);box-shadow:0 1px 0 #c45a00;transform:translateY(1px);}

/* ── BTN-PRIMARY (Design System B pages) ── */
.btn-primary{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg,#FB923C 0%,#F97316 50%,#EA6C00 100%);color:#080b10;font-family:'Inter',sans-serif;font-size:13px;font-weight:800;padding:12px 28px;border-radius:10px;box-shadow:0 2px 0 #c45a00,0 4px 12px rgba(249,115,22,0.35);text-decoration:none;transition:all 0.15s;}
.btn-primary:hover{background:linear-gradient(135deg,#FDAB6A 0%,#FB923C 50%,#F97316 100%);box-shadow:0 1px 0 #c45a00;transform:translateY(1px);}
.scan-cta-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:20px;}

/* ── ARTICLE WRAP TYPOGRAPHY (for pages using article-wrap directly) ── */
.article-wrap h2{font-family:'Inter',sans-serif;font-size:26px;font-weight:800;color:#f0f0f0;margin:48px 0 16px;letter-spacing:-0.3px;}
.article-wrap h3{font-family:'Inter',sans-serif;font-size:18px;font-weight:700;color:#f0f0f0;margin:32px 0 12px;}
.article-wrap p{font-size:15px;color:#aaa;line-height:1.75;margin-bottom:16px;}
.article-wrap ul,.article-wrap ol{padding-left:20px;margin-bottom:16px;}
.article-wrap li{font-size:15px;color:#aaa;line-height:1.75;margin-bottom:8px;}
.article-wrap strong{color:#f0f0f0;font-weight:700;}
.article-wrap a{color:#F97316;}
