/* NewJerzBuilds — shared blog styles (matches homepage design system) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --card: #1a1a1a;
  --border: #2a2a2a;
  --green: #7fff50;
  --green-dim: #5ec93a;
  --white: #f5f5f5;
  --gray: #888;
  --green-glow: rgba(127,255,80,0.30);
  --ease: cubic-bezier(.2,.7,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
  background:
    radial-gradient(1000px 560px at 50% -200px, rgba(127,255,80,0.08), transparent 60%),
    var(--black);
  color: var(--white);
  line-height: 1.75;
}

h1, h2, h3, h4, .nav-logo, .post-card h3, .article-cta-box h3 {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem;
  background: rgba(10,10,10,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s var(--ease), background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
nav.scrolled {
  padding-top: 0.65rem; padding-bottom: 0.65rem;
  background: rgba(10,10,10,0.82);
  box-shadow: 0 12px 30px -18px rgba(0,0,0,0.9);
  border-color: rgba(127,255,80,0.12);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo svg { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-link { color: var(--white); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: color 0.2s; }
.nav-link:hover { color: var(--green); }
@media (max-width: 640px) { .nav-link.hide-mobile { display: none; } }
.nav-cta {
  background: var(--green); color: var(--black);
  padding: 0.5rem 1.2rem; border-radius: 6px;
  font-weight: 700; font-size: 0.9rem; text-decoration: none;
  box-shadow: 0 8px 24px -12px var(--green-glow);
  transition: transform 0.2s var(--ease), box-shadow 0.25s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -12px var(--green-glow); }

/* POST HERO (grid texture + glow, like homepage page-hero) */
.post-hero {
  position: relative; overflow: hidden;
  padding: 8.5rem 2rem 3rem;
  border-bottom: 1px solid var(--border);
}
.post-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(127,255,80,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,255,80,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 75%);
  pointer-events: none;
}
.post-hero .inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.back-link { display: inline-block; color: var(--green); text-decoration: none; font-size: 0.9rem; font-weight: 600; margin-bottom: 1.5rem; transition: gap 0.2s; }
.back-link:hover { text-decoration: underline; }
.article-meta { font-size: 0.78rem; color: var(--gray); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1.5px; }
.post-hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.12;
  text-wrap: balance;
}
.post-hero h1 span { color: var(--green); text-shadow: 0 0 44px rgba(127,255,80,0.45); }

/* ARTICLE BODY */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 3.5rem 2rem 4rem; }
.article-wrap h2 {
  font-size: 1.55rem; font-weight: 800; letter-spacing: -0.5px;
  line-height: 1.25; margin: 2.75rem 0 1rem;
}
.article-wrap h3 { font-size: 1.15rem; font-weight: 700; margin: 1.75rem 0 0.6rem; }
.article-wrap p { color: #cfcfcf; margin-bottom: 1.25rem; }
.article-wrap a { color: var(--green); text-decoration: none; border-bottom: 1px solid rgba(127,255,80,0.3); transition: border-color 0.2s; }
.article-wrap a:hover { border-color: var(--green); }
.article-wrap ul, .article-wrap ol { margin: 0 0 1.5rem; padding-left: 0; list-style: none; }
.article-wrap ul li { position: relative; padding-left: 1.7rem; margin-bottom: 0.6rem; color: #cfcfcf; }
.article-wrap ul li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.article-wrap ol { counter-reset: li; }
.article-wrap ol li { position: relative; padding-left: 1.9rem; margin-bottom: 0.6rem; color: #cfcfcf; counter-increment: li; }
.article-wrap ol li::before { content: counter(li); position: absolute; left: 0; top: 0.05rem; color: var(--green); font-weight: 800; font-size: 0.85rem; }
.article-wrap strong { color: var(--white); font-weight: 700; }

/* KEY TAKEAWAY callout */
.callout {
  background: linear-gradient(160deg, rgba(127,255,80,0.08), rgba(127,255,80,0.02));
  border: 1px solid rgba(127,255,80,0.25);
  border-left: 3px solid var(--green);
  border-radius: 12px;
  padding: 1.25rem 1.5rem; margin: 2rem 0;
}
.callout strong { color: var(--green); }
.callout p { margin: 0; color: #d8d8d8; }

/* FAQ */
.article-faq { margin-top: 3rem; border-top: 1px solid var(--border); }
.article-faq h2 { margin-bottom: 0.5rem; }
.article-faq details { border-bottom: 1px solid var(--border); padding: 1.15rem 0; }
.article-faq summary { font-weight: 700; cursor: pointer; color: var(--white); list-style: none; transition: color 0.2s; }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::before { content: '+'; color: var(--green); font-weight: 800; margin-right: 0.6rem; }
.article-faq details[open] summary::before { content: '–'; }
.article-faq summary:hover { color: var(--green); }
.article-faq details p { margin: 0.75rem 0 0; color: var(--gray); }

/* FAQ — legacy div-based markup (existing post) */
.faq-section { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.faq-section h2 { margin-top: 0; }
.faq-item { margin-bottom: 1.75rem; }
.faq-item h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.faq-item p { color: var(--gray); margin-bottom: 0; }

/* CTA box */
.article-cta-box {
  background: linear-gradient(160deg, #1c1c1c, #141414);
  border: 1px solid rgba(127,255,80,0.3);
  border-radius: 16px; padding: 2.25rem; margin: 3rem 0 0; text-align: center;
  box-shadow: 0 30px 60px -36px rgba(0,0,0,0.9);
}
.article-cta-box h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.5rem; }
.article-cta-box p { color: var(--gray); margin-bottom: 1.25rem; }
.article-cta-box a {
  display: inline-block; background: var(--green); color: var(--black);
  padding: 0.85rem 2rem; border-radius: 8px; font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 30px -12px var(--green-glow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.article-cta-box a:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -12px var(--green-glow); }

/* RELATED POSTS */
.related { max-width: 760px; margin: 0 auto; padding: 0 2rem 4rem; }
.related h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 1.25rem; letter-spacing: -0.5px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.related-card {
  display: block; background: linear-gradient(165deg, #1c1c1c, #141414);
  border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem;
  text-decoration: none; color: var(--white);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.related-card:hover { transform: translateY(-3px); border-color: rgba(127,255,80,0.4); box-shadow: 0 20px 40px -24px rgba(0,0,0,0.85); }
.related-card span { font-size: 0.72rem; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.related-card h3 { font-size: 1rem; font-weight: 700; margin-top: 0.4rem; line-height: 1.3; }

/* BLOG INDEX */
.blog-index { max-width: 1000px; margin: 0 auto; padding: 8.5rem 2rem 4rem; }
.blog-index .section-label { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 0.75rem; }
.blog-index .section-label::before { content: ''; width: 22px; height: 2px; background: var(--green); border-radius: 2px; }
.blog-index h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 0.6rem; }
.blog-index > p.intro { color: var(--gray); font-size: 1.1rem; max-width: 560px; margin-bottom: 3rem; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.post-card {
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, #1c1c1c, #141414);
  border: 1px solid var(--border); border-radius: 16px; padding: 1.75rem;
  text-decoration: none; color: var(--white);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(127,255,80,0.4); box-shadow: 0 26px 50px -26px rgba(0,0,0,0.85), 0 0 30px -16px var(--green-glow); }
.post-card .post-date { font-size: 0.72rem; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.6rem; }
.post-card h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.25; margin-bottom: 0.6rem; letter-spacing: -0.3px; }
.post-card p { color: var(--gray); font-size: 0.92rem; flex-grow: 1; }
.post-card .read { color: var(--green); font-weight: 700; font-size: 0.85rem; margin-top: 1rem; }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 2.5rem 2rem; text-align: center; color: var(--gray); font-size: 0.85rem; margin-top: 2rem; }
footer a { color: var(--green); text-decoration: none; }

/* SCROLL REVEAL (progressive; visible without JS) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 640px) {
  nav { padding: 1rem; }
  .post-hero { padding-top: 7rem; }
  .article-wrap, .post-hero, .related { padding-left: 1.25rem; padding-right: 1.25rem; }
}
