/* ============================================
   Blog Post Page Styles — blog-post.css
   ============================================ */

/* Hero */
.blog-post-hero {
  padding: 120px 0 40px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.blog-breadcrumb .breadcrumb-item a {
  color: #64748b;
  text-decoration: none;
}
.blog-breadcrumb .breadcrumb-item.active { color: #1e293b; }

.blog-category-badge {
  display: inline-block;
  background: #fef2f2;
  color: #e63946;
  padding: .25rem .75rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.blog-post-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}

.blog-post-excerpt {
  font-size: 1.05rem;
  color: #475569;
  margin-top: .75rem;
  max-width: 720px;
}

.blog-post-meta {
  font-size: .85rem;
  color: #64748b;
}

.blog-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  padding: .2rem .6rem;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 500;
}

/* Featured image */
.blog-featured-img-wrap {
  padding: 2rem 0 0;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.blog-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

/* Article content */
.blog-article-content {
  font-size: 1rem;
  line-height: 1.85;
  color: #1e293b;
}

.blog-article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: .75rem;
  color: #0f172a;
}

.blog-article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: .5rem;
  color: #0f172a;
}

.blog-article-content p { margin-bottom: 1.25rem; }

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

.blog-article-content li { margin-bottom: .4rem; }

.blog-article-content blockquote {
  border-left: 4px solid #e63946;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  color: #374151;
  font-style: italic;
  margin: 1.5rem 0;
}

.blog-article-content pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 10px;
  overflow-x: auto;
  font-size: .875rem;
  margin-bottom: 1.25rem;
}

.blog-article-content code {
  background: #f1f5f9;
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .85rem;
  color: #e63946;
}

.blog-article-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.blog-article-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1rem 0;
}

.blog-article-content a {
  color: #e63946;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Share buttons */
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
}
.btn-share:hover { opacity: .85; }
.btn-share.linkedin { background: #0077b5; color: #fff; }
.btn-share.twitter  { background: #000; color: #fff; }
.btn-share.facebook { background: #1877f2; color: #fff; }
.btn-share.whatsapp { background: #25d366; color: #fff; }

/* Author card */
.blog-author-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e63946;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Sidebar */
.blog-sidebar { position: sticky; top: 90px; }

.blog-sidebar-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: 14px;
  padding: 1.5rem;
}
.blog-sidebar-cta p { color: #94a3b8; }

.blog-sidebar-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.sidebar-card-title {
  padding: .85rem 1.1rem;
  font-weight: 700;
  font-size: .85rem;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
}

.sidebar-related-list { padding: .5rem; }

.related-post-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .65rem .5rem;
  border-radius: 8px;
  text-decoration: none;
  color: #1e293b;
  transition: background .12s;
}
.related-post-item:hover { background: #f8fafc; }

.related-post-item img {
  width: 64px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.related-post-title {
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post-meta {
  font-size: .72rem;
  color: #94a3b8;
  margin-top: .25rem;
}
