/**
 * Deferred CSS for Fast Single Blog Post
 * Below-fold: tags, author bio, navigation, related posts
 */

/* =====================
   POST TAGS
   ===================== */
.post-tags {
  padding: 0 0 32px;
}
.post-tags__inner {
  max-width: 780px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg-light);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: all 0.2s ease;
}
.post-tag:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* =====================
   AUTHOR BIO
   ===================== */
.post-author-bio {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}
.post-author-bio__inner {
  max-width: 780px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.post-author-bio__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.post-author-bio__label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 4px;
}
.post-author-bio__name {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px;
}
.post-author-bio__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

/* =====================
   POST NAVIGATION
   ===================== */
.post-navigation {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}
.post-navigation .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.post-nav__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.post-nav__link:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.1);
}
.post-nav__next {
  text-align: right;
  grid-column: 2;
}
.post-nav__prev {
  grid-column: 1;
}
.post-nav__label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.post-nav__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

/* =====================
   RELATED POSTS
   ===================== */
.related-posts {
  padding: 64px 0;
  background: var(--color-bg-light);
}
.related-posts__title {
  font-size: 32px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 32px;
}
.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.rp-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.rp-card__image {
  display: block;
  overflow: hidden;
}
.rp-card__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.rp-card:hover .rp-card__image img {
  transform: scale(1.03);
}
.rp-card__content {
  padding: 20px;
}
.rp-card__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  margin: 0 0 8px;
}
.rp-card__title a {
  color: inherit;
  text-decoration: none;
}
.rp-card__title a:hover {
  color: var(--color-primary);
}
.rp-card__date {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .post-tags {
    padding-bottom: 24px;
  }
  .post-author-bio {
    padding: 32px 0;
  }
  .post-author-bio__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .post-author-bio__avatar {
    width: 64px;
    height: 64px;
  }
  .post-author-bio__name {
    font-size: 18px;
  }
  .post-navigation {
    padding: 32px 0;
  }
  .post-navigation .container {
    grid-template-columns: 1fr;
  }
  .post-nav__next {
    text-align: left;
    grid-column: 1;
  }
  .post-nav__link {
    padding: 16px;
  }
  .related-posts {
    padding: 48px 0;
  }
  .related-posts__title {
    font-size: 24px;
    margin-bottom: 24px;
  }
  .related-posts__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .rp-card__image img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .post-tag {
    font-size: 12px;
    padding: 5px 12px;
  }
  .post-author-bio__desc {
    font-size: 14px;
  }
  .post-nav__title {
    font-size: 15px;
  }
  .related-posts__title {
    font-size: 22px;
  }
  .rp-card__title {
    font-size: 16px;
  }
}
