/* ==========================================================================
   Alternative Entrepreneur — Global Stylesheet
   alternativeentrepreneur.com
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0d0f14;
  --bg-card:     #141720;
  --bg-card2:    #1a1e2b;
  --border:      #232840;
  --accent:      #00e07a;
  --accent-dark: #00b860;
  --accent2:     #7c5cfc;
  --text:        #e8eaf0;
  --text-muted:  #8b90a7;
  --text-dim:    #5c6080;
  --white:       #ffffff;
  --font-sans:   'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.40);
  --shadow-glow: 0 0 32px rgba(0,224,122,0.14);
  --max-w:       1120px;
  --max-w-prose: 780px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Google Font Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---------- Utilities ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.container--prose { max-width: var(--max-w-prose); margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2em .7em;
  border-radius: 999px;
  background: rgba(0,224,122,0.12);
  color: var(--accent);
  border: 1px solid rgba(0,224,122,0.25);
}
.badge--purple { background: rgba(124,92,252,0.12); color: var(--accent2); border-color: rgba(124,92,252,0.25); }
.badge--blue   { background: rgba(56,130,255,0.12); color: #5ba0ff; border-color: rgba(56,130,255,0.25); }
.badge--orange { background: rgba(255,140,50,0.12); color: #ff9d4a; border-color: rgba(255,140,50,0.25); }

/* ---------- Site Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,15,20,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.site-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; }
.site-logo .logo-dot { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: .15rem; }
.site-nav a {
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
  padding: .4rem .75rem;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.active { color: var(--white); background: rgba(255,255,255,0.06); }
.site-nav .nav-cta {
  background: var(--accent);
  color: #0d0f14;
  font-weight: 700;
  padding: .4rem 1rem;
  margin-left: .5rem;
}
.site-nav .nav-cta:hover { background: var(--accent-dark); color: #0d0f14; text-decoration: none; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: all .3s; }

@media (max-width: 768px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 1rem; gap: .25rem; }
  .site-nav.open { display: flex; }
  .hamburger { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(ellipse at center, rgba(0,224,122,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow { margin-bottom: 1.25rem; }
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero-title .highlight { color: var(--accent); }
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.hero-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.4rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #0d0f14;
}
.btn--primary:hover { background: var(--accent-dark); text-decoration: none; color: #0d0f14; transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: rgba(255,255,255,0.05); text-decoration: none; border-color: var(--accent); color: var(--accent); }
.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn--outline:hover { background: var(--accent); color: #0d0f14; text-decoration: none; }

/* ---------- Section ---------- */
section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.section-desc { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ---------- Pillar Cards (Homepage) ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.25rem;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  text-decoration: none;
  display: block;
}
.pillar-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  text-decoration: none;
}
.pillar-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.pillar-icon--green  { background: rgba(0,224,122,0.12); }
.pillar-icon--purple { background: rgba(124,92,252,0.12); }
.pillar-icon--blue   { background: rgba(56,130,255,0.12); }
.pillar-icon--orange { background: rgba(255,140,50,0.12); }
.pillar-icon--pink   { background: rgba(255,80,150,0.12); }
/* SVG icon sizing & colour per pillar */
.pillar-icon svg { width: 22px; height: 22px; flex-shrink: 0; }
.pillar-icon--green  svg { color: #00e07a; }
.pillar-icon--purple svg { color: #7c5cfc; }
.pillar-icon--blue   svg { color: #5ba0ff; }
.pillar-icon--orange svg { color: #ff9d4a; }
.pillar-icon--pink   svg { color: #ff5096; }

.pillar-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: .4rem; }
.pillar-card p { font-size: .88rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }
.pillar-link { font-size: .85rem; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: .3rem; }

/* ---------- Post Cards ---------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color .25s, transform .25s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-card .post-meta { display: flex; align-items: center; gap: .6rem; margin-bottom: .85rem; flex-wrap: wrap; }
.post-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; line-height: 1.35; }
.post-card h3 a { color: var(--white); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { font-size: .87rem; color: var(--text-muted); line-height: 1.55; flex: 1; margin-bottom: 1rem; }
.post-card .read-more { font-size: .84rem; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: .3rem; margin-top: auto; }

.kd-chip {
  font-size: .68rem;
  font-weight: 700;
  padding: .15em .55em;
  border-radius: 4px;
  letter-spacing: .04em;
}
.kd-vlow  { background: rgba(0,224,122,0.15); color: #00e07a; }
.kd-low   { background: rgba(80,200,120,0.12); color: #50c878; }
.kd-med   { background: rgba(255,200,60,0.12); color: #ffc83c; }
.kd-high  { background: rgba(255,80,60,0.12); color: #ff5040; }

/* ---------- Article Layout ---------- */
.article-header { padding: 3.5rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.article-header .breadcrumb { font-size: .82rem; color: var(--text-muted); margin-bottom: 1rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.article-header .breadcrumb a { color: var(--text-muted); }
.article-header .breadcrumb a:hover { color: var(--accent); }
.article-header .breadcrumb .sep { color: var(--text-dim); }
.article-meta { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.article-meta .date { font-size: .82rem; color: var(--text-muted); }
.article-meta .author { font-size: .82rem; color: var(--text-muted); font-weight: 600; }
.article-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: var(--white); letter-spacing: -.025em; line-height: 1.15; margin: .75rem 0; }
.article-desc { font-size: 1.05rem; color: var(--text-muted); line-height: 1.65; max-width: 680px; }

/* Article Body */
.article-body { padding-bottom: 4rem; }
.article-body h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--white);
  margin: 2.5rem 0 .85rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  letter-spacing: -.02em;
}
.article-body h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.article-body h3 { font-size: 1.2rem; font-weight: 700; color: var(--white); margin: 1.75rem 0 .65rem; letter-spacing: -.015em; }
.article-body h4 { font-size: 1rem; font-weight: 700; color: var(--accent); margin: 1.25rem 0 .5rem; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.article-body p { margin-bottom: 1.1rem; color: var(--text); line-height: 1.75; }
.article-body ul, .article-body ol { margin: .75rem 0 1.25rem 1.5rem; }
.article-body li { margin-bottom: .45rem; color: var(--text); line-height: 1.65; }
.article-body strong { color: var(--white); font-weight: 700; }
.article-body em { color: var(--text-muted); font-style: italic; }
.article-body a { color: var(--accent); }
.article-body a:hover { text-decoration: underline; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(0,224,122,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
}
.article-body code {
  background: var(--bg-card2);
  color: var(--accent);
  padding: .1em .4em;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .88em;
}
.article-body pre {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0;
}
.article-body pre code { background: none; padding: 0; }

/* Callout boxes */
.callout {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
  display: flex;
  gap: .85rem;
}
.callout--tip   { border-color: rgba(0,224,122,0.3);  background: rgba(0,224,122,0.05); }
.callout--warn  { border-color: rgba(255,200,60,0.3);  background: rgba(255,200,60,0.05); }
.callout--info  { border-color: rgba(56,130,255,0.3);  background: rgba(56,130,255,0.05); }
.callout-icon { font-size: 1.1rem; flex-shrink: 0; line-height: 1.7; }
.callout-icon svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: .15rem; }
.callout--tip  .callout-icon svg { color: var(--accent); }
.callout--warn .callout-icon svg { color: #ffc83c; }
.callout--info .callout-icon svg { color: #5ba0ff; }
.callout-body p { margin: 0; font-size: .92rem; }
.callout-body strong { display: block; margin-bottom: .25rem; font-size: .88rem; letter-spacing: .04em; text-transform: uppercase; }
.callout--tip  .callout-body strong { color: var(--accent); }
.callout--warn .callout-body strong { color: #ffc83c; }
.callout--info .callout-body strong { color: #5ba0ff; }

/* Tool card (affiliate box) */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.75rem 0;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.tool-card-info { flex: 1; min-width: 200px; }
.tool-card-info h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .3rem; text-transform: none; letter-spacing: normal; }
.tool-card-info p { font-size: .87rem; color: var(--text-muted); margin: 0; }
.tool-card-cta { display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; flex-shrink: 0; }
.tool-card-cta .tag { font-size: .7rem; color: var(--text-muted); text-align: right; }

/* TOC */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}
.toc h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: .85rem; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { font-size: .9rem; margin-bottom: .35rem; }
.toc a { color: var(--text-muted); }
.toc a:hover { color: var(--accent); }

/* ---------- Pillar Page List ---------- */
.pillar-hero { padding: 3.5rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 3rem; }
.pillar-hero .breadcrumb { font-size: .82rem; color: var(--text-muted); margin-bottom: 1rem; display: flex; gap: .5rem; align-items: center; }
.pillar-hero .breadcrumb a { color: var(--text-muted); }
.pillar-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--white); letter-spacing: -.025em; margin-bottom: .75rem; }
.pillar-hero p { font-size: 1.05rem; color: var(--text-muted); max-width: 620px; }

/* Volume + KD table */
.kw-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .88rem; }
.kw-table th { background: var(--bg-card2); color: var(--text-muted); font-weight: 600; text-align: left; padding: .65rem 1rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.kw-table td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); }
.kw-table tr:last-child td { border-bottom: none; }
.kw-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ---------- Stats Bar ---------- */
.stats-bar { display: flex; gap: 2.5rem; flex-wrap: wrap; padding: 2rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 2rem 0; }
.stat { }
.stat .val { font-size: 2rem; font-weight: 900; color: var(--white); letter-spacing: -.03em; line-height: 1; }
.stat .val span { color: var(--accent); }
.stat .label { font-size: .8rem; color: var(--text-muted); margin-top: .2rem; }

/* ---------- Newsletter ---------- */
.newsletter-box {
  background: linear-gradient(135deg, rgba(0,224,122,0.08), rgba(124,92,252,0.06));
  border: 1px solid rgba(0,224,122,0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}
.newsletter-box h3 { font-size: 1.35rem; font-weight: 800; color: var(--white); margin-bottom: .5rem; }
.newsletter-box p { color: var(--text-muted); margin-bottom: 1.25rem; font-size: .92rem; }
.newsletter-form { display: flex; gap: .5rem; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .65rem 1rem;
  color: var(--text);
  font-size: .92rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form input::placeholder { color: var(--text-dim); }

/* ---------- Inline SVG icon helpers ---------- */
.icon-check { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; margin-right: .4rem; vertical-align: middle; flex-shrink: 0; color: var(--accent); }
.icon-check svg { width: 19px; height: 19px; }
li.check-item { display: flex; align-items: flex-start; gap: .4rem; }
li.check-item .icon-check { margin-top: .22rem; }

/* ---------- Related Posts ---------- */
.related { padding: 2.5rem 0; border-top: 1px solid var(--border); margin-top: 2.5rem; }
.related h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.5rem; font-size: .78rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.related-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; transition: border-color .2s; }
.related-card:hover { border-color: var(--accent); }
.related-card .cat { font-size: .72rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.related-card h4 { font-size: .9rem; font-weight: 600; color: var(--white); line-height: 1.35; }
.related-card h4 a { color: inherit; text-decoration: none; }
.related-card h4 a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: .87rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand .site-logo { margin-bottom: .85rem; font-size: 1rem; }
.footer-brand p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; max-width: 280px; }
.footer-col h5 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: .85rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: var(--text-muted); font-size: .85rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.footer-legal a { color: var(--text-dim); margin-left: 1.25rem; font-size: .82rem; }
.footer-legal a:hover { color: var(--text-muted); }
.affiliate-disclaimer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .stats-bar { gap: 1.5rem; }
  .tool-card { flex-direction: column; }
  .tool-card-cta { align-items: flex-start; flex-direction: row; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
}
