/* ═══════════════════════════════════════════════════════════
   GETLEADFLOW — Blog Styles
   Applies to: blog/index.html and blog/posts/[slug]/index.html
   ═══════════════════════════════════════════════════════════ */

/* ── Reading Progress Bar ─────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--reading-progress, 0%);
  height: 3px;
  background: var(--color-orange);
  z-index: 1000;
  transition: width 100ms linear;
}

/* ── Blog listing hero ────────────────────────────────────── */
.blog-hero {
  padding: var(--space-3xl) 0 var(--space-xl);
  text-align: center;
  position: relative;
}

.blog-hero__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: var(--space-md);
}

.blog-hero__title {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.blog-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Post grid (listing page) ─────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding-bottom: var(--space-3xl);
}

.post-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
}

.post-card:hover {
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--glow-blue-sm);
}

.post-card__hero {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  position: relative;
}

/* Per-post hero gradients */
.post-card__hero--wtf-claude {
  background: linear-gradient(160deg, #0A0F1E 0%, #0c1530 55%, #0A0F1E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  border: 1px solid var(--glass-border);
}

.post-card__hero-text {
  font-family: Georgia, 'Palatino Linotype', Palatino, serif;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.post-card__hero-splat {
  color: var(--color-orange);
  text-shadow:
    2px -4px 1px rgba(245,158,11,0.5),
   -3px -3px 1px rgba(245,158,11,0.4),
   -4px  3px 1px rgba(245,158,11,0.45),
    3px  4px 1px rgba(245,158,11,0.4),
    7px -2px 1px rgba(245,158,11,0.25),
   -6px  7px 1px rgba(245,158,11,0.22);
}

.post-card__hero--coming-soon {
  background: var(--glass-bg);
  border: 1px dashed var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.post-card__category {
  margin-bottom: var(--space-xs);
}

.post-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.3;
  letter-spacing: var(--tracking-tight);
}

.post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
}

.post-card__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.post-card__read-more {
  color: var(--color-blue);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-top: var(--space-xs);
}

/* Dimmed card for "coming soon" posts */
.post-card--coming-soon {
  opacity: 0.55;
  pointer-events: none;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  max-width: 800px;
  /* 88px = ~64px fixed nav height + 24px breathing room */
  margin: 88px auto var(--space-sm);
  padding: 0 var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-blue);
}

/* ── Post article container ───────────────────────────────── */
.post {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-3xl);
}

/* ── Post Header ──────────────────────────────────────────── */
.post__header {
  padding: var(--space-xl) 0 var(--space-lg);
}

.post__category {
  margin-bottom: var(--space-md);
  display: inline-block;
}

.post__title {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-lg);
}

.post__title-x {
  color: var(--color-orange);
  display: inline-block;
}

.post__meta {
  display: flex;
  gap: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.post__excerpt {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  line-height: 1.7;
  border-left: 3px solid var(--color-orange);
  padding-left: var(--space-lg);
}

/* ── Hero visual ──────────────────────────────────────────── */
.post__hero {
  width: 100%;
  min-height: 320px;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* What the F*ck is Claude — editorial serif hero (matches reference design) */
.post__hero--what-the-fxck-is-claude {
  background: linear-gradient(160deg, #0A0F1E 0%, #0c1530 50%, #0A0F1E 100%);
  border: 1px solid var(--glass-border);
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

/* Subtle green ambient glow behind the text */
.post__hero--what-the-fxck-is-claude::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 25% 55%, rgba(22,163,74,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 75% 45%, rgba(74,222,128,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Editorial text block */
.post__hero-wtf {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: var(--space-xl) var(--space-lg);
  gap: 0;
}

.post__hero-wtf__line {
  font-family: Georgia, 'Palatino Linotype', Palatino, 'Book Antiqua', serif;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.05;
  letter-spacing: -0.025em;
  display: block;
}

/* "is" is slightly smaller — editorial sizing from reference */
.post__hero-wtf__line--is {
  font-size: clamp(2rem, 6.5vw, 4rem);
}

/* Claude logo sunburst — inline SVG, tapered ellipse spokes */
.post__hero-wtf__splat {
  color: var(--color-orange);
  display: inline-block;
  font-style: normal;
}

/* ── Article body ─────────────────────────────────────────── */
.post__body {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.post__body h2,
.post__heading-2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
}

.post__body h3,
.post__heading-3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-blue);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  letter-spacing: var(--tracking-tight);
}

.post__body p {
  margin-bottom: var(--space-md);
}

.post__body strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.post__body em {
  font-style: italic;
}

.post__pullquote {
  border-left: 4px solid var(--color-orange);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  background: rgba(245, 158, 11, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text-primary);
  font-size: var(--text-lg);
}

.post__body ul,
.post__body ol,
.post__list {
  margin: var(--space-md) 0 var(--space-md) var(--space-xl);
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.post__body li,
.post__list li {
  margin-bottom: var(--space-sm);
}

.post__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-xl) 0;
}

/* ── Inline CTA box ───────────────────────────────────────── */
.post__cta-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--color-orange);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.post__cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-orange), transparent);
  opacity: 0.5;
}

.post__cta-box__headline {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: var(--space-sm) 0;
  letter-spacing: var(--tracking-tight);
}

.post__cta-box__body {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
  font-size: var(--text-base);
}

.post__cta-box__price {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-orange);
  margin-bottom: var(--space-md);
}

/* ── Final CTA section ────────────────────────────────────── */
.post__cta-final {
  background: linear-gradient(135deg, var(--color-navy-light), var(--color-navy-mid));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin: var(--space-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.post__cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(22,163,74,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.post__cta-final h3 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: var(--tracking-tight);
  position: relative;
}

.post__cta-final p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  position: relative;
}

.post__cta-final__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.post__cta-secondary {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-decoration: underline;
  align-self: center;
  transition: color var(--transition-fast);
}

.post__cta-secondary:hover {
  color: var(--color-text-secondary);
}

/* ── Author bio ───────────────────────────────────────────── */
.post__author-bio {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-xl);
}

.post__author-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-blue), #8B5CF6);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: 700;
  color: white;
}

.post__author-info strong {
  color: var(--color-text-primary);
  font-size: var(--text-lg);
  display: block;
}

.post__author-info > span {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
}

.post__author-info p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.post__author-links {
  display: flex;
  gap: var(--space-md);
}

.post__author-links a {
  color: var(--color-blue);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.post__author-links a:hover {
  color: var(--color-blue-mid);
}

/* ── Related posts ────────────────────────────────────────── */
.post__related {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.post__related h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: var(--tracking-tight);
}

.post-grid--related {
  grid-template-columns: repeat(2, 1fr);
  padding-bottom: 0;
}

/* ── EvervaultCard (adapted from Aceternity UI) ───────────── */

/*
 * .ec-card       — the outer interactive wrapper (position:relative, overflow:hidden)
 * .ec-gradient   — green→blue gradient revealed by radial mask on hover
 * .ec-noise      — scrambled random-char text, also revealed by radial mask
 * .ec-content    — the real card content sitting above the effects (z-index)
 *
 * CSS custom properties --ec-x / --ec-y are set by JS on mousemove.
 * The radial-gradient mask is applied to both .ec-gradient and .ec-noise
 * so they reveal in sync around the cursor position.
 */

.ec-card {
  position: relative;
  overflow: hidden;
  --ec-x: 50%;
  --ec-y: 50%;
  cursor: pointer;
}

/* Green→blue gradient layer (revealed by radial mask) */
.ec-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34,197,94,0.85) 0%, rgba(29,78,216,0.85) 100%);
  /* Always visible at base opacity — no hover required to discover the effect */
  opacity: 0.65;
  transition: opacity 300ms ease;
  backdrop-filter: blur(20px);
  -webkit-mask-image: radial-gradient(320px at var(--ec-x) var(--ec-y), white, transparent);
          mask-image: radial-gradient(320px at var(--ec-x) var(--ec-y), white, transparent);
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

.ec-card:hover .ec-gradient {
  opacity: 1;
}

/* Scrambled noise text layer — no mask, fills the entire card */
.ec-noise {
  position: absolute;
  inset: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
  white-space: pre-wrap;
  word-break: break-all;
  overflow: hidden;
  opacity: 0.55;
  mix-blend-mode: overlay;
  transition: opacity 300ms ease;
  /* No mask — cipher text fills the full card area */
  pointer-events: none;
  z-index: 2;
  padding: 12px;
  border-radius: inherit;
}

.ec-card:hover .ec-noise {
  opacity: 0.85;
}

/* Real content sits above both effect layers */
.ec-content {
  position: relative;
  z-index: 3;
}

/* ── Featured post card (blog listing hero) ───────────────── */
.post-card--featured {
  grid-column: 1 / -1; /* full width across all columns */
  min-height: 380px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  /* Stronger border to signal this is the main attraction */
  border-color: rgba(34,197,94,0.18);
  box-shadow: 0 0 60px rgba(34,197,94,0.08), var(--shadow-card);
}

.post-card--featured:hover {
  border-color: rgba(34,197,94,0.4);
  box-shadow: 0 0 80px rgba(34,197,94,0.14), var(--shadow-card);
  transform: translateY(-2px);
}

.post-card--featured .ec-card {
  border-radius: 0;
  background: #050810;   /* near-black — maximum contrast for the editorial title */
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(34,197,94,0.15);
  /* Subtle inner glow to reinforce the cipher effect */
  box-shadow: inset 0 0 60px rgba(0,0,0,0.6);
}

.post-card--featured .ec-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-sm);
  padding: var(--space-2xl) var(--space-xl);
  position: relative;
  z-index: 3;
}

/*
 * Editorial serif title — mirrors the magazine reference:
 * large, bold, high-contrast serif on a dark field.
 * Size deliberately large so it reads immediately.
 */
.post-card--featured .ec-card-title {
  font-family: Georgia, 'Palatino Linotype', Palatino, 'Book Antiqua', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

/* Claude logo sunburst — inline SVG, tapered ellipse spokes */
.post-card--featured .ec-card-splat {
  color: #f59e0b;
  font-style: normal;
  display: inline-block;
}

/* Corner + icons (from the demo) */
.ec-corner-icon {
  position: absolute;
  width: 22px;
  height: 22px;
  color: rgba(255,255,255,0.20);
  stroke-width: 1.5;
  z-index: 4;
  transition: color var(--transition-base);
}
/* Always show the corner icons at a visible level (not just on hover) */
.ec-card .ec-corner-icon { color: rgba(255,255,255,0.30); }
.ec-card:hover .ec-corner-icon { color: rgba(255,255,255,0.70); }

.ec-corner-icon--tl { top: -10px;  left: -10px; }
.ec-corner-icon--tr { top: -10px;  right: -10px; }
.ec-corner-icon--bl { bottom: -10px; left: -10px; }
.ec-corner-icon--br { bottom: -10px; right: -10px; }

/* Right side: post metadata panel */
.post-card--featured .post-card__body {
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
}

.post-card--featured .post-card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-orange);
}

.post-card--featured .post-card__title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
}

.post-card--featured .post-card__excerpt {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.post-card--featured .post-card__read-more {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .post-card--featured {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .post-card--featured .ec-card {
    min-height: 260px;
    border-right: none;
    border-bottom: 1px solid rgba(34,197,94,0.15);
  }
  .post-card--featured .ec-card-title {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--color-navy-mid);
  border-top: 1px solid var(--color-border-subtle);
  padding: var(--space-2xl) 0 var(--space-xl);
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}
.footer__brand { flex: 0 0 auto; max-width: 220px; }
.footer__brand-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__tagline { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.5; }
.footer__links { display: flex; gap: var(--space-xl); flex-wrap: wrap; align-items: center; }
.footer__link { font-size: var(--text-sm); color: var(--color-text-muted); transition: color var(--transition-fast); }
.footer__link:hover { color: var(--color-text-primary); }
.footer__social { display: flex; align-items: center; gap: var(--space-md); }
.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.footer__social-link:hover { background: var(--glass-bg-hover); color: var(--color-text-primary); border-color: var(--color-border); }
.footer__bottom { padding-top: var(--space-lg); border-top: 1px solid var(--color-border-subtle); font-size: var(--text-xs); color: var(--color-text-muted); text-align: center; }
@media (max-width: 767px) {
  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
  .footer__links { justify-content: center; }
  .footer__social { justify-content: center; }
}
