/* ============================================================
   v2 Trends list page
   ============================================================ */

.trends-list-section {
  padding: 80px var(--gutter) 96px;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Reuse rank-head / kicker / h2 / rank-meta from styles.css */

/* Filter chips — link style (matches BigTech 100 .chip) */
.trends-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 20px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 24px;
}
.trends-filter .chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--rule-soft);
  background: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  text-decoration: none;
  transition: all .12s;
}
.trends-filter .chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.trends-filter .chip-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Feed grid — 3 cols on desktop, 2 on tablet, 1 on mobile.
   Override .tr-grid quirks from styles-home.css (which uses 1px gap + grey bg
   for an "inline grid" look on home page). On list page we want airy cards. */
.tr-grid.trends-feed {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: transparent;
  border: none;
  max-width: none;
}

/* Override card height for list page (no fixed) and improve readability */
.trends-feed .tr-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  min-height: 240px;
  text-decoration: none;
  color: inherit;
  border: none;
  border-top: 1px solid var(--ink);
  background: transparent;
  transition: background .12s, transform .15s;
}
.trends-feed .tr-card:hover {
  background: var(--blue-pale);
  transform: translateY(-2px);
}
.trends-feed .tr-text {
  display: block;
  -webkit-line-clamp: unset;
  max-height: 82px; /* 4 строки: 13.5px × 1.5 × 4 */
  overflow: hidden;
  padding-bottom: 0;
}

/* Pagination */
.trends-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
  gap: 16px;
}
.trends-pagination .page-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
  transition: color .12s;
}
.trends-pagination .page-link:hover {
  color: var(--blue);
}
.trends-pagination .page-link.is-disabled {
  color: var(--ink-5);
  cursor: not-allowed;
}
.trends-pagination .page-numbers {
  display: flex;
  gap: 4px;
  align-items: center;
}
.trends-pagination .page-num {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 16px;
  color: var(--ink-2);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .12s;
}
.trends-pagination .page-num:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.trends-pagination .page-num.is-current {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  font-weight: 500;
}
.trends-pagination .page-ellipsis {
  color: var(--ink-4);
  padding: 0 6px;
}

.trends-empty {
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid var(--rule-soft);
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .tr-grid.trends-feed { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tr-grid.trends-feed { grid-template-columns: 1fr; gap: 16px; }
  .trends-pagination { flex-wrap: wrap; }
  .trends-filter { gap: 4px; }
  .trends-filter .chip { padding: 6px 10px; font-size: 10px; }
}
