/* ===================================================
   Ghost Spectre Blog & Documentation Stylesheet
   Theme: Custom High-Performance Green (#198754 / #0f5132)
   =================================================== */

:root {
  --gs-primary: #198754;
  --gs-primary-dark: #0f5132;
  --gs-primary-light: #d1e7dd;
  --gs-accent: #20c997;
  --gs-bg-soft: #f8fafc;
  --gs-card-border: #e2e8f0;
  --gs-text-main: #1e293b;
  --gs-text-muted: #64748b;
}

/* Hero Section */
.blog-hero {
  background: linear-gradient(135deg, #0f5132 0%, #198754 70%, #20c997 100%);
  color: #ffffff;
  padding: 85px 0 55px;
  border-radius: 0 0 28px 28px;
  margin-bottom: 45px;
  box-shadow: 0 8px 30px rgba(15, 81, 50, 0.18);
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 10%, transparent 60%);
  pointer-events: none;
}

.blog-hero h1 {
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.blog-hero p {
  font-size: 1.15rem;
  color: #e2e8f0;
  max-width: 680px;
  margin: 0 auto;
}

/* Category Filter Tags */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 35px;
}

.category-tag {
  background: #ffffff;
  border: 1px solid var(--gs-card-border);
  color: var(--gs-text-muted);
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.category-tag:hover,
.category-tag.active {
  background: var(--gs-primary);
  border-color: var(--gs-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.25);
}

/* Blog Cards Grid */
.blog-card {
  border: 1px solid var(--gs-card-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(25, 135, 84, 0.14);
  border-color: var(--gs-primary);
}

.blog-card-thumb {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: var(--gs-primary);
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}

.blog-card-thumb svg {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 4px 6px rgba(25, 135, 84, 0.15));
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-thumb svg {
  transform: scale(1.08);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.badge-category {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: inline-block;
  margin-bottom: 12px;
}

.badge-category-guide {
  background: #dcfce7;
  color: #15803d;
}

.badge-category-install {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-category-tuning {
  background: #fef3c7;
  color: #b45309;
}

.badge-category-bench {
  background: #f3e8ff;
  color: #7e22ce;
}

.badge-category-hw {
  background: #fee2e2;
  color: #b91c1c;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
}

.blog-card-title a {
  color: var(--gs-text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: var(--gs-primary);
}

.blog-card-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--gs-text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.82rem;
  color: var(--gs-text-muted);
}

/* Article Reading Page Styles */
.article-wrapper {
  background: #ffffff;
  border-radius: 18px;
  padding: 45px 55px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.04);
  border: 1px solid #eef2f6;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .article-wrapper {
    padding: 24px 20px;
  }
}

.article-header {
  padding-bottom: 25px;
  margin-bottom: 35px;
  border-bottom: 2px solid #f1f5f9;
}

.article-header h1 {
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  color: var(--gs-text-muted);
  font-size: 0.88rem;
  margin-top: 14px;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-callout {
  background: #f0fdf4;
  border-left: 4px solid var(--gs-primary);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 30px 0;
  box-shadow: 0 2px 10px rgba(25, 135, 84, 0.05);
}

.article-callout p {
  margin: 0;
  color: #1e3a2b;
  font-size: 1.05rem;
  line-height: 1.65;
}

.article-toc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 28px;
  margin: 30px 0;
}

.article-toc-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-toc ul {
  margin: 0;
  padding-left: 20px;
}

.article-toc li {
  margin: 6px 0;
}

.article-toc a {
  color: #0f766e;
  text-decoration: none;
  font-weight: 500;
}

.article-toc a:hover {
  text-decoration: underline;
  color: var(--gs-primary);
}

/* Styled Steps in Tutorials */
.step-row {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #198754 0%, #15803d 100%);
  color: #ffffff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(25, 135, 84, 0.25);
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 4px;
  margin-bottom: 8px;
  color: #0f172a;
}

/* Custom Table Styling */
.table-custom {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  border: 1px solid #e2e8f0;
  margin: 28px 0;
}

.table-custom thead {
  background: linear-gradient(135deg, #0f5132 0%, #198754 100%);
  color: #ffffff;
}

.table-custom thead th {
  border: none;
  padding: 14px 18px;
  font-weight: 700;
}

.table-custom tbody td {
  padding: 14px 18px;
  vertical-align: middle;
  border-color: #f1f5f9;
}

/* Keyboard keys */
kbd {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-bottom: 2px solid #94a3b8;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.85rem;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Bottom CTA Banner */
.blog-cta-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 35px;
  text-align: center;
  margin: 45px 0 20px;
}

.blog-cta-box h3 {
  font-weight: 800;
  color: #0f5132;
  margin-bottom: 10px;
}

.blog-cta-box p {
  color: #1e3a2b;
  max-width: 580px;
  margin: 0 auto 20px;
}
