/* Pulse — pe tokenii temei Revanzator (--rv-*), cu fallback-uri. Dark-aware automat. */

.rvst-hero { text-align: center; max-width: 720px; margin: 0 auto var(--rv-s-5, 40px); }
.rvst-hero h1 { font-size: var(--rv-fs-h1, clamp(2rem,4.5vw,3.4rem)); margin: 12px 0 10px; }

/* Carduri mari de categorie — poză + text suprapus (pagina principală) */
.rvst-cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 0 0 var(--rv-s-4, 32px); }
.rvst-cat-tile {
  position: relative; display: flex; align-items: flex-end; min-height: 130px;
  border-radius: var(--rv-radius-lg, 18px); overflow: hidden; background-color: var(--rvst-accent, #0ea5a0);
  background-size: cover; background-position: center; text-decoration: none;
  box-shadow: var(--rv-shadow-sm, 0 2px 12px rgba(10,10,11,.06));
  transition: transform .2s var(--rv-ease, ease);
}
.rvst-cat-tile:hover { transform: translateY(-3px); }
.rvst-cat-tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%); }
.rvst-cat-tile__label { position: relative; z-index: 1; padding: 14px 16px; font-weight: 800; font-size: 1.05rem; color: #fff; letter-spacing: -.01em; }

/* Filtru de categorii (pastile mici, sub cardurile mari) */
.rvst-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: var(--rv-s-4, 32px); }
.rvst-cat {
  font-size: .85rem; font-weight: 600; padding: 8px 16px; border-radius: var(--rv-radius-pill, 999px);
  background: var(--rv-bg-soft, #fff); border: 1px solid var(--rv-line, #e5e7eb); color: var(--rv-ink-2, #374151);
  text-decoration: none; transition: all .18s var(--rv-ease, ease);
}
.rvst-cat:hover { border-color: var(--rv-line-strong, #d7dae0); transform: translateY(-1px); }
.rvst-cat.is-active { background: var(--rv-ink, #0a0a0b); color: #fff; border-color: var(--rv-ink, #0a0a0b); }

/* Grilă articole — carduri mai mici/dense, stil listă de site de știri */
.rvst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.rvst-card {
  display: flex; flex-direction: column; background: var(--rv-bg-soft, #fff);
  border: 1px solid var(--rv-line, #e5e7eb); border-radius: var(--rv-radius, 14px); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--rv-shadow-sm, 0 2px 12px rgba(10,10,11,.05));
  transition: transform .2s var(--rv-ease, ease), box-shadow .2s var(--rv-ease, ease);
}
.rvst-card:hover { transform: translateY(-4px); box-shadow: var(--rv-shadow, 0 8px 30px rgba(10,10,11,.07)); }
.rvst-card__media { position: relative; aspect-ratio: 16/9; background: var(--rv-bg, #f7f8fa); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rvst-card__media img { width: 100%; height: 100%; object-fit: cover; }
.rvst-card__ph { font-size: 1.8rem; opacity: .35; }
.rvst-card__cat {
  position: absolute; top: 8px; left: 8px; font-size: .64rem; font-weight: 700; letter-spacing: .03em;
  background: var(--rv-bg-soft, #fff); color: var(--rv-ink, #0a0a0b); padding: 3px 8px; border-radius: 999px;
  box-shadow: var(--rv-shadow-sm, 0 2px 8px rgba(0,0,0,.12));
}
.rvst-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rvst-card__title { font-size: .92rem; font-weight: 700; line-height: 1.3; margin: 0; color: var(--rv-ink, #0a0a0b);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rvst-card__excerpt { font-size: .8rem; color: var(--rv-muted, #6b7280); margin: 0; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rvst-card__meta { margin-top: auto; padding-top: 6px; font-size: .7rem; font-weight: 600; color: var(--rv-brand-2, #0EA5A0); }

.rvst-empty { text-align: center; padding: 60px 0; color: var(--rv-muted, #6b7280); }

.rvst-pager { display: flex; justify-content: center; gap: 6px; margin-top: var(--rv-s-5, 40px); flex-wrap: wrap; }
.rvst-pager .page-numbers {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px;
  border: 1px solid var(--rv-line, #e5e7eb); border-radius: 10px; background: var(--rv-bg-soft, #fff);
  color: var(--rv-ink-2, #374151); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.rvst-pager .page-numbers.current { background: var(--rv-ink, #0a0a0b); color: #fff; border-color: var(--rv-ink, #0a0a0b); }
.rvst-pager .page-numbers:hover:not(.current) { border-color: var(--rv-line-strong, #d7dae0); }

/* ── Articol ── */
.rvst-single__wrap { max-width: 760px; }
.rvst-crumbs { font-size: .82rem; color: var(--rv-muted, #6b7280); margin-bottom: 18px; }
.rvst-crumbs a { color: var(--rv-muted, #6b7280); text-decoration: none; }
.rvst-crumbs a:hover { color: var(--rv-ink, #0a0a0b); }
.rvst-single__cat { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--rv-brand-2, #0EA5A0); margin-bottom: 8px; }
.rvst-single__head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; margin: 4px 0 12px; }
.rvst-single__meta { color: var(--rv-muted, #6b7280); font-size: .9rem; display: flex; gap: 8px; }
.rvst-single__cover { margin: 24px 0; border-radius: var(--rv-radius-lg, 18px); overflow: hidden; }
.rvst-single__cover img { width: 100%; height: auto; display: block; }
.rvst-single__cover--placeholder {
  aspect-ratio: 21/9; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; background: var(--rv-bg, #f7f8fa); color: var(--rv-muted, #9ca3af);
}
.rvst-single__lead { font-size: 1.2rem; line-height: 1.6; color: var(--rv-ink-2, #374151); font-weight: 500;
  border-left: 3px solid var(--rv-brand, #10B981); padding-left: 16px; margin: 24px 0; }
.rvst-single__content { font-size: 1.06rem; line-height: 1.75; color: var(--rv-ink-2, #374151); }
.rvst-single__content > p:first-of-type::first-letter {
  float: left; font-size: 3.6rem; line-height: .82; font-weight: 800; padding: 4px 8px 0 0; color: var(--rv-ink, #0a0a0b);
}
.rvst-single__content h2 { font-size: 1.5rem; margin: 32px 0 12px; color: var(--rv-ink, #0a0a0b); }
.rvst-single__content h3 { font-size: 1.2rem; margin: 24px 0 10px; color: var(--rv-ink, #0a0a0b); }
/* Poze inserate în corpul articolului (nu coperta) — constrânse la 16:9, mărime
   moderată, ca la un site de știri, indiferent de dimensiunea originală încărcată. */
.rvst-single__content img {
  display: block; width: 100%; max-width: 640px; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--rv-radius, 14px); margin: 24px auto;
}
.rvst-single__content a { color: var(--rv-brand-2, #0EA5A0); text-decoration: underline; }
.rvst-single__content ul, .rvst-single__content ol { padding-left: 22px; }
.rvst-single__content blockquote { border-left: 3px solid var(--rv-line-strong, #d7dae0); padding-left: 16px; color: var(--rv-muted, #6b7280); margin: 20px 0; }

.rvst-related { margin-top: var(--rv-s-6, 64px); }
.rvst-related h2 { font-size: 1.4rem; margin-bottom: 20px; }

@media (max-width: 640px) {
  .rvst-grid { grid-template-columns: 1fr; gap: 16px; }
  .rvst-single__lead { font-size: 1.08rem; }
}
