/**
 * Cards, badges, buttons — consistent components
 */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  padding: var(--s-4);
}

/* Category / tag badges: red background, white text */
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: none;
}

.badge-cat {
  background: var(--red);
  color: #fff;
  border: none;
}

/* Cards: same border, radius, hover lift (no blur) */
.card,
.highlight-card,
.mini-card,
.post-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.highlight-card:hover,
.mini-card:hover,
.post-row:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.highlight-card img,
.mini-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.mini-card .body,
.highlight-content {
  padding: var(--s-3);
}

.mini-card h4,
.highlight-content h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--r-1);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--txt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--card-2);
}

.icon-btn-sm {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}

.pagination {
  margin-top: var(--s-4);
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.pagination a {
  min-width: 34px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.3rem 0.5rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pagination a:hover {
  color: var(--txt);
  border-color: rgba(255, 255, 255, 0.2);
}

.pagination a.active {
  background: var(--red);
  border-color: transparent;
  color: #fff;
}
