/*
  Blog styles (index + article/post pages).
  Values below are the literal tokens from applications/DESIGN.md (colors,
  typography, effects, spacing, rounded) — same glassmorphism language used
  in styles/home.css, kept inline to match that convention.
*/

/* Blog index hero — same split-hero component as home, minus the media column */
.bp-hero-no-media .hm-hero-split-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.bp-hero-no-media .hm-hero-split-text h1 {
  text-align: center;
}

.bp-hero-no-media .hm-hero-split-text .hm-hero-body {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.bp-hero-no-media .hm-hero-split-text .hm-hero-buttons {
  justify-content: center;
}

/* Shared type styles */
.blog-main h1,
.blog-main h2,
.bp-article-header h1 {
  font-family: "Dela Gothic One", cursive;
  font-weight: 400;
}

.blog-main p,
.bp-article-content p {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.6;
}

/* Main wrapper (index + article share this canvas) */
.blog-main {
  padding: 2rem;
  color: #fff;
  background-color: #1a1a1a; /* colors.canvas */
}

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

.bp-section {
  padding: 64px 0; /* spacing.section */
}

.bp-intro {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem; /* body-lg */
  line-height: 1.6;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: #a0a0a0; /* ink-muted */
}

.blog-main h2 {
  font-size: 2.5rem; /* display-sm */
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

/* ---------------------------------------------------------------- */
/* Blog index — post card grid                                      */
/* ---------------------------------------------------------------- */

.bp-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; /* spacing.lg */
}

.bp-post-card {
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.05); /* surface-glass */
  border: 1px solid rgba(255, 255, 255, 0.1); /* hairline */
  border-radius: 8px; /* rounded.sm */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* card-shadow */
  backdrop-filter: blur(5px); /* glass-blur */
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
}

.bp-post-card:hover {
  background-color: rgba(255, 255, 255, 0.08); /* surface-glass-hover */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* card-shadow-hover */
  transform: translateY(-2px); /* hover-lift */
}

.bp-post-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
}

.bp-post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp-post-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem 1.75rem 1.75rem;
  flex: 1;
}

.bp-post-card-meta {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem; /* typography.caption */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d9c7f0; /* hm-accent */
  margin: 0 0 0.75rem;
}

.bp-post-card-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.25rem; /* typography.card-title */
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.bp-post-card-excerpt {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #a0a0a0; /* ink-muted */
  margin: 0 0 1.5rem;
}

.bp-post-card-link {
  margin-top: auto;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: #8a2be2; /* colors.primary */
}

/* ---------------------------------------------------------------- */
/* Blog article / post page                                         */
/* ---------------------------------------------------------------- */

.bp-article-header {
  background: linear-gradient(135deg, #0d0d0d, #782dbf);
  color: white;
  padding: 3rem 1.5rem 2.5rem;
}

.bp-article-header-inner {
  max-width: 760px;
  margin: 0 auto;
}

.bp-article-eyebrow {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem; /* typography.caption */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d9c7f0;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2); /* hairline-strong */
  border-radius: 9999px; /* rounded.pill */
  padding: 6px 16px;
  margin: 0 0 1.25rem;
}

.bp-article-header h1 {
  font-size: 2.15rem;
  line-height: 1.25;
  margin: 0 0 1rem;
  text-align: left;
}

@media (min-width: 900px) {
  .bp-article-header h1 {
    font-size: 2.9rem;
  }
}

.bp-article-meta {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9375rem;
  color: #a0a0a0; /* ink-muted */
  margin: 0;
}

.bp-article-meta span + span::before {
  content: "•";
  margin: 0 0.5rem;
  color: #666;
}

.bp-article-cover {
  max-width: 640px;
  margin: -2rem auto 0;
  padding: 0 1.5rem;
}

.bp-article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px; /* rounded.md */
  border: 1px solid rgba(255, 255, 255, 0.1); /* hairline */
  display: block;
}

.bp-article-main {
  padding: 3rem 1.5rem 2rem;
  color: #fff;
  background-color: #1a1a1a; /* colors.canvas */
}

.bp-article-content {
  max-width: 720px;
  margin: 0 auto;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #cccccc; /* ink-subtle */
}

.bp-article-content h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #fff;
  margin: 2.25rem 0 1rem;
}

.bp-article-content h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
  margin: 1.75rem 0 0.75rem;
}

.bp-article-content p {
  margin: 0 0 1.25rem;
}

.bp-article-content ul,
.bp-article-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.bp-article-content li {
  margin-bottom: 0.5rem;
}

.bp-article-content a {
  color: #8a2be2; /* colors.primary */
}

.bp-article-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid #8a2be2;
  background-color: rgba(255, 255, 255, 0.05); /* surface-glass */
  border-radius: 0 8px 8px 0;
  color: #ffffff;
  font-style: italic;
}

.bp-back-link {
  display: inline-block;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #a0a0a0;
  text-decoration: none;
}

.bp-back-link:hover {
  color: #fff;
}

.bp-back-link-row {
  max-width: 720px;
  margin: 0 auto;
}

/* Reuse the final-CTA gradient border pattern for the end-of-article CTA */
.bp-article-cta {
  max-width: 920px;
  margin: 3rem auto 0;
  background: linear-gradient(to right, #6a0dad, #8a2be2); /* gradient-primary */
  padding: 3px; /* call-to-action.gradientBorderWidth */
  border-radius: 12px; /* rounded.md */
}

.bp-article-cta-box {
  background-color: rgba(26, 26, 26, 0.8); /* surface-glass-cta */
  backdrop-filter: blur(10px); /* glass-blur-strong */
  border-radius: 10px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.bp-article-cta-box h3 {
  font-family: "Dela Gothic One", cursive;
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.bp-article-cta-box p {
  font-family: "Space Grotesk", sans-serif;
  color: #a0a0a0;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.bp-article-cta-box .bp-button {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  background: linear-gradient(to right, #6a0dad, #8a2be2);
  color: #fff;
  transition: all 0.3s ease;
}

.bp-article-cta-box .bp-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
