/* ============================================
   BLOG / ARTICLE STYLES
   ============================================ */

.page-blog {
  background: radial-gradient(circle at top, rgba(212, 175, 55, 0.08), rgba(17, 21, 28, 1) 30%);
  color: var(--color-slate-100);
}

body.dark-mode.page-blog {
  background: #090b10;
}

.blog-hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.12), transparent 30%);
}

.blog-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.blog-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 21, 28, 0) 0%, rgba(17, 21, 28, 0.92) 100%);
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-12) 0;
}

.blog-hero-content .container {
  color: white;
}

.blog-category {
  display: inline-block;
  background: rgba(212, 175, 55, 0.2);
  color: var(--color-slate-950);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--space-4);
}

.blog-hero h1 {
  color: white;
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  max-width: 800px;
}

.blog-meta {
  display: flex;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  flex-wrap: wrap;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Article Body */
.blog-article {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-16) 0;
  color: rgba(255, 255, 255, 0.88);
}

.blog-article h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-12);
  color: white;
}

.blog-article h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  color: white;
}

.blog-article p {
  color: rgba(255, 255, 255, 0.76);
  font-size: var(--text-base);
}

body.dark-mode .blog-article p {
  color: rgba(255, 255, 255, 0.72);
}

.blog-article ul {
  margin-bottom: var(--space-6);
}

.blog-article li {
  color: rgba(255, 255, 255, 0.76);
}

body.dark-mode .blog-article li {
  color: rgba(255, 255, 255, 0.72);
}

.blog-callout {
  background: rgba(212, 175, 55, 0.12);
  border-left: 4px solid var(--color-primary);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  margin: var(--space-8) 0;
}

body.dark-mode .blog-callout {
  background: rgba(212, 175, 55, 0.08);
}

.blog-callout p {
  margin-bottom: 0;
  color: rgba(17, 21, 28, 0.9);
  font-size: var(--text-sm);
}

body.dark-mode .blog-callout p {
  color: rgba(255, 255, 255, 0.86);
}

.blog-cta {
  background: rgba(17, 21, 28, 0.96);
  color: white;
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  text-align: center;
  margin: var(--space-12) 0;
  border: 1px solid rgba(212, 175, 55, 0.18);
}

.blog-cta h3 {
  color: white;
  margin-bottom: var(--space-4);
}

.blog-cta p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: var(--space-6);
}

/* Related Posts */
.related-posts {
  background: rgba(17, 21, 28, 0.95);
  padding: var(--space-16) 0;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
}

body.dark-mode .related-posts {
  background: rgba(17, 21, 28, 0.95);
}

.related-posts h3 {
  margin-bottom: var(--space-8);
  color: white;
}

/* Author box */
.author-box {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xl);
  margin-top: var(--space-12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .author-box {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.10);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-slate-950);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .blog-hero {
    height: 280px;
  }

  .blog-hero h1 {
    font-size: var(--text-2xl);
  }
}
