/* ============================================================
   BLOG STYLES — extends ../style.css
   growgardencalculatorr.online/blog/
   ============================================================ */

/* BREADCRUMBS */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--green-glow);
  text-decoration: none;
  transition: color 0.15s ease;
}
.breadcrumb a:hover {
  color: var(--text-white);
  text-decoration: underline;
}
.breadcrumb .sep {
  color: var(--border-light);
  font-size: 11px;
}
.breadcrumb .current {
  color: var(--text-main);
  font-weight: 600;
}

/* BLOG HUB PAGE */
.blog-hero {
  text-align: center;
  padding: 48px 0 32px;
}
.blog-hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
  line-height: 1.15;
}
.blog-hero .hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.cluster-section {
  margin-bottom: 48px;
}
.cluster-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.cluster-icon {
  font-size: 28px;
}
.cluster-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
}
.cluster-header .cluster-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-glow));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.blog-card:hover {
  border-color: var(--green-primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}
.blog-card:hover::before {
  opacity: 1;
}
.blog-card .card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-bg);
  color: var(--green-glow);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  width: fit-content;
}
.blog-card .card-badge.pillar {
  background: rgba(163, 113, 247, 0.15);
  color: var(--purple-accent);
}
.blog-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
  line-height: 1.3;
}
.blog-card .card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 16px;
}
.blog-card .card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}
.blog-card .card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ARTICLE PAGE */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 32px 0 60px;
}
.article-main {
  min-width: 0;
}
.article-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

/* ARTICLE HEADER */
.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}
.article-header .article-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-bg);
  color: var(--green-glow);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.article-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 12px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.article-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-light);
}

/* ARTICLE BODY */
.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}
.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 28px;
  margin-bottom: 12px;
}
.article-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 20px;
  margin-bottom: 8px;
}
.article-body p {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.75;
  margin-bottom: 16px;
}
.article-body ul,
.article-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.article-body li {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 6px;
}
.article-body a {
  color: var(--green-glow);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.article-body a:hover {
  border-bottom-color: var(--green-glow);
}
.article-body strong {
  color: var(--text-white);
  font-weight: 700;
}
.article-body blockquote {
  border-left: 3px solid var(--green-primary);
  background: var(--bg-card);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--text-muted);
}
.article-body .highlight-box {
  background: var(--green-bg);
  border: 1px solid rgba(46, 160, 67, 0.3);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.article-body .highlight-box h4 {
  color: var(--green-glow);
  margin-top: 0;
  margin-bottom: 8px;
}
.article-body .highlight-box p {
  font-size: 14px;
  margin-bottom: 0;
}
.article-body .warning-box {
  background: rgba(210, 153, 34, 0.1);
  border: 1px solid rgba(210, 153, 34, 0.3);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.article-body .warning-box h4 {
  color: #e3b341;
  margin-top: 0;
  margin-bottom: 8px;
}
.article-body .warning-box p {
  font-size: 14px;
  margin-bottom: 0;
  color: #e3b341;
}
.article-body .formula-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--green-glow);
  overflow-x: auto;
}

/* ARTICLE TABLES */
.article-body .data-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.article-body table th {
  background: var(--bg-card);
  color: var(--text-muted);
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.article-body table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}
.article-body table tr:last-child td {
  border-bottom: none;
}
.article-body table tr:hover td {
  background: rgba(46, 160, 67, 0.05);
}

/* TABLE OF CONTENTS (SIDEBAR) */
.toc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.toc-card h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-list li {
  margin-bottom: 4px;
}
.toc-list a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}
.toc-list a:hover {
  color: var(--text-white);
  background: var(--bg-card-inner);
  border-left-color: var(--green-glow);
}

/* CTA CARD (SIDEBAR) */
.cta-card {
  background: linear-gradient(135deg, rgba(46, 160, 67, 0.15) 0%, rgba(163, 113, 247, 0.1) 100%);
  border: 1px solid var(--green-primary);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 20px;
}
.cta-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}
.cta-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.cta-card .btn {
  width: 100%;
}

/* RELATED ARTICLES */
.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.related-card h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-list li {
  margin-bottom: 8px;
}
.related-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-main);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.related-list a:hover {
  background: var(--bg-card-inner);
  border-color: var(--border-color);
  color: var(--text-white);
}
.related-list .r-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* BOTTOM RELATED ARTICLES (INLINE) */
.related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}
.related-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.related-grid .blog-card {
  padding: 20px;
}
.related-grid .blog-card h3 {
  font-size: 15px;
}

/* ARTICLE FAQ SECTION */
.article-faq {
  margin-top: 40px;
}
.article-faq h2 {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

/* ARTICLE CTA BANNER (INLINE) */
.inline-cta {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(46, 160, 67, 0.08) 100%);
  border: 1px solid var(--green-primary);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.inline-cta .cta-text h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 0;
  margin-bottom: 4px;
}
.inline-cta .cta-text p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
}
.inline-cta .btn {
  white-space: nowrap;
  padding: 10px 24px;
}

/* BLOG NAV LINK IN HEADER */
.blog-nav-link {
  color: var(--green-glow);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--green-primary);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.blog-nav-link:hover {
  background: var(--green-bg);
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }
  .blog-hero h1 {
    font-size: 28px;
  }
  .article-header h1 {
    font-size: 26px;
  }
}
@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .inline-cta {
    flex-direction: column;
    text-align: center;
  }
  .article-header h1 {
    font-size: 22px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}
