/* ===================================================
   REVBLEND BLOG & GEO DESIGN SYSTEM (LUXURY DARK & LIME)
   =================================================== */

:root {
  --ink: #0c0d0b;
  --ink2: #141611;
  --ink3: #1a1d15;
  --paper: #f1f0e9;
  --lime: #d8ed3f;
  --muted: #8e9287;
  --line: rgba(241, 240, 233, 0.12);
  --lined: rgba(241, 240, 233, 0.16);
  --max: 1280px;
  --pad: clamp(20px, 5vw, 64px);
}

/* Base resets */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* ===================================================
   BLOG HUB PAGE (/blog/)
   =================================================== */

.blog-hero {
  padding-top: 150px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.blog-hero:before {
  content: "";
  position: absolute;
  top: 0;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(216, 237, 63, 0.06), transparent 60%);
  pointer-events: none;
}

.blog-hero h1 {
  font-size: clamp(38px, 5.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 20px 0 16px;
  color: var(--paper);
}

.blog-hero h1 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
}

.blog-hero-desc {
  font-size: clamp(16px, 1.5vw, 20px);
  color: #a7aba0;
  max-width: 680px;
  line-height: 1.6;
  margin: 0;
}

/* Category Filters */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: #b1b4ab;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
  box-shadow: 0 0 16px rgba(216, 237, 63, 0.25);
}

/* Featured Post */
.blog-featured {
  margin: 60px 0;
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(32px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.blog-featured:hover {
  border-color: rgba(216, 237, 63, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(216, 237, 63, 0.06);
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 18px;
}

.blog-featured h2 {
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  font-weight: 600;
}

.blog-featured h2 a {
  color: var(--paper);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-featured h2 a:hover {
  color: var(--lime);
}

.blog-featured p {
  color: #9ea296;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 26px;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #767a6f;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin: 50px 0 100px;
}

.blog-card {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  border-color: rgba(216, 237, 63, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 11px;
}

.card-tag {
  color: var(--lime);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-time {
  color: #6f7367;
}

.blog-card h3 {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--paper);
  font-weight: 600;
  transition: color 0.2s ease;
}

.blog-card:hover h3 {
  color: var(--lime);
}

.blog-card p {
  color: #9ea296;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 24px;
  flex: 1;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #6f7367;
}

.card-arrow {
  color: var(--lime);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.blog-card:hover .card-arrow {
  transform: translate(3px, -3px);
}

/* ===================================================
   SINGLE ARTICLE PAGE STYLES
   =================================================== */

.post-header {
  padding-top: 145px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.post-header:before {
  content: "";
  position: absolute;
  top: 0;
  right: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(216, 237, 63, 0.05), transparent 60%);
  pointer-events: none;
}

.post-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #767a6f;
  margin-bottom: 22px;
}

.post-breadcrumbs a {
  color: #a7aba0;
  text-decoration: none;
  transition: color 0.2s;
}

.post-breadcrumbs a:hover {
  color: var(--lime);
}

.post-breadcrumbs span {
  color: #494c44;
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.post-category-badge {
  color: var(--ink);
  background: var(--lime);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-reading-time {
  color: #92968b;
  font-size: 12px;
}

.post-header h1 {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 12px 0 20px;
  color: var(--paper);
}

.post-header h1 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
}

/* Executive Summary / Lead Box */
.geo-lead-box {
  background: linear-gradient(145deg, rgba(216, 237, 63, 0.06), rgba(20, 22, 17, 0.95));
  border: 1px solid rgba(216, 237, 63, 0.25);
  border-left: 4px solid var(--lime);
  border-radius: 14px;
  padding: 24px 30px;
  margin: 30px 0 0;
  color: #d1d4ca;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.7;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.geo-lead-box b {
  color: var(--lime);
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Post Layout (Content + Sticky TOC Sidebar) */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 56px;
  padding: 50px 0 90px;
  position: relative;
}

.post-content {
  color: #c4c7bc;
  font-size: 17px;
  line-height: 1.85;
  word-break: break-word;
}

.post-content h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 48px 0 18px;
  color: #f1f0e9;
  padding-left: 16px;
  border-left: 3px solid var(--lime);
  font-weight: 600;
}

.post-content h2:first-of-type {
  margin-top: 0;
}

.post-content h3 {
  font-size: clamp(19px, 1.8vw, 23px);
  letter-spacing: -0.02em;
  margin: 36px 0 14px;
  color: #f1f0e9;
  font-weight: 600;
}

.post-content p {
  margin: 0 0 22px;
}

.post-content strong {
  color: #f1f0e9;
  font-weight: 700;
}

.post-content em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.1em;
  color: var(--lime);
}

/* Clean Styled Lists */
.post-content ul {
  list-style: none !important;
  margin: 0 0 28px 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-content ul li {
  position: relative;
  padding-left: 24px;
  line-height: 1.65;
  color: #c4c7bc;
}

.post-content ul li:before {
  content: "↗";
  position: absolute;
  left: 0;
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
  top: 1px;
}

.post-content ol {
  counter-reset: post-counter;
  list-style: none !important;
  margin: 0 0 28px 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post-content ol li {
  counter-increment: post-counter;
  position: relative;
  padding-left: 36px;
  line-height: 1.65;
  color: #c4c7bc;
}

.post-content ol li:before {
  content: counter(post-counter);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(216, 237, 63, 0.12);
  color: var(--lime);
  border: 1px solid rgba(216, 237, 63, 0.35);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-family: 'DM Mono', monospace;
}

/* Callout Box inside Article */
.post-callout {
  background: var(--ink2);
  border: 1px solid rgba(216, 237, 63, 0.25);
  border-left: 4px solid var(--lime);
  border-radius: 12px;
  padding: 22px 28px;
  margin: 35px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #d1d4ca;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.post-callout strong {
  color: var(--lime);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

/* Formula Block */
.post-formula {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  padding: 18px 24px;
  border-radius: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: var(--lime);
  margin: 28px 0;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 16px rgba(216, 237, 63, 0.08);
}

/* Tables */
.post-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 35px 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.post-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
  background: var(--ink2);
}

.post-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.post-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(241, 240, 233, 0.06);
  color: #c4c7bc;
}

.post-table tr:last-child td {
  border-bottom: none;
}

.post-table tr:hover td {
  background: rgba(216, 237, 63, 0.03);
}

/* Post Comparison Grid */
.post-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 35px 0;
}

.post-compare-card {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.post-compare-card.featured {
  border-color: rgba(216, 237, 63, 0.45);
  background: linear-gradient(145deg, rgba(216, 237, 63, 0.06), var(--ink2));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(216, 237, 63, 0.06);
}

.compare-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  margin-bottom: 14px;
}

.compare-badge.alt {
  background: rgba(255, 255, 255, 0.08);
  color: #b1b4ab;
}

.post-compare-card h3 {
  font-size: 19px !important;
  margin: 0 0 8px !important;
  color: var(--paper);
}

.compare-desc {
  font-size: 13px !important;
  color: #92968b !important;
  margin-bottom: 16px !important;
  line-height: 1.5 !important;
}

.compare-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 13px !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-list li {
  margin: 0 !important;
  padding-left: 14px !important;
  position: relative;
  line-height: 1.5 !important;
  color: #c4c7bc !important;
}

.compare-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--lime);
}

.compare-list strong {
  color: var(--paper) !important;
}

/* Post 3-Column Feature Grid */
.post-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 35px 0;
}

.post-feature-box {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.post-feature-box.highlight {
  border-color: rgba(216, 237, 63, 0.35);
  background: rgba(216, 237, 63, 0.03);
}

.box-tag {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.post-feature-box h4 {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--paper);
  font-weight: 600;
}

.post-feature-box ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 12px !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-feature-box li {
  margin: 0 !important;
  padding-left: 14px !important;
  position: relative;
  color: #9ea296 !important;
  line-height: 1.5 !important;
}

.post-feature-box li:before {
  content: "↗";
  position: absolute;
  left: 0;
  color: var(--lime);
  font-size: 11px;
}

/* FAQ Box inside Article */
.post-faq {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 44px);
  margin: 60px 0 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.post-faq h2 {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
  padding-left: 0;
  border-left: none;
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  color: var(--paper);
}

.faq-item {
  border-top: 1px solid rgba(241, 240, 233, 0.08);
  padding: 22px 0;
}

.faq-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.faq-question {
  font-size: 17px;
  font-weight: 700;
  color: #f2f1ec;
  margin: 0 0 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.faq-question:before {
  content: "Q.";
  color: var(--lime);
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-answer {
  color: #9ea296;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  padding-left: 26px;
}

/* Author Bio Box */
.author-card {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  gap: 22px;
  align-items: center;
  margin: 50px 0 30px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 18px;
  margin: 0 0 4px;
  color: var(--paper);
}

.author-info span {
  display: block;
  font-size: 12px;
  color: var(--lime);
  margin-bottom: 8px;
  font-weight: 600;
}

.author-info p {
  font-size: 13px;
  color: #92968b;
  margin: 0;
  line-height: 1.6;
}

/* Sticky Sidebar (TOC) */
.post-sidebar {
  position: relative;
}

.sticky-toc {
  position: sticky;
  top: 110px;
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.toc-title {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.toc-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 24px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-list li {
  margin: 0 !important;
  padding: 0 !important;
}

.toc-list li:before {
  display: none !important;
}

.toc-list a {
  color: #a7aba0;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  transition: all 0.2s;
  display: block;
}

.toc-list a:hover {
  color: var(--lime);
  transform: translateX(3px);
}

.sidebar-cta {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.sidebar-cta p {
  font-size: 13px;
  color: #c4c7bc;
  margin: 0 0 14px;
  line-height: 1.5;
}

.sidebar-cta a {
  display: block;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-cta a:hover {
  box-shadow: 0 0 16px rgba(216, 237, 63, 0.35);
  transform: translateY(-1px);
}

/* ===================================================
   RESPONSIVE DESIGN
   =================================================== */

@media (max-width: 960px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .post-sidebar {
    order: -1;
  }
  .sticky-toc {
    position: relative;
    top: 0;
  }
  .post-compare-grid, .post-grid-3 {
    grid-template-columns: 1fr;
  }
  .blog-featured {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
