.post-container-with-sidebar {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.post {
  max-width: 42rem;
  padding: 0;
  min-width: 0;
}

.post-header h1,
.post-excerpt {
  overflow-wrap: break-word;
  word-break: break-word;
}

.post-interactions {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-xxl);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.post-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.post-meta .meta-item svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.post-meta .meta-item time,
.post-meta .meta-item span {
  line-height: 1;
}

.post-meta .meta-item img {
  height: 18px;
  vertical-align: middle;
}

.post-meta .meta-divider {
  opacity: 0.3;
  line-height: 1;
}

.meta-views {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.meta-views.loaded {
  opacity: 1;
}

#post-view-count {
  font-variant-numeric: tabular-nums;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .post-container-with-sidebar {
    grid-template-columns: 1fr;
    padding: var(--space-xl) 0;
    overflow-x: hidden;
  }

  .post {
    max-width: 100%;
    width: 100%;
  }

  .post-interactions {
    padding: 0 0 var(--space-xl);
    overflow-x: hidden;
  }
}

@media (max-width: 768px) {
  .post-meta {
    font-size: 0.8rem;
    gap: 0.5rem;
  }

  .post-meta .meta-divider {
    display: none;
  }

}

.related-posts {
  max-width: 900px;
  margin: 3.5rem auto 0;
  padding: 0;
}

.related-posts-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--color-orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.rpc {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rpc:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(60, 48, 38, 0.1);
}

.rpc-img {
  height: 140px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-secondary);
}

.rpc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rpc:hover .rpc-img img {
  transform: scale(1.04);
}

.rpc-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

.rpc-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.rpc-tag {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-orange);
}

.rpc-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  margin: 0;
  transition: color 0.2s;
}

.rpc:hover .rpc-title {
  color: var(--color-orange);
}

.rpc-meta {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: auto;
  padding-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr;
  }

  .rpc {
    flex-direction: row;
  }

  .rpc-img {
    width: 110px;
    height: auto;
    min-height: 90px;
    flex-shrink: 0;
  }

  .rpc-body {
    padding: 0.75rem 0.9rem;
  }

  .rpc-initial {
    font-size: 2rem;
  }
}

@media (max-width: 520px) {
  .rpc {
    flex-direction: column;
  }

  .rpc-img {
    width: 100%;
    height: 120px;
  }
}

.post-author-minimal {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--color-border);
}

.author-avatar-small {
  flex-shrink: 0;
}

.author-avatar-small img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(60, 48, 38, 0.12);
  transition: transform 0.3s ease;
}

.author-avatar-small img:hover {
  transform: scale(1.05);
}

.author-name-small {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  margin-right: auto;
}

.author-social-minimal {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: auto;
}

.author-social-minimal a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-text-muted);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.author-social-minimal a:hover {
  color: white;
  background: var(--color-orange);
  border-color: var(--color-orange);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 12px rgba(243, 79, 41, 0.3);
}

.author-social-minimal svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .post-author-minimal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 0;
  }

  .author-name-small {
    width: 100%;
    text-align: center;
    margin-right: 0;
    order: -1;
  }

  .author-avatar-small {
    order: -2;
  }

  .author-social-minimal {
    margin-left: 0;
    justify-content: center;
  }

  .author-social-minimal a {
    width: 40px;
    height: 40px;
  }
}
