/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 2em 0;
  padding: 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  min-width: 2em;
  padding: 0.4em 0.6em;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
}

.pagination .current {
  font-weight: bold;
  background: #79b8ff;
  color: #000;
}

.pagination .disabled {
  opacity: 0.3;
}

/* Tags */
.post-tags {
  line-height: 2;
}

.post-tags a.tag {
  text-decoration: none;
  white-space: nowrap;
  text-transform: capitalize;
}

.post-tags a.tag:hover {
  text-decoration: underline;
}

/* Link preview cards */
.link-card {
  border: 1px solid #444;
  border-radius: 8px;
  overflow: hidden;
  margin: 1.5em 0;
  background: #1c1c1c;
  transition: border-color 0.2s;
}

.link-card:hover {
  border-color: #79b8ff;
}

.link-card a {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.link-card-image {
  flex-shrink: 0;
  width: 200px;
  min-height: 120px;
  overflow: hidden;
  background: #2a2a2a;
}

.link-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-card-content {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.link-card-title {
  font-weight: bold;
  font-size: 1em;
  margin-bottom: 4px;
  color: #79b8ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card-description {
  font-size: 0.85em;
  color: #aaa;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.link-card-url {
  font-size: 0.75em;
  color: #666;
}

/* Mobile: stack link cards vertically */
@media (max-width: 600px) {
  .link-card a {
    flex-direction: column;
  }

  .link-card-image {
    width: 100%;
    height: 160px;
  }
}
