/* ============================================================
   blog.css — StripPilot Blog Styles
   Complements guides.css. Same design tokens:
     bg: #07060b  |  text: #e8e4ef  |  gold: #f59e0b
     purple: #8b5cf6  |  pink: #f43f5e
   Fonts: Space Grotesk (headings), DM Sans (body)
   ============================================================ */

/* ----------------------------------------------------------
   BLOG HERO
   ---------------------------------------------------------- */
.blog-hero {
  position: relative;
  padding: 120px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(139, 92, 246, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 60%, rgba(244, 63, 94, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.blog-hero .badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.blog-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  color: #e8e4ef;
  margin: 0 auto 20px;
  max-width: 760px;
}

.blog-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero .hero-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  color: #9c95ab;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Article-style post hero (used on individual post pages) */
.blog-hero--post {
  padding: 100px 24px 60px;
  text-align: left;
}

.blog-hero--post .blog-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.blog-hero--post .badge {
  margin-bottom: 18px;
}

.blog-hero--post h1 {
  text-align: left;
  margin: 0 0 20px;
}

.blog-hero--post .blog-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: #6b6479;
}

.blog-hero--post .blog-hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-hero--post .blog-hero-meta .dot {
  width: 3px;
  height: 3px;
  background: #6b6479;
  border-radius: 50%;
  display: inline-block;
}

.blog-hero--post .hero-description {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.12rem;
  color: #9c95ab;
  line-height: 1.7;
  margin-top: 24px;
  max-width: 680px;
}

/* ----------------------------------------------------------
   BREADCRUMB
   ---------------------------------------------------------- */
.blog-breadcrumb {
  max-width: 720px;
  margin: 0 auto 8px;
  padding: 0 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: #6b6479;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-breadcrumb a {
  color: #6b6479;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-breadcrumb a:hover {
  color: #a78bfa;
}

.blog-breadcrumb .sep {
  color: #3d3748;
  font-size: 0.75rem;
}

.blog-breadcrumb .current {
  color: #9c95ab;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

/* ----------------------------------------------------------
   BLOG ARTICLE BODY
   ---------------------------------------------------------- */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  font-family: 'DM Sans', sans-serif;
}

.blog-article h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: #e8e4ef;
  margin: 56px 0 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.blog-article h2:first-child {
  margin-top: 0;
}

.blog-article h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: #d4cedf;
  margin: 36px 0 14px;
  line-height: 1.3;
}

.blog-article p {
  font-size: 1.05rem;
  line-height: 1.75rem;
  color: #9c95ab;
  margin-bottom: 20px;
}

.blog-article strong {
  color: #ffffff;
  font-weight: 600;
}

.blog-article em {
  color: #c4bdd0;
  font-style: italic;
}

.blog-article a {
  color: #a78bfa;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.blog-article a:hover {
  color: #c4b5fd;
  border-bottom-color: #a78bfa;
}

/* Lists */
.blog-article ul,
.blog-article ol {
  margin: 0 0 24px 0;
  padding-left: 0;
  list-style: none;
}

.blog-article ul li,
.blog-article ol li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #9c95ab;
  padding: 5px 0 5px 28px;
  position: relative;
}

.blog-article ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 5px;
  color: #f59e0b;
  font-size: 0.85rem;
  line-height: 1.7;
}

.blog-article ol {
  counter-reset: blog-ol;
}

.blog-article ol li {
  counter-increment: blog-ol;
}

.blog-article ol li::before {
  content: counter(blog-ol) '.';
  position: absolute;
  left: 0;
  top: 5px;
  color: #f59e0b;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.7;
  min-width: 20px;
}

/* Nested lists */
.blog-article ul ul,
.blog-article ol ol,
.blog-article ul ol,
.blog-article ol ul {
  margin-top: 8px;
  margin-bottom: 8px;
  padding-left: 20px;
}

/* Highlight / callout box */
.blog-article .highlight-box {
  background: rgba(245, 158, 11, 0.07);
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 32px 0;
}

.blog-article .highlight-box p {
  margin-bottom: 0;
  color: #c4bdd0;
  font-size: 1rem;
}

.blog-article .highlight-box p:not(:last-child) {
  margin-bottom: 12px;
}

.blog-article .highlight-box strong {
  color: #f59e0b;
}

.blog-article .highlight-box .highlight-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 10px;
}

/* Inline price reference */
.blog-article .price-note {
  color: #f59e0b;
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 0.95em;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.09);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Horizontal rule */
.blog-article hr {
  border: none;
  border-top: 1px solid rgba(139, 92, 246, 0.18);
  margin: 48px 0;
}

/* Blockquote */
.blog-article blockquote {
  border-left: 3px solid #8b5cf6;
  margin: 32px 0;
  padding: 16px 24px;
  background: rgba(139, 92, 246, 0.06);
  border-radius: 0 8px 8px 0;
}

.blog-article blockquote p {
  color: #c4bdd0;
  font-style: italic;
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   BLOG EMAIL CTA (bottom of article)
   ---------------------------------------------------------- */
.blog-email-cta {
  max-width: 720px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.blog-email-cta-inner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(245, 158, 11, 0.06) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
}

.blog-email-cta h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e8e4ef;
  margin: 0 0 10px;
}

.blog-email-cta p {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: #9c95ab;
  margin: 0 0 28px;
  line-height: 1.6;
}

.blog-email-cta-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-email-cta-form input[type="email"] {
  flex: 1 1 220px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #e8e4ef;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}

.blog-email-cta-form input[type="email"]::placeholder {
  color: #6b6479;
}

.blog-email-cta-form input[type="email"]:focus {
  border-color: rgba(245, 158, 11, 0.5);
}

.blog-email-cta-form button {
  flex-shrink: 0;
  background: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
  color: #07060b;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

.blog-email-cta-form button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.blog-email-cta .fine-print {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: #4a4457;
  margin: 14px 0 0;
}

/* ----------------------------------------------------------
   BLOG INDEX GRID
   ---------------------------------------------------------- */
.blog-index-section {
  padding: 20px 24px 80px;
}

.blog-index-section .section-header {
  max-width: 1100px;
  margin: 0 auto 40px;
}

.blog-index-section .section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6479;
  margin-bottom: 8px;
}

.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ----------------------------------------------------------
   BLOG CARD
   ---------------------------------------------------------- */
.blog-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(245, 158, 11, 0.12);
}

.blog-card-emoji {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
  display: block;
}

.blog-card-badge {
  display: inline-block;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  align-self: flex-start;
}

.blog-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #e8e4ef;
  margin: 0 0 12px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.blog-card-excerpt {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: #6b6479;
  line-height: 1.65;
  margin: 0 0 20px;
  flex: 1;
}

.blog-card-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: #4a4457;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.blog-card-meta .meta-dot {
  width: 3px;
  height: 3px;
  background: #4a4457;
  border-radius: 50%;
  flex-shrink: 0;
}

.blog-card-cta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f59e0b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
  transition: gap 0.2s;
  margin-top: auto;
  border-bottom: none;
}

.blog-card:hover .blog-card-cta {
  gap: 10px;
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .blog-index-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-email-cta-inner {
    padding: 36px 28px;
  }
}

/* Mobile: 1 column */
@media (max-width: 700px) {
  .blog-hero {
    padding: 100px 20px 60px;
  }

  .blog-hero h1 {
    font-size: 2rem;
  }

  .blog-hero .hero-subtitle {
    font-size: 1rem;
  }

  .blog-hero--post {
    padding: 90px 20px 48px;
  }

  .blog-hero--post .blog-hero-meta {
    gap: 12px;
  }

  .blog-article {
    padding: 40px 20px 60px;
  }

  .blog-article h2 {
    font-size: 1.4rem;
    margin-top: 40px;
  }

  .blog-article h3 {
    font-size: 1.1rem;
  }

  .blog-index-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-card {
    padding: 22px 20px;
  }

  .blog-email-cta {
    padding: 0 20px;
    margin-bottom: 60px;
  }

  .blog-email-cta-inner {
    padding: 32px 22px;
  }

  .blog-email-cta-form {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-email-cta-form input[type="email"],
  .blog-email-cta-form button {
    flex: none;
    width: 100%;
  }

  .blog-breadcrumb {
    padding: 0 20px;
  }

  .blog-index-section {
    padding: 20px 20px 60px;
  }
}
