/* ── BLOG SHARED LAYOUT ── */

.blog-nav-back {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.blog-nav-back:hover { color: #fff; background: rgba(255,255,255,0.07); }

/* ── BLOG LISTING / CLUSTER PAGES ── */

.blog-hero {
  background: var(--grad-dark);
  padding: 72px 24px 64px;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 30%;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(143,18,210,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.blog-hero .eyebrow { margin-bottom: 12px; }
.blog-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
}
.blog-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 540px;
}

/* Cluster filter pills */
.cluster-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 48px;
}
.cluster-pill {
  display: inline-block;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.cluster-pill:hover,
.cluster-pill.active {
  background: var(--grad-btn);
  border-color: transparent;
  color: #fff;
}

/* Post card grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.post-card {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.post-card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--grad-brand);
  color: #fff;
  width: fit-content;
}
.post-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}
.post-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  flex: 1;
}
.post-card-meta {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.post-card-read {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* Cluster page header */
.cluster-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 48px;
}
.cluster-icon-lg {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--grad-brand);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cluster-icon-lg svg {
  width: 100%;
  height: 100%;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── INDIVIDUAL POST PAGE ── */

.post-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}

.post-breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.post-breadcrumb a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.15s;
}
.post-breadcrumb a:hover { color: #fff; }
.post-breadcrumb span { color: rgba(255,255,255,0.2); }

.post-header { margin-bottom: 36px; }
.post-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--grad-brand);
  color: #fff;
  margin-bottom: 16px;
}
.post-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}
.post-meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.28);
  display: flex;
  gap: 16px;
}

/* Prose body */
.post-body { color: rgba(255,255,255,0.72); line-height: 1.75; }
.post-body > * + * { margin-top: 1.2em; }
.post-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2em;
  margin-bottom: 0.6em;
}
.post-body p { font-size: 0.96rem; }
.post-body ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-body ul li {
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
}
.post-body ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}
.post-body strong { color: #fff; font-weight: 600; }
.post-body code { font-family: monospace; font-size: 0.875em; background: rgba(255,255,255,0.08); border-radius: 4px; padding: 1px 6px; color: rgba(255,255,255,0.85); }
.post-screenshot { margin: 24px 0; }
.post-screenshot-inner {
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius-card);
  padding: 32px 20px;
  text-align: center;
  color: rgba(255,255,255,0.25);
  font-size: 0.8rem;
  background: rgba(255,255,255,0.03);
}
.post-cta-box {
  margin-top: 2.5em;
  background: linear-gradient(135deg, #351A44, #1F07F1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-card);
  padding: 28px;
  text-align: center;
}
.post-cta-box p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

/* Sidebar */
.post-sidebar { position: sticky; top: 88px; }
.sidebar-block {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 16px;
}
.sidebar-block h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.sidebar-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sidebar-links a {
  display: block;
  text-decoration: none;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  padding: 7px 10px;
  border-radius: 6px;
  line-height: 1.4;
  transition: color 0.15s, background 0.15s;
}
.sidebar-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.sidebar-links a.active { color: #fff; background: rgba(255,255,255,0.06); }
.sidebar-cta {
  background: var(--grad-btn);
  border-radius: var(--radius-card);
  padding: 20px;
  text-align: center;
}
.sidebar-cta p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
  line-height: 1.5;
}
.sidebar-cta a {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  transition: background 0.15s;
}
.sidebar-cta a:hover { background: rgba(255,255,255,0.25); }

/* ── RESPONSIVE ── */
@media (max-width: 800px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .post-sidebar { position: static; }
}
@media (max-width: 640px) {
  .blog-hero { padding: 56px 20px 48px; }
  .post-layout { padding: 40px 20px 60px; }
}
