/* ===== Blog — ScoreVitals ===== */

/* ---------- Blog Hero ---------- */
.blog-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background:
    radial-gradient(circle at 40% 40%, rgba(45, 212, 191, .08) 0%, transparent 50%),
    radial-gradient(circle at 65% 55%, rgba(251, 146, 60, .05) 0%, transparent 45%);
  pointer-events: none;
}

.blog-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  max-width: 700px;
  margin: 0 auto;
}

.blog-hero .subtitle {
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 20px auto 0;
  line-height: 1.7;
}

/* ---------- Blog Listing Grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* ---------- Blog Card ---------- */
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1),
              border-color .25s,
              box-shadow .35s;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .25),
              0 0 0 1px rgba(255, 255, 255, .06);
  opacity: 1;
}

/* Category pill */
.blog-category {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 16px;
}

.blog-category--training {
  background: rgba(251, 146, 60, .12);
  color: var(--pillar-cardio);
  border: 1px solid rgba(251, 146, 60, .20);
}

.blog-category--science {
  background: var(--brand-dim);
  color: var(--brand);
  border: 1px solid rgba(45, 212, 191, .20);
}

.blog-category--recovery {
  background: rgba(167, 139, 250, .12);
  color: var(--pillar-recovery);
  border: 1px solid rgba(167, 139, 250, .20);
}

.blog-category--sleep {
  background: rgba(129, 140, 248, .12);
  color: var(--pillar-sleep);
  border: 1px solid rgba(129, 140, 248, .20);
}

/* Card title */
.blog-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 10px;
}

/* Card excerpt */
.blog-card-excerpt {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card meta */
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  font-size: .78rem;
  color: var(--text-muted);
}

.blog-card-meta .separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: .5;
  flex-shrink: 0;
}

/* ---------- Article Page ---------- */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Article header */
.blog-article-header {
  padding: 140px 0 48px;
  position: relative;
}

.blog-article-header::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(45, 212, 191, .06) 0%, transparent 60%);
  pointer-events: none;
}

.blog-article-header .blog-category {
  margin-bottom: 20px;
  position: relative;
}

.blog-article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  max-width: 680px;
  position: relative;
}

.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: .88rem;
  color: var(--text-muted);
  position: relative;
}

.blog-article-meta .separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: .5;
  flex-shrink: 0;
}

/* Article body typography */
.blog-article-body {
  padding-bottom: 64px;
  position: relative;
}

.blog-article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin-top: 48px;
  margin-bottom: 18px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--text-primary);
}

.blog-article-body h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.blog-article-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.blog-article-body p {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.blog-article-body p:last-child {
  margin-bottom: 0;
}

.blog-article-body a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}

.blog-article-body a:hover {
  border-bottom-color: var(--brand);
  opacity: 1;
}

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

.blog-article-body ul,
.blog-article-body ol {
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 20px;
  padding-left: 24px;
}

.blog-article-body li {
  margin-bottom: 8px;
}

.blog-article-body li::marker {
  color: var(--brand);
}

.blog-article-body blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--brand);
  background: var(--brand-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.blog-article-body blockquote p {
  color: var(--text-primary);
  font-size: .92rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 0;
}

/* Article end CTA */
.blog-article-cta {
  margin-top: 56px;
  padding: 36px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-article-cta::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(45, 212, 191, .06) 0%, transparent 70%);
  pointer-events: none;
}

.blog-article-cta h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}

.blog-article-cta p {
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto 24px;
  position: relative;
}

.blog-article-cta .btn-primary {
  position: relative;
}

/* ---------- Blog Grid — Home Page ---------- */
.blog-grid--home {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
}

/* ---------- Related Articles ---------- */
.related-articles {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.related-articles h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.related-articles-grid .blog-card {
  padding: 24px 22px;
}

.related-articles-grid .blog-card-title {
  font-size: 1.05rem;
}

.related-articles-grid .blog-card-excerpt {
  font-size: .84rem;
  -webkit-line-clamp: 2;
}

/* ---------- Blog Responsive ---------- */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid--home {
    grid-template-columns: 1fr;
  }

  .related-articles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 120px 0 48px;
  }

  .blog-article-header {
    padding: 120px 0 40px;
  }

  .blog-article-header h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  }

  .blog-article-body h2 {
    font-size: 1.2rem;
    margin-top: 40px;
    padding-top: 32px;
  }

  .blog-article-cta {
    padding: 28px 24px;
  }
}

@media (max-width: 640px) {
  .blog-hero {
    padding: 100px 0 40px;
  }

  .blog-article-header {
    padding: 100px 0 32px;
  }

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

  .blog-card-title {
    font-size: 1.05rem;
  }

  .blog-card-excerpt {
    font-size: .84rem;
  }

  .blog-article-body p,
  .blog-article-body ul,
  .blog-article-body ol {
    font-size: .9rem;
  }

  .blog-article-body h2 {
    font-size: 1.12rem;
    margin-top: 36px;
    padding-top: 28px;
  }

  .blog-article-body blockquote {
    margin: 20px 0;
    padding: 16px 18px;
  }

  .blog-article-cta {
    padding: 24px 20px;
    margin-top: 40px;
  }

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