/* SMX Blog — shared stylesheet */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0e17;
  --bg-alt: #0d1220;
  --surface: #131825;
  --surface-2: #1a2030;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);
  --text: #f2f4f8;
  --muted: #8b95a7;
  --dim: #5c6577;
  --accent: #14b8a8;
  --accent-hover: #2dd4bf;
  --accent-dim: rgba(20,184,168,0.12);
  --success: #4ade80;
  --danger: #f87171;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }

/* Header (same as site) */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,23,0.75);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; max-width: 1200px; margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
}
.brand img { height: 76px; width: auto; display: block; }
.nav { display: flex; align-items: center; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  margin-left: 28px; font-weight: 500;
  transition: color 0.15s;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav .btn-nav {
  background: var(--accent); color: #0a0e17; padding: 9px 18px;
  border-radius: 8px; margin-left: 28px; font-weight: 600;
}
.nav .btn-nav:hover { background: var(--accent-hover); color: #0a0e17; }
.lang-toggle {
  margin-left: 24px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px;
}
.lang-toggle a {
  margin: 0; padding: 6px 10px; border-radius: 999px;
  font-size: 13px; display: inline-flex; align-items: center; gap: 6px;
}
.lang-toggle a.active { background: var(--surface-2); color: var(--text); }
.lang-toggle img { width: 16px; height: 12px; border-radius: 2px; }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 13px; color: var(--muted);
  padding: 20px 0 0; max-width: 760px; margin: 0 auto;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 8px; color: var(--dim); }

/* Blog index hero */
.blog-hero { padding: 60px 0 40px; border-bottom: 1px solid var(--border); }
.blog-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px;
  font-weight: 800;
}
.blog-hero p { color: var(--muted); font-size: 18px; max-width: 620px; }

/* Category chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* Post cards grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 40px 0 80px;
}
.post-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
  transition: all 0.2s; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.post-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  background: var(--surface-2);
}
.post-card .tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.post-card h3 {
  font-size: 20px; font-weight: 700; line-height: 1.3;
  margin-bottom: 12px; letter-spacing: -0.01em;
}
.post-card p {
  color: var(--muted); font-size: 15px; line-height: 1.6;
  flex-grow: 1; margin-bottom: 16px;
}
.post-card .meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--dim);
  padding-top: 16px; border-top: 1px solid var(--border);
}
.post-card .meta strong { color: var(--muted); font-weight: 600; }

/* Pillar page hero */
.pillar-hero {
  padding: 60px 0 40px; border-bottom: 1px solid var(--border);
  text-align: center;
}
.pillar-hero .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em;
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent-dim); margin-bottom: 20px;
}
.pillar-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px;
  font-weight: 800;
}
.pillar-hero p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto; }

/* Post page */
.post-header {
  padding: 40px 0 32px;
  max-width: 760px; margin: 0 auto;
}
.post-header .tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.post-header h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 20px;
  font-weight: 800;
}
.post-header .lede {
  color: var(--muted); font-size: 19px; line-height: 1.6;
}
.post-author {
  display: flex; align-items: center; gap: 12px;
  padding: 24px 0; margin-top: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: opacity 0.15s;
}
a.post-author:hover { opacity: 0.85; }
a.post-author:hover .name { color: var(--accent); }
.post-author .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0f766e);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #0a0e17; font-size: 18px;
}
.post-author .info { display: flex; flex-direction: column; gap: 2px; }
.post-author .name { font-weight: 600; font-size: 15px; }
.post-author .meta { color: var(--muted); font-size: 13px; }

/* Post body typography */
.post-body {
  max-width: 760px; margin: 0 auto; padding: 16px 28px 60px;
  font-size: 18px; line-height: 1.8;
}
.post-body h2 {
  font-size: clamp(26px, 3.2vw, 32px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.25;
  margin: 56px 0 20px;
}
.post-body h3 {
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 700; letter-spacing: -0.01em;
  margin: 40px 0 16px;
}
.post-body p { margin-bottom: 22px; color: #d8dce4; }
.post-body strong { color: var(--text); font-weight: 700; }
.post-body em { color: var(--text); font-style: italic; }
.post-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(20,184,168,0.35); }
.post-body a:hover { color: var(--accent-hover); border-bottom-color: var(--accent); }
.post-body ul, .post-body ol { margin: 0 0 24px 22px; }
.post-body li { margin-bottom: 10px; color: #d8dce4; }
.post-body li::marker { color: var(--accent); }
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px; margin: 28px 0;
  font-style: italic; color: var(--muted);
}
.post-body code {
  background: var(--surface); padding: 2px 8px; border-radius: 4px;
  font-size: 0.9em; color: var(--accent);
}
.post-body hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

/* TL;DR callout */
.tldr {
  background: linear-gradient(135deg, var(--accent-dim), rgba(20,184,168,0.04));
  border: 1px solid rgba(20,184,168,0.25);
  border-radius: 14px; padding: 24px 28px; margin: 32px 0 40px;
}
.tldr .label {
  display: inline-block; font-size: 11px; font-weight: 800;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.tldr p { margin: 0; font-size: 17px; color: var(--text); }

/* Data highlight box */
.data-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; margin: 28px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}
.data-box .stat { text-align: center; }
.data-box .num {
  display: block; font-size: 28px; font-weight: 800;
  color: var(--accent); letter-spacing: -0.02em;
}
.data-box .lbl {
  display: block; font-size: 13px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px;
}

/* Decision blocks */
.decision {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 24px 28px; margin: 28px 0;
}
.decision .num {
  display: inline-block; font-size: 11px; font-weight: 800;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.decision h3 { margin-top: 0 !important; }

/* CTA box inside post */
.post-cta {
  background: linear-gradient(135deg, var(--accent-dim), rgba(20,184,168,0.04));
  border: 1px solid var(--accent);
  border-radius: 14px; padding: 32px; margin: 48px 0;
  text-align: center;
}
.post-cta h3 {
  font-size: 24px; margin: 0 0 10px !important;
  font-weight: 800; letter-spacing: -0.02em;
}
.post-cta p { color: var(--muted); margin-bottom: 20px; }
.post-cta .btn {
  display: inline-block; background: var(--accent); color: #0a0e17;
  padding: 12px 28px; border-radius: 10px; font-weight: 700;
  text-decoration: none; border: none; font-size: 15px;
  transition: background 0.15s;
}
.post-cta .btn:hover { background: var(--accent-hover); }

/* FAQ */
.faq-section { max-width: 760px; margin: 0 auto; padding: 20px 28px 60px; }
.faq-section h2 {
  font-size: clamp(26px, 3.2vw, 32px);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.faq {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px 22px; margin-bottom: 12px;
  cursor: pointer;
}
.faq[open] { border-color: var(--border-strong); }
.faq summary {
  font-weight: 600; color: var(--text);
  list-style: none; position: relative; padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 0;
  color: var(--accent); font-size: 20px; font-weight: 700;
  transition: transform 0.2s;
}
.faq[open] summary::after { content: '−'; }
.faq p {
  color: var(--muted); margin-top: 14px; line-height: 1.7;
  padding-top: 14px; border-top: 1px solid var(--border);
}

/* Related posts */
.related {
  max-width: 1100px; margin: 0 auto; padding: 40px 28px 80px;
  border-top: 1px solid var(--border);
}
.related h2 {
  font-size: 24px; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 24px;
}

/* Author page */
.author-hero {
  padding: 72px 0 48px; border-bottom: 1px solid var(--border);
  text-align: center;
}
.author-hero .avatar-lg {
  width: 120px; height: 120px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0f766e);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: #0a0e17; font-size: 44px;
  margin-bottom: 24px; box-shadow: 0 10px 40px rgba(20,184,168,0.2);
}
.author-hero h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 10px;
}
.author-hero .role {
  color: var(--muted); font-size: 17px; margin-bottom: 24px;
}
.author-credentials {
  display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 28px;
}
.author-credentials .cred {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-dim); border: 1px solid rgba(20,184,168,0.3);
  color: var(--accent); font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em;
}
.author-socials {
  display: inline-flex; gap: 14px; justify-content: center; margin-top: 4px;
}
.author-socials a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  padding: 8px 16px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  transition: all 0.15s;
}
.author-socials a:hover { color: var(--accent); border-color: var(--accent); }

.author-bio {
  max-width: 760px; margin: 0 auto; padding: 48px 28px;
  font-size: 17px; line-height: 1.8; color: #d8dce4;
}
.author-bio h2 {
  font-size: 24px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text); margin: 40px 0 16px;
}
.author-bio h2:first-child { margin-top: 0; }
.author-bio p { margin-bottom: 18px; }
.author-bio ul { margin: 0 0 20px 22px; }
.author-bio li { margin-bottom: 8px; }
.author-bio li::marker { color: var(--accent); }

.author-posts {
  max-width: 1100px; margin: 0 auto; padding: 20px 28px 80px;
  border-top: 1px solid var(--border);
}
.author-posts h2 {
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em;
  margin: 40px 0 24px;
}
.author-posts .count {
  display: inline-block; font-size: 13px; color: var(--muted);
  font-weight: 500; margin-left: 8px;
}

/* Footer (same as site) */
footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 60px 0 32px; margin-top: 60px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand { min-width: 0; }
.footer-col { min-width: 0; }
.footer-brand img { height: 64px; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 320px; }
.footer-col h5 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid var(--border);
  color: var(--dim); font-size: 13px; text-align: center;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .nav a:not(.btn-nav):not(.lang-toggle):not(.lang-toggle a) { display: none; }
  .nav .lang-toggle { display: inline-flex; }
  .nav .lang-toggle a { display: inline-flex; }
  .post-body { font-size: 17px; }
}
@media (max-width: 560px) {
  .wrap, .narrow { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  footer { padding: 44px 0 28px; margin-top: 44px; }
  .data-box { grid-template-columns: 1fr 1fr; }
}
