/* ============================================
   NEXTFITUP BLOG — shared stylesheet
   Matches the main site's dark / green theme
   ============================================ */

:root{
  --bg: #101210;
  --bg-soft: #171916;
  --surface: #1C1F1B;
  --surface-2: #232720;
  --line: #2C332C;
  --green: #17B24C;
  --green-dark: #0C7D36;

  --text: #F4F6F2;
  --text-muted: #9BA79E;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(23,178,76,0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(23,178,76,0.08), transparent 55%),
    var(--bg);
  color:var(--text);
  font-family:'Manrope', system-ui, -apple-system, sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
.mono{ font-family:'IBM Plex Mono', ui-monospace, monospace; }
.display{ font-family:'Anton', 'Arial Black', sans-serif; text-transform:uppercase; letter-spacing:0.01em; }
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.wrap{ max-width:1140px; margin:0 auto; padding:0 24px; }
::selection{ background:var(--green); color:#1B1810; }
:focus-visible{ outline:2px solid var(--green); outline-offset:3px; }

/* NAV */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(16,18,16,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding:16px 24px; }
.brand-text{ font-family:'Anton','Arial Black',sans-serif; letter-spacing:0.02em; font-size:1.15rem; }
.brand-text .accent{ color:var(--green); }
nav.links{ display:flex; gap:28px; font-size:0.92rem; color:var(--text-muted); }
nav.links a:hover{ color:var(--green); }
.nav-cta{
  background:var(--green); color:#1B1810; font-weight:800;
  padding:9px 18px; border-radius:999px; font-size:0.88rem;
}

/* BLOG INDEX */
.blog-hero{ padding:56px 0 32px; border-bottom:1px solid var(--line); }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  color:var(--green); font-size:0.78rem; font-weight:700;
  text-transform:uppercase; letter-spacing:0.08em; margin-bottom:14px;
}
.eyebrow::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--green); }
.blog-hero h1{ font-size:clamp(2rem, 4vw, 2.7rem); line-height:1.1; margin-bottom:14px; }
.blog-hero p{ color:var(--text-muted); max-width:56ch; font-size:1.02rem; }

.article-grid{
  display:grid; grid-template-columns:repeat(2, 1fr); gap:22px;
  padding:44px 0 60px;
}
@media (max-width:760px){ .article-grid{ grid-template-columns:1fr; } }
.article-card{
  background:var(--surface); border:1px solid var(--line); border-radius:16px;
  padding:26px; display:flex; flex-direction:column; gap:10px;
  transition:border-color .15s ease, transform .15s ease;
}
.article-card:hover{ border-color:var(--green); transform:translateY(-2px); }
.article-card .tag{
  font-size:0.7rem; color:var(--green); text-transform:uppercase; letter-spacing:0.06em; font-weight:700;
}
.article-card h2{ font-size:1.2rem; line-height:1.3; }
.article-card p{ color:var(--text-muted); font-size:0.9rem; }
.article-card .meta{ color:var(--text-muted); font-size:0.76rem; margin-top:auto; padding-top:6px; }

/* ARTICLE PAGE */
.article-header{ padding:48px 0 20px; border-bottom:1px solid var(--line); }
.article-header .tag{
  font-size:0.76rem; color:var(--green); text-transform:uppercase; letter-spacing:0.07em; font-weight:700;
}
.article-header h1{ font-size:clamp(1.9rem, 4vw, 2.5rem); line-height:1.15; margin:14px 0; }
.article-meta{ color:var(--text-muted); font-size:0.85rem; display:flex; gap:16px; flex-wrap:wrap; }

article.post{ max-width:760px; margin:0 auto; padding:40px 24px 20px; }
article.post h2{ font-size:1.35rem; margin:36px 0 14px; }
article.post h3{ font-size:1.1rem; margin:24px 0 10px; color:var(--text); }
article.post p{ margin-bottom:16px; color:#D7DCD3; font-size:1.02rem; }
article.post ul, article.post ol{ margin:0 0 18px 22px; color:#D7DCD3; }
article.post li{ margin-bottom:8px; }
article.post strong{ color:var(--text); }
article.post table{ width:100%; border-collapse:collapse; margin:18px 0 24px; font-size:0.92rem; }
article.post th, article.post td{ border:1px solid var(--line); padding:10px 12px; text-align:left; }
article.post th{ background:var(--surface); color:var(--green); }

.cta-box{
  max-width:760px; margin:32px auto 60px; padding:24px;
  background:var(--surface); border:1px solid var(--line); border-radius:16px;
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
}
.cta-box h3{ font-size:1.05rem; margin-bottom:6px; }
.cta-box p{ color:var(--text-muted); font-size:0.88rem; }
.btn-primary{
  background:var(--green); color:#1B1810; font-weight:800;
  padding:12px 22px; border-radius:999px; font-size:0.9rem; white-space:nowrap;
}

/* AD SLOT (shared with main site) */
.ad-slot{ max-width:760px; margin:0 auto; padding:20px 24px; }
.ad-slot-inner{
  border:1.5px dashed var(--line); border-radius:14px;
  min-height:90px; display:flex; align-items:center; justify-content:center;
  background:var(--surface);
}

/* FOOTER */
footer{ border-top:1px solid var(--line); padding:32px 0; margin-top:20px; }
footer .wrap{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; font-size:0.8rem; color:var(--text-muted); }
footer .flinks{ display:flex; gap:20px; flex-wrap:wrap; }
footer .flinks a:hover{ color:var(--green); }
