/* ===================================
   BLOG CMS — Styles
   Inherits Neumorphism design system
   from the main landing CSS
   =================================== */

/* ===== BLOG MAIN ===== */
.blog-main {
  padding-top: 100px;
  min-height: 100vh;
}

/* ===== BLOG HERO ===== */
.blog-hero {
  text-align: center;
  padding: 40px 0 50px;
}

.blog-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.blog-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== BREADCRUMBS ===== */
.blog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 20px 0 8px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  flex-wrap: wrap;
}

.blog-breadcrumbs a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.blog-breadcrumbs a:hover {
  color: var(--color-primary);
}

.blog-breadcrumbs__sep {
  color: var(--text-muted);
  font-size: 12px;
}

/* ===== CATEGORY TABS ===== */
.blog-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.blog-category-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--nm-bg-card);
  box-shadow: var(--nm-shadow-sm);
  border-radius: var(--radius-2xl);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
}

.blog-category-tab:hover,
.blog-category-tab--active {
  color: var(--color-primary);
  box-shadow: var(--nm-shadow-md);
  transform: translateY(-2px);
}

.blog-category-tab span {
  opacity: 0.5;
  font-weight: 400;
}

/* ===== BLOG GRID ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  padding-bottom: 60px;
}

.blog-empty {
  text-align: center;
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: var(--text-lg);
  padding: 60px 0;
}

/* ===== BLOG CARD ===== */
.blog-card {
  background: var(--nm-bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--nm-shadow-md);
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--nm-shadow-lg);
}

.blog-card__cover {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--nm-surface);
  position: relative;
}

.blog-card__cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0.3;
}

.blog-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__category {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: auto;
}

/* ===== ARTICLE PAGE ===== */
.blog-article {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.blog-article__cover {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--nm-shadow-md);
}

.blog-article__cover img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-article__header {
  margin-bottom: 36px;
}

.blog-article__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.blog-article__category {
  background: rgba(139, 92, 246, 0.1);
  color: var(--color-primary);
  padding: 4px 14px;
  border-radius: var(--radius-2xl);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-article__date,
.blog-article__read-time {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.blog-article__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.blog-article__excerpt {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

/* ===== ARTICLE CONTENT (WYSIWYG output) ===== */
.blog-article__content {
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--text-primary);
}

.blog-article__content h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  margin: 40px 0 16px;
  color: var(--text-primary);
}

.blog-article__content h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

.blog-article__content p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.blog-article__content img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  margin: 24px 0;
  box-shadow: var(--nm-shadow-sm);
}

.blog-article__content ul,
.blog-article__content ol {
  margin: 16px 0;
  padding-left: 24px;
  color: var(--text-secondary);
}

.blog-article__content ul {
  list-style: disc;
}

.blog-article__content ol {
  list-style: decimal;
}

.blog-article__content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.blog-article__content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.blog-article__content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-article__content a:hover {
  color: var(--color-primary-dark);
}

.blog-article__content hr {
  border: none;
  height: 1px;
  background: var(--nm-shadow-dark);
  margin: 40px 0;
  opacity: 0.3;
}

/* ===== AUTHOR ===== */
.blog-article__author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--nm-bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--nm-shadow-sm);
  margin-top: 40px;
}

.blog-article__author-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--nm-surface);
  box-shadow: var(--nm-inset-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.blog-article__author-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-primary);
}

.blog-article__author-role {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ===== BLOG CTA ===== */
.blog-cta {
  text-align: center;
  padding: 48px 32px;
  background: var(--nm-bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--nm-shadow-md);
  margin: 40px auto 60px;
  max-width: 760px;
}

.blog-cta__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.blog-cta__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .blog-hero__title {
    font-size: var(--text-2xl);
  }

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

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

  .blog-card__cover {
    height: 160px;
  }

  .blog-categories {
    gap: 8px;
  }

  .blog-category-tab {
    padding: 8px 14px;
    font-size: var(--text-xs);
  }
}
