/* ============================================
   BLOG — Listing & Post Styles
   ============================================ */

/* --- Blog Listing Page --- */
.blog-listing {
  padding: 8rem 0 4rem;
  min-height: 100vh;
  background: #0a0e1a;
}

.blog-posts-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 720px;
  margin: 0 auto;
}

.blog-post-card {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  text-decoration: none;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.blog-post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6366f1, #06b6d4, transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.blog-post-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-post-card:hover::before {
  opacity: 1;
}

.blog-post-card time {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.75rem;
}

.blog-post-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.blog-post-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.blog-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: #818cf8;
  transition: color 0.2s ease;
}

.blog-post-card:hover .blog-read-more {
  color: #a5b4fc;
}

/* --- Blog Post Page --- */
.blog-post {
  padding: 8rem 0 4rem;
  min-height: 100vh;
  background: #0a0e1a;
}

.blog-back-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #818cf8;
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.2s ease;
}

.blog-back-link:hover {
  color: #a5b4fc;
}

.blog-post-header {
  max-width: 720px;
  margin: 0 auto 3rem;
}

.blog-post-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}

.blog-meta-sep {
  color: rgba(255, 255, 255, 0.2);
}

/* --- Blog Content (Prose) --- */
.blog-content {
  max-width: 720px;
  margin: 0 auto;
}

.blog-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.blog-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 2rem 0 0.75rem;
}

.blog-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin: 1.5rem 0 0.5rem;
}

.blog-content p {
  color: #e2e8f0;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.blog-content a {
  color: #818cf8;
  text-decoration: none;
  border-bottom: 1px solid rgba(129, 140, 248, 0.3);
  transition: border-color 0.2s ease;
}

.blog-content a:hover {
  border-bottom-color: #818cf8;
}

.blog-content strong {
  color: #fff;
  font-weight: 600;
}

.blog-content code {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-size: 0.88em;
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  color: #e2e8f0;
}

.blog-content pre {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.blog-content pre code {
  background: none;
  border-radius: 0;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.7;
}

.blog-content blockquote {
  border-left: 3px solid #6366f1;
  background: rgba(99, 102, 241, 0.06);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.blog-content blockquote p {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin-bottom: 0;
}

.blog-content ul,
.blog-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.blog-content li {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 0.35rem;
}

.blog-content img {
  border-radius: 12px;
  max-width: 100%;
  margin: 1.5rem 0;
}

.blog-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 2.5rem 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .blog-listing {
    padding: 7rem 0 3rem;
  }

  .blog-post {
    padding: 7rem 0 3rem;
  }

  .blog-post-card {
    padding: 1.5rem;
  }

  .blog-post-header h1 {
    font-size: 1.75rem;
  }

  .blog-content pre {
    padding: 1rem;
    border-radius: 8px;
  }
}
