/* Blog pages — shared styles across all blog templates */

/* ── Layout ──────────────────────────────────────────────────────────── */
.blog-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 120px;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────── */
.breadcrumb {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--fg-dim, #666);
  margin: 28px 0 32px;
  letter-spacing: 0.01em;
}
.breadcrumb a {
  color: #D4FF3D;
  text-decoration: none;
  transition: opacity 0.15s;
}
.breadcrumb a:hover { opacity: 0.75; }
.breadcrumb span { margin: 0 6px; color: #444; }

/* ── Article Header ──────────────────────────────────────────────────── */
.article-header { margin-bottom: 48px; }

.article-tag {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D4FF3D;
  background: rgba(212, 255, 61, 0.1);
  border: 1px solid rgba(212, 255, 61, 0.25);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 18px;
}

.article-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #f5f5f0;
  margin-bottom: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: #888;
  flex-wrap: wrap;
}
.article-meta .author { color: #ccc; font-weight: 600; }
.article-meta .author::before { content: 'by '; font-weight: 400; }
.article-meta .date::before { content: '· '; }
.article-meta .read-time::before { content: '· '; }
.article-meta .read-time svg { display: inline; vertical-align: -3px; margin-right: 4px; }

/* ── Article Body ────────────────────────────────────────────────────── */
.article-body {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #c8c8c2;
}

.article-body h2 {
  font-family: 'Anton', sans-serif;
  font-size: 30px;
  font-weight: 400;
  color: #f5f5f0;
  margin: 52px 0 18px;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.article-body h3 {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #e0e0da;
  margin: 36px 0 14px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body a {
  color: #D4FF3D;
  text-decoration: underline;
  text-decoration-color: rgba(212, 255, 61, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
.article-body a:hover { text-decoration-color: #D4FF3D; }

.article-body strong { color: #e8e8e2; font-weight: 700; }
.article-body em { font-style: italic; color: #b8b8b2; }

.article-body ul, .article-body ol {
  margin: 0 0 20px 0;
  padding-left: 24px;
}
.article-body li { margin-bottom: 8px; }

/* ── Formula Comparison ──────────────────────────────────────────────── */
.formula-comparison {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 32px 0;
}
.formula-card {
  background: #141414;
  border: 1px solid #252525;
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
}
.formula-card.epley   { border-color: rgba(212, 255, 61, 0.35); }
.formula-card.brzycki { border-color: rgba(100, 200, 255, 0.3); }
.formula-card.lombardi{ border-color: rgba(255, 180, 100, 0.3); }
.formula-name {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 10px;
}
.formula-card.epley   .formula-name { color: #D4FF3D; }
.formula-card.brzycki .formula-name { color: #64C8FF; }
.formula-card.lombardi .formula-name { color: #FFB464; }
.formula-math {
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #f5f5f0;
  line-height: 1.4;
}

/* ── Math/Code Block ─────────────────────────────────────────────────── */
.math-block {
  background: #111;
  border: 1px solid #252525;
  border-left: 3px solid #D4FF3D;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 28px 0;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: #ccc;
  overflow-x: auto;
  white-space: pre;
}

/* ── Table ───────────────────────────────────────────────────────────── */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
}
.article-table th {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #f5f5f0;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid #333;
  background: #141414;
}
.article-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #1e1e1e;
  color: #aaa;
}
.article-table tr:hover td { background: #141414; }
.article-table td:first-child { color: #ccc; font-weight: 600; }

/* ── Callout Box ─────────────────────────────────────────────────────── */
.callout {
  background: rgba(212, 255, 61, 0.06);
  border: 1px solid rgba(212, 255, 61, 0.2);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 32px 0;
  color: #ccc;
  font-size: 15px;
  line-height: 1.65;
}
.callout strong { color: #D4FF3D; }

/* ── Wave Chart (CSS-rendered for 5/3/1 article) ─────────────────────── */
.wave-chart {
  margin: 32px 0;
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 24px;
}
.wave-chart-title {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  color: #f5f5f0;
  margin-bottom: 18px;
}
.wave-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}
.wave-label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  color: #666;
  width: 48px;
  text-align: right;
  flex-shrink: 0;
}
.wave-bars {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  flex: 1;
}
.wave-bar {
  border-radius: 3px 3px 0 0;
  flex: 1;
}
.wave-bar.w1 { background: #64C8FF; }
.wave-bar.w2 { background: #D4FF3D; }
.wave-bar.w3 { background: #FFB464; }
.wave-bar.w4 { background: #888; }
.wave-legend {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  color: #666;
}
.wave-legend-item { display: flex; align-items: center; gap: 5px; }
.wave-legend-dot { width: 10px; height: 10px; border-radius: 2px; }

/* ── Progression Tiers Visual ─────────────────────────────────────────── */
.progression-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 32px 0;
}
.tier-card {
  background: #141414;
  border: 1px solid #252525;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}
.tier-card.beginner  { border-color: rgba(212, 255, 61, 0.3); }
.tier-card.intermediate { border-color: rgba(100, 200, 255, 0.3); }
.tier-card.advanced  { border-color: rgba(255, 180, 100, 0.3); }
.tier-label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 10px;
}
.tier-card.beginner  .tier-label { color: #D4FF3D; }
.tier-card.intermediate .tier-label { color: #64C8FF; }
.tier-card.advanced  .tier-label { color: #FFB464; }
.tier-rate {
  font-family: 'Anton', sans-serif;
  font-size: 26px;
  color: #f5f5f0;
  margin-bottom: 4px;
}
.tier-note {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: #666;
}

/* ── Lever Cards (5 levers) ───────────────────────────────────────────── */
.levers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 28px 0;
}
.lever-card {
  background: #141414;
  border: 1px solid #252525;
  border-radius: 10px;
  padding: 16px;
}
.lever-num {
  font-family: 'Anton', sans-serif;
  font-size: 32px;
  color: #D4FF3D;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 4px;
}
.lever-title {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #f5f5f0;
  margin-bottom: 6px;
}
.lever-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

/* ── Internal Link Section ─────────────────────────────────────────────── */
.internal-links {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid #222;
}
.internal-links h3 {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #f5f5f0;
  margin-bottom: 18px;
}
.internal-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.internal-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #141414;
  border: 1px solid #252525;
  border-radius: 10px;
  padding: 14px 18px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.internal-link-card:hover {
  border-color: rgba(212, 255, 61, 0.4);
  background: #181818;
}
.internal-link-icon {
  width: 36px;
  height: 36px;
  background: rgba(212, 255, 61, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.internal-link-text { flex: 1; }
.internal-link-title {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #e8e8e2;
  margin-bottom: 2px;
}
.internal-link-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: #666;
}
.internal-link-arrow {
  color: #333;
  transition: color 0.15s, transform 0.15s;
}
.internal-link-card:hover .internal-link-arrow {
  color: #D4FF3D;
  transform: translateX(3px);
}

/* ── Waitlist Form (blog article footer) ─────────────────────────────── */
.article-waitlist {
  margin-top: 56px;
  padding: 36px 32px;
  background: #141414;
  border: 1px solid #252525;
  border-radius: 16px;
  text-align: center;
}
.article-waitlist h3 {
  font-family: 'Anton', sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: #f5f5f0;
  margin-bottom: 8px;
  line-height: 1.1;
}
.article-waitlist p {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: #888;
  margin-bottom: 22px;
}
.wl-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto 12px;
}
.wl-form input[type="email"] {
  flex: 1;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: #f5f5f0;
  outline: none;
  transition: border-color 0.15s;
}
.wl-form input[type="email"]:focus { border-color: #D4FF3D; }
.wl-form input[type="email"]::placeholder { color: #555; }
.wl-form button {
  background: #D4FF3D;
  color: #0B0B0D;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.wl-form button:hover { opacity: 0.88; }
.wl-form button:active { transform: scale(0.97); }
.wl-success {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: #4ade80;
  display: none;
}
.wl-error {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: #f87171;
  display: none;
}
.wl-success.show { display: block; }
.wl-error.show  { display: block; }

/* ── Blog Index ───────────────────────────────────────────────────────── */
.blog-index {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 120px;
}
.blog-index-header {
  padding: 56px 0 48px;
  border-bottom: 1px solid #222;
  margin-bottom: 48px;
}
.blog-index-header h1 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 400;
  color: #f5f5f0;
  margin-bottom: 12px;
  line-height: 1.0;
}
.blog-index-header p {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: #888;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.blog-card {
  background: #141414;
  border: 1px solid #222;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: border-color 0.18s, transform 0.18s;
}
.blog-card:hover {
  border-color: rgba(212, 255, 61, 0.4);
  transform: translateY(-3px);
}
.blog-card-img {
  height: 160px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 48px;
  color: #252525;
}
.blog-card-img.formulas  { background: linear-gradient(135deg, #0f1a0f 0%, #1a2a0a 100%); }
.blog-card-img.programs  { background: linear-gradient(135deg, #0f1419 0%, #0a1a28 100%); }
.blog-card-img.progression { background: linear-gradient(135deg, #1a1205 0%, #2a1e05 100%); }
.blog-card-img.formulas::after   { content: '∑'; color: rgba(212,255,61,0.15); }
.blog-card-img.programs::after   { content: '⚖'; color: rgba(100,200,255,0.15); }
.blog-card-img.progression::after { content: '↗'; color: rgba(255,180,100,0.15); }
.blog-card-body { padding: 20px 22px 24px; }
.blog-card-tag {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D4FF3D;
  margin-bottom: 10px;
}
.blog-card-title {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #f5f5f0;
  line-height: 1.15;
  margin-bottom: 10px;
}
.blog-card-excerpt {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  margin-bottom: 16px;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  color: #555;
}
.blog-card-meta svg { display: inline; vertical-align: -3px; }

/* ── Mobile responsive ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .formula-comparison,
  .progression-tiers { grid-template-columns: 1fr; }
  .wave-chart { padding: 16px; }
  .article-waitlist { padding: 24px 20px; }
  .wl-form { flex-direction: column; }
  .blog-grid { grid-template-columns: 1fr; }
}