.post-navigation {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  margin: 3rem 0;
  width: 100%;
}

.nav-card {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1.25rem;
  gap: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  text-decoration: none;
  background-color: var(--color-surface);
  transition: all 0.2s ease-in-out;
  min-width: 0;
}

.nav-card:hover {
  border-color: var(--color-primary);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.nav-image-wrapper {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--color-avatar-bg);
  border: 1px solid var(--color-border);
}

.nav-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.nav-card:hover .nav-image-wrapper img {
  transform: scale(1.05);
}

.nav-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.prev-card .nav-content {
  align-items: flex-start;
  text-align: left;
}

.next-card .nav-content {
  align-items: flex-end;
  text-align: right;
}

@media (max-width: 768px) {
  .post-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-card {
    padding: 1rem;
  }
  .nav-card.next-card {
    flex-direction: row-reverse;
  }
  .nav-card.next-card .nav-content {
    align-items: flex-start;
    text-align: left;
  }
}

.nav-label {
  font-size: 0.875rem;
  color: var(--color-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
}
.nav-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-card:hover .nav-title {
  color: var(--color-primary);
}
