/* ============================================
   SINGLE POST
   ============================================ */

.reading-progress {
  position: sticky;
  top: 0;
  height: 3px;
  background: var(--vero-100);
  z-index: 40;
}
.reading-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--grad-text);
  transition: width 0.1s linear;
}

/* --- HERO --- */
.post-hero {
  position: relative;
  background: var(--color-bg);
  padding-top: 3.5rem;
  padding-bottom: 6rem;
  overflow: hidden;
}
.post-hero__bg-glow {
  position: absolute;
  top: -10rem;
  right: -10rem;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(
    circle,
    rgba(212, 172, 61, 0.12),
    transparent 70%
  );
  pointer-events: none;
}
.post-hero__container {
  position: relative;
  z-index: 1;
  max-width: 50rem;
  margin-top: 2rem;
}
.post-hero__category {
  display: inline-block;
  background: var(--color-badge-bg);
  color: var(--color-badge-text);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  margin-top: 1.5rem;
}
.post-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 1.2;
  margin-top: 1rem;
}
.post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.post-hero__meta i {
  color: var(--gold-400);
  margin-right: 0.25rem;
}

.post-hero__thumb-container {
  position: relative;
  z-index: 2;
  max-width: 64rem;
  margin-top: 1rem;
}
.post-hero__thumb-box {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.post-hero__thumb {
  width: 100%;
  height: 32rem;
  object-fit: cover;
  display: block;
}

/* --- LAYOUT --- */
.post-layout-section {
  padding-top: 4rem;
}
.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 992px) {
  .post-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }
}

/* --- CONTENT / PROSE --- */
.post-content {
  max-width: 42rem;
  color: var(--gray-800);
  font-size: var(--text-lg);
  line-height: 1.8;
}
.post-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--vero-900);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  scroll-margin-top: 5rem;
}
.post-content h3 {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--vero-800);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 5rem;
}
.post-content p {
  margin-bottom: 1.25rem;
}
.post-content img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-block: 1.5rem;
}
.post-content a {
  color: var(--vero-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-content blockquote {
  border-left: 3px solid var(--gold-500);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--vero-800);
  font-size: var(--text-xl);
}
.post-content ul,
.post-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.post-content li {
  margin-bottom: 0.5rem;
}

/* --- TAGS --- */
.post-tags {
  max-width: 42rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
}
.post-tags__item {
  font-size: var(--text-sm);
  color: var(--vero-700);
  background: var(--vero-50);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-fast);
}
.post-tags__item:hover {
  background: var(--vero-100);
}

/* --- SHARE --- */
.post-share {
  max-width: 42rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.post-share__label {
  font-size: var(--text-sm);
  color: var(--color-text-sub);
}
.post-share__buttons {
  display: flex;
  gap: 0.5rem;
}
.post-share__btn {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--vero-200);
  color: var(--vero-700);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}
.post-share__btn:hover {
  background: var(--vero-900);
  border-color: var(--vero-900);
  color: var(--white);
}

/* --- PREV/NEXT --- */
.post-nav {
  max-width: 42rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
.post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: var(--transition-fast);
}
.post-nav__item:hover {
  border-color: var(--vero-300);
  background: var(--vero-50);
}
.post-nav__item--next {
  text-align: right;
  align-items: flex-end;
}
.post-nav__dir {
  font-size: var(--text-xs);
  color: var(--color-text-sub);
}
.post-nav__title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--vero-900);
}

/* --- SIDEBAR --- */
.post-sidebar__sticky {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-toc,
.post-cta,
.post-related {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.post-toc__label,
.post-related__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--vero-900);
  margin-bottom: 0.875rem;
}
.post-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.post-toc__list a {
  font-size: var(--text-sm);
  color: var(--color-text-sub);
  text-decoration: none;
  border-left: 2px solid var(--color-border-light);
  padding-left: 0.75rem;
  transition: var(--transition-fast);
}
.post-toc__list a:hover,
.post-toc__list a.is-active {
  color: var(--vero-900);
  border-left-color: var(--gold-500);
  font-weight: var(--fw-medium);
}
.post-sidebar {
  position: sticky;
  top: 5.5rem;
}
.post-cta {
  background: var(--color-bg);
}
.post-cta__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--white);
  margin-bottom: 0.5rem;
}
.post-cta__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}
.post-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--vero-900);
  background: var(--gold-500);
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-full);
  text-decoration: none;
}

.post-related__item {
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 1rem;
}
.post-related__item:last-child {
  margin-bottom: 0;
}
.post-related__thumb {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}
.post-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-related__title {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--vero-900);
  line-height: 1.4;
}
.post-related__date {
  font-size: var(--text-xs);
  color: var(--color-text-sub);
}

@media (max-width: 991px) {
  .post-hero__title {
    font-size: var(--text-4xl);
  }
  .post-hero__thumb {
    height: 20rem;
  }
  .post-nav {
    grid-template-columns: 1fr;
  }
}
