/* RevoField blog listing design: blog home, categories, tags, authors, search results and 404.
   Loaded after post.css, which supplies the shared hero. Everything is scoped to body.rf-archive or rf-archive classes. */

body.rf-archive { background: #f8fafc; }
body.rf-archive .site-content { display: block; padding: 40px 40px 0; }
.rf-archive { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #334155; }

/* ---------- Hero additions ---------- */
.rf-archive-hero__head { display: flex; align-items: center; gap: 22px; }
.rf-archive-hero__avatar {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); border: 2px solid rgba(165,180,252,0.5);
  color: #fff; font: 800 28px/1 'Inter', sans-serif; letter-spacing: 0.02em;
}
.rf-archive-hero__eyebrow { pointer-events: none; }
.rf-archive-hero__desc { max-width: 680px; margin: 16px 0 0; font-size: 18px; line-height: 1.6; color: #cbd5e1; }
.rf-archive-hero__desc p { margin: 0 0 0.6em; }
.rf-archive-hero__desc p:last-child { margin-bottom: 0; }

/* ---------- Category chips ---------- */
.rf-archive__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.rf-chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid #e2e8f0;
  color: #334155; font-size: 14px; font-weight: 600; line-height: 1.3; text-decoration: none;
}
.rf-chip span { font-size: 12px; font-weight: 600; color: #64748b; }
.rf-chip:hover { border-color: #a5b4fc; color: #4f46e5; }
.rf-chip.is-active { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.rf-chip.is-active span { color: #e0e7ff; }

/* ---------- Card grid ---------- */
.rf-archive__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.rf-archive__section-title { margin: 0 0 20px; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: #0f172a; }

.rf-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 8px 24px rgba(15,23,42,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.rf-card:hover { transform: translateY(-3px); border-color: #c7d2fe; box-shadow: 0 16px 40px rgba(15,23,42,0.10); }
.rf-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: #eef2ff; }
.rf-card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.rf-card:hover .rf-card__img { transform: scale(1.03); }
.rf-card__placeholder {
  display: flex; align-items: center; justify-content: center; height: 100%;
  background: radial-gradient(400px 200px at 80% 0%, rgba(99,102,241,0.45), transparent 60%), linear-gradient(135deg, #0b1121, #1e1b4b);
}
.rf-card__placeholder span {
  display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font: 800 32px/1 'Inter', sans-serif;
}
.rf-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 22px; }
.rf-card__cat {
  position: relative; z-index: 1; align-self: flex-start; margin: 0 0 12px; padding: 4px 10px;
  border-radius: 999px; background: #eef2ff; color: #4f46e5; text-decoration: none;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.rf-card__cat:hover { background: #e0e7ff; }
.rf-card__title { margin: 0 0 10px; font-family: inherit; font-size: 19px; font-weight: 800; line-height: 1.35; letter-spacing: -0.01em; }
.rf-card__title a { color: #0f172a; text-decoration: none; }
/* The title link covers the whole card, so the card is one click target. */
.rf-card__title a::after { content: ''; position: absolute; inset: 0; }
.rf-card:hover .rf-card__title a { color: #4f46e5; }
.rf-card__title a:focus-visible { outline: none; }
.rf-card:focus-within { outline: 2px solid #6366f1; outline-offset: 2px; }
.rf-card__excerpt { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: #64748b; }
.rf-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: auto; padding-top: 14px;
  border-top: 1px solid #f1f5f9; font-size: 13px; color: #64748b;
}
.rf-card__meta strong { color: #334155; font-weight: 600; }
.rf-card__meta .rf-post-hero__dot { background: #cbd5e1; }

@media (min-width: 900px) {
  .rf-card--featured { grid-column: 1 / -1; flex-direction: row; }
  .rf-card--featured .rf-card__media { flex: 0 0 56%; aspect-ratio: auto; min-height: 360px; }
  .rf-card--featured .rf-card__body { justify-content: center; padding: 40px 44px; }
  .rf-card--featured .rf-card__title { font-size: 30px; line-height: 1.25; letter-spacing: -0.02em; }
  .rf-card--featured .rf-card__excerpt { font-size: 17px; }
  .rf-card--featured .rf-card__meta { margin-top: 8px; }
}

/* ---------- Pagination ---------- */
.rf-archive__pagination { margin: 48px 0 0; }
.rf-archive__pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rf-archive__pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
  border-radius: 10px; background: #fff; border: 1px solid #e2e8f0; color: #334155;
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.rf-archive__pagination a.page-numbers:hover { border-color: #a5b4fc; color: #4f46e5; }
.rf-archive__pagination .page-numbers.current { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.rf-archive__pagination .page-numbers.dots { background: transparent; border-color: transparent; }

/* ---------- Empty results ---------- */
.rf-archive__empty { padding: 48px 32px; text-align: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; }
.rf-archive__empty p { margin: 0; color: #64748b; }
.rf-archive__empty a { color: #4f46e5; font-weight: 600; }

/* ---------- CTA banner, same compact size as on posts ---------- */
body.rf-archive .rf-shell--cta { margin-top: 72px; }
body.rf-archive .rf-shell .cta-banner { padding: 56px 0; }
body.rf-archive .rf-shell .cta-banner__title { font-size: clamp(1.5rem, 2.6vw, 2.125rem); letter-spacing: -0.03em; margin-bottom: 0.75rem; }
body.rf-archive .rf-shell .cta-banner__subtitle { font-size: 1rem; line-height: 1.6; max-width: 480px; margin-bottom: 1.5rem; }
body.rf-archive .rf-shell .cta-banner__ctas { margin-bottom: 1rem; }
body.rf-archive .rf-shell .cta-banner__ctas .btn--large { font-size: 0.9375rem; padding: 0.75rem 1.5rem; }
body.rf-archive .rf-shell .cta-banner__note { font-size: 0.8125rem; }
body.rf-archive .rf-shell--footer { margin-top: 0; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 1024px) {
  .rf-archive__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 768px) {
  body.rf-archive .site-content { padding: 24px 16px 0; }
  .rf-archive-hero__head { gap: 16px; }
  .rf-archive-hero__avatar { width: 60px; height: 60px; font-size: 22px; }
  .rf-archive-hero__desc { font-size: 16px; }
  .rf-archive__chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 0 16px 4px; scrollbar-width: none; }
  .rf-archive__chips::-webkit-scrollbar { display: none; }
  body.rf-archive .rf-shell--cta { margin-top: 48px; }
  body.rf-archive .rf-shell .cta-banner { padding: 44px 0; }
}
@media (max-width: 640px) {
  .rf-archive__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rf-card__body { padding: 18px 20px 20px; }
  .rf-card__title { font-size: 18px; }
  .rf-archive__pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; }
}
