/* ============================================================
   TECHCELER — blog.css  (blog/template.html + generated posts)
   Long-form reading: Poppins + Crimson Pro
   ============================================================ */

/* Article hero */
.article-hero {
  position: relative;
  background: linear-gradient(160deg, #1b2a3b 0%, #0d2137 100%);
  color: #fff;
  padding-top: calc(var(--nav-h) + 70px);
  padding-bottom: clamp(48px, 6vw, 80px);
  overflow: hidden;
}
.article-hero .mesh-blob:nth-child(1) {
  width: 460px;
  height: 460px;
  top: -160px;
  right: -60px;
  background: radial-gradient(circle, rgba(255, 77, 139, 0.4), transparent 70%);
}
.article-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.article-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin: 20px 0 24px;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}
.article-meta .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

/* Article body */
.article-wrap {
  background: #fff;
}
.article-body {
  max-width: 720px;
  margin-inline: auto;
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.article-body > * + * {
  margin-top: 1.4em;
}
.article-body h2 {
  font-size: 1.7rem;
  margin-top: 1.8em;
  color: var(--text-primary);
}
.article-body h3 {
  font-size: 1.3rem;
  margin-top: 1.6em;
  color: var(--text-primary);
}
.article-body p {
  color: var(--text-secondary);
}
.article-body a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body ul,
.article-body ol {
  padding-left: 1.4em;
}
.article-body ul li {
  list-style: disc;
  margin-top: 0.6em;
}
.article-body ol li {
  list-style: decimal;
  margin-top: 0.6em;
}
.article-body blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--text-primary);
  padding: 8px 0 8px 28px;
  border-left: 3px solid var(--purple);
  margin-block: 1.6em;
}
.article-body img {
  width: 100%;
  border-radius: var(--radius);
  margin-block: 1.6em;
}
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-page);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Related */
.related {
  background: var(--bg-page);
}
.related .article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.article-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.article-card__thumb {
  height: 170px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  overflow: hidden;
}
.article-card__thumb.g1 { background: linear-gradient(135deg, #7b5ea7, #ff4d8b); }
.article-card__thumb.g2 { background: linear-gradient(135deg, #1b2a3b, #7b5ea7); }
.article-card__thumb.g3 { background: linear-gradient(135deg, #ff4d8b, #7b5ea7); }
.article-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.4s ease;
}
.article-card:hover .article-card__thumb img {
  transform: scale(1.05);
}
.article-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(123, 94, 167, 0.35), rgba(13, 33, 55, 0.72));
}
.article-card__thumb .tag-light {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.32);
}
.article-card__body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card__body h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.article-card__body p {
  font-size: 0.93rem;
  margin-bottom: 14px;
}
.article-card__meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-light);
}
@media (max-width: 860px) {
  .related .article-grid {
    grid-template-columns: 1fr;
  }
}
