/* ===== BLOG HERO ===== */
.blog-hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,46,54,0.06) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
}

.blog-hero-content {
  max-width: 680px;
  margin: 0 auto;
}

.blog-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.05;
  margin-bottom: 16px;
}

.blog-hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== BLOG SECTION ===== */
.blog-section {
  background: var(--bg-dark);
}

/* ===== CATEGORY FILTER ===== */
.blog-cats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.blog-cat {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.blog-cat:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.blog-cat.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 16px var(--red-glow);
}

/* ===== ARTICLES GRID ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== ARTICLE CARD ===== */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.article-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.article-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.article-card-link:hover { color: inherit; }

/* Image / placeholder area */
.article-card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: rgba(255,46,54,0.05);
  border-bottom: 1px solid var(--border);
}

.article-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,46,54,0.08) 0%, rgba(255,255,255,0.02) 100%);
}

.article-img-icon {
  font-size: 56px;
  line-height: 1;
  filter: grayscale(0.2);
}

/* Category badge */
.article-cat-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-cat-badge.plugins  { background: rgba(99, 179, 237, 0.15); color: #63b3ed; border: 1px solid rgba(99,179,237,0.3); }
.article-cat-badge.circuits { background: rgba(255, 193, 7, 0.15); color: #ffc107; border: 1px solid rgba(255,193,7,0.3); }
.article-cat-badge.guides   { background: rgba(72, 187, 120, 0.15); color: #48bb78; border: 1px solid rgba(72,187,120,0.3); }
.article-cat-badge.builds   { background: rgba(159, 122, 234, 0.15); color: #9f7aea; border: 1px solid rgba(159,122,234,0.3); }

/* Coming soon ribbon */
.coming-soon-ribbon {
  position: absolute;
  top: 14px;
  right: -24px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 32px;
  transform: rotate(35deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.coming-soon-card {
  opacity: 0.65;
  pointer-events: none;
}

/* Card body */
.article-card-body {
  padding: 22px 24px 24px;
}

.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.article-date,
.article-read-time {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.article-date::after {
  content: '·';
  margin-left: 12px;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
  color: var(--text-primary);
  transition: color var(--transition);
}

.article-card-link:hover .article-title {
  color: var(--red);
}

.article-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}

.article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  transition: gap var(--transition);
}

.article-card-link:hover .article-read-more {
  gap: 10px;
}

.coming-soon-text {
  color: var(--text-muted);
}

/* Stagger grid reveal */
.articles-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.articles-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.articles-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.articles-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.articles-grid .reveal:nth-child(6) { transition-delay: 0.40s; }

/* ===== BLOG CTA ===== */
.blog-cta-section {
  background: rgba(15, 18, 15, 1);
}

.blog-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 48px;
  position: relative;
  overflow: hidden;
}

.blog-cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.blog-cta-card h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.blog-cta-card p {
  color: var(--text-secondary);
  font-size: 16px;
}

.blog-cta-btns {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ===== NAV ACTIVE STATE ===== */
.nav-active {
  color: var(--red) !important;
}
.nav-active::after {
  width: 100% !important;
  background: var(--red) !important;
}

/* ===== ARTICLE PAGE (individual posts) ===== */
.article-hero {
  padding: 130px 24px 60px;
  background: linear-gradient(180deg, rgba(255,46,54,0.05) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
}

.article-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.article-breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.article-breadcrumb a:hover { color: var(--red); }

.article-breadcrumb-sep {
  color: var(--text-muted);
  font-size: 10px;
}

.article-hero-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.article-hero-badge.plugins  { background: rgba(99, 179, 237, 0.15); color: #63b3ed; border: 1px solid rgba(99,179,237,0.3); }
.article-hero-badge.circuits { background: rgba(255, 193, 7, 0.15); color: #ffc107; border: 1px solid rgba(255,193,7,0.3); }
.article-hero-badge.guides   { background: rgba(72, 187, 120, 0.15); color: #48bb78; border: 1px solid rgba(72,187,120,0.3); }
.article-hero-badge.builds   { background: rgba(159, 122, 234, 0.15); color: #9f7aea; border: 1px solid rgba(159,122,234,0.3); }

.article-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.article-hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.article-hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== ARTICLE BODY ===== */
.article-body-section {
  background: var(--bg-dark);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Article content */
.article-content {
  min-width: 0;
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 48px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-primary);
}

.article-content h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.article-content p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.article-content ul,
.article-content ol {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 18px;
  padding-left: 1.5em;
}

.article-content li { margin-bottom: 6px; }

.article-content strong { color: var(--text-primary); font-weight: 600; }

.article-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Plugin cards inside article */
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.plugin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.plugin-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.plugin-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.plugin-card:hover::before { opacity: 1; }

.plugin-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.plugin-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.plugin-stage {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 100px;
  flex-shrink: 0;
}

.plugin-stage.early  { background: rgba(72, 187, 120, 0.12); color: #48bb78; border: 1px solid rgba(72,187,120,0.25); }
.plugin-stage.mid    { background: rgba(255, 193, 7, 0.12); color: #ffc107; border: 1px solid rgba(255,193,7,0.25); }
.plugin-stage.late   { background: rgba(255, 46, 54, 0.12); color: var(--red); border: 1px solid rgba(255,46,54,0.25); }
.plugin-stage.all    { background: rgba(99, 179, 237, 0.12); color: #63b3ed; border: 1px solid rgba(99,179,237,0.25); }

.plugin-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.plugin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.plugin-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Callout / tip boxes */
.callout {
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
  border-left: 3px solid;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.callout-icon {
  font-size: 20px;
  line-height: 1.4;
  flex-shrink: 0;
}

.callout-body {
  flex: 1;
}

.callout-body p {
  margin-bottom: 0 !important;
  font-size: 15px !important;
}

.callout.tip {
  background: rgba(72, 187, 120, 0.07);
  border-color: #48bb78;
}

.callout.info {
  background: rgba(99, 179, 237, 0.07);
  border-color: #63b3ed;
}

.callout.warn {
  background: rgba(255, 193, 7, 0.07);
  border-color: #ffc107;
}

.callout.server {
  background: rgba(255, 46, 54, 0.07);
  border-color: var(--red);
}

/* Table of contents / sidebar */
.article-sidebar {
  position: sticky;
  top: 100px;
}

.toc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}

.toc-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-list li { margin-bottom: 0; }

.toc-list a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all var(--transition);
  line-height: 1.4;
}

.toc-list a:hover,
.toc-list a.toc-active {
  color: var(--red);
  border-left-color: var(--red);
  background: rgba(255,46,54,0.06);
}

/* Sidebar CTA */
.sidebar-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sidebar-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.sidebar-cta h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.sidebar-cta p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.5;
}

.sidebar-cta .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}

/* Section intro block */
.section-intro {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.section-intro p {
  margin-bottom: 0 !important;
  color: var(--text-secondary);
  font-size: 15px !important;
}

/* Stage dividers */
.stage-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0 24px;
}

.stage-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.stage-divider-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: 100px;
  border: 1px solid;
  white-space: nowrap;
}

.stage-divider.early .stage-divider-label { color: #48bb78; border-color: rgba(72,187,120,0.4); background: rgba(72,187,120,0.08); }
.stage-divider.mid   .stage-divider-label { color: #ffc107; border-color: rgba(255,193,7,0.4); background: rgba(255,193,7,0.08); }
.stage-divider.late  .stage-divider-label { color: var(--red); border-color: rgba(255,46,54,0.4); background: rgba(255,46,54,0.08); }

/* Article footer CTA */
.article-cta-section {
  background: rgba(15, 18, 15, 1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .blog-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .blog-cta-btns {
    justify-content: center;
  }

  .plugin-grid {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    padding: 110px 24px 60px;
  }
}

@media (max-width: 540px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .blog-cats {
    gap: 8px;
  }
}
