/* /assets/css/blog-post.css — v1.0 */

/* ========== Post Hero ========== */
.post-hero {
  padding: 120px 0 40px;
  background: var(--grad-bg);
}

.post-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
  transition: color 0.2s ease;
}

.post-back:hover {
  color: var(--navy);
}

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

.post-category {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-category.whitening {
  background: #f0fcff;
  color: #6FD9D5;
}

.post-category.hygiene {
  background: #f0f7ff;
  color: #99D8FF;
}

.post-category.tips {
  background: #f5fcff;
  color: #77C4CA;
}

.post-category.cdcp {
  background: #f3f7fb;
  color: #263B60;
}

.post-date {
  color: var(--muted);
}

.post-date::before {
  content: "📅 ";
}

.post-read {
  color: var(--muted);
}

.post-read::before {
  content: "⏱️ ";
}

.post-hero h1 {
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.post-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ========== Featured Image ========== */
.post-featured-img {
  margin: -20px 0 0;
}

.post-featured-img img {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow);
  display: block;
}

/* ========== Post Content ========== */
.post-content {
  padding: 60px 0;
}

.post-content-inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

/* Table of Contents */
.post-toc {
  position: sticky;
  top: 100px;
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-soft);
}

.post-toc h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--text);
}

.post-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-toc li {
  margin-bottom: 10px;
}

.post-toc li:last-child {
  margin-bottom: 0;
}

.post-toc a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  transition: color 0.2s ease;
  display: block;
}

.post-toc a:hover {
  color: var(--teal2);
}

/* Article Body */
.post-body {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}

.post-body h2 {
  font-size: 28px;
  margin-top: 48px;
  margin-bottom: 16px;
  scroll-margin-top: 100px;
}

.post-body h2:first-child {
  margin-top: 0;
}

.post-body h3 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.post-body p {
  margin-bottom: 20px;
}

.post-body ul,
.post-body ol {
  margin: 20px 0;
  padding-left: 24px;
}

.post-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.post-body strong {
  font-weight: 700;
  color: var(--navy);
}

/* Callout Boxes */
.post-callout {
  background: #f0fcff;
  border-left: 4px solid #6FD9D5;
  padding: 20px 24px;
  border-radius: 8px;
  margin: 28px 0;
  font-size: 16px;
  line-height: 1.7;
}

.post-callout strong {
  color: #0f2f48;
}

.post-callout-warning {
  background: #fff8f0;
  border-left-color: #ffb800;
}

/* CTA Box */
.post-cta {
  background: var(--grad);
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  margin-top: 48px;
  box-shadow: var(--shadow);
}

.post-cta h3 {
  color: #0d2b3b;
  margin-bottom: 12px;
  font-size: 24px;
}

.post-cta p {
  color: #0f2f48;
  margin-bottom: 20px;
  font-size: 16px;
}

/* ========== Related Posts ========== */
.related-posts {
  background: var(--grad-bg-alt);
  padding: 64px 0;
}

.related-title {
  text-align: center;
  margin-bottom: 36px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ========== Responsive ========== */
@media (max-width: 920px) {
  .post-content-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .post-toc {
    position: static;
    order: -1;
  }

  .post-hero {
    padding: 100px 0 36px;
  }

  .post-body {
    font-size: 16px;
  }

  .post-body h2 {
    font-size: 24px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .post-hero h1 {
    font-size: 26px;
  }

  .post-lead {
    font-size: 17px;
  }

  .post-meta-top {
    font-size: 13px;
    gap: 12px;
  }

  .post-featured-img {
    margin-top: 0;
  }

  .post-featured-img img {
    border-radius: 12px;
  }

  .post-content {
    padding: 40px 0;
  }

  .post-body h2 {
    font-size: 22px;
    margin-top: 32px;
  }

  .post-body h3 {
    font-size: 19px;
  }

  .post-callout,
  .post-cta {
    padding: 16px 20px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}
