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

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

/* Categorii (chips) */
.rvbib-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: var(--rv-s-4, 32px); }
.rvbib-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);
}
.rvbib-cat:hover { border-color: var(--rv-line-strong, #d7dae0); transform: translateY(-1px); }
.rvbib-cat.is-active { background: var(--rv-ink, #0a0a0b); color: #fff; border-color: var(--rv-ink, #0a0a0b); }

/* Grilă articole */
.rvbib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.rvbib-card {
  display: flex; flex-direction: column; background: var(--rv-bg-soft, #fff);
  border: 1px solid var(--rv-line, #e5e7eb); border-radius: var(--rv-radius-lg, 22px); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--rv-shadow-sm, 0 2px 12px rgba(10,10,11,.05));
  transition: transform .22s var(--rv-ease, ease), box-shadow .22s var(--rv-ease, ease), border-color .22s var(--rv-ease, ease);
}
.rvbib-card:hover { transform: translateY(-4px); box-shadow: var(--rv-shadow, 0 8px 30px rgba(10,10,11,.07)); border-color: var(--rv-line-strong, #d7dae0); }
.rvbib-card__media { position: relative; aspect-ratio: 16/9; background: var(--rv-bg, #f7f8fa); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rvbib-card__media img { width: 100%; height: 100%; object-fit: cover; }
.rvbib-card__ph { font-size: 2.6rem; opacity: .35; }
.rvbib-card__cat {
  position: absolute; top: 10px; left: 10px; font-size: .7rem; font-weight: 700; letter-spacing: .03em;
  background: var(--rv-bg-soft, #fff); color: var(--rv-ink, #0a0a0b); padding: 4px 10px; border-radius: 999px;
  box-shadow: var(--rv-shadow-sm, 0 2px 8px rgba(0,0,0,.12));
}
.rvbib-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rvbib-card__title { font-size: 1.1rem; 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; }
.rvbib-card__excerpt { font-size: .9rem; color: var(--rv-muted, #6b7280); margin: 0; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rvbib-card__meta { margin-top: auto; padding-top: 8px; font-size: .78rem; font-weight: 600; color: var(--rv-brand-2, #0EA5A0); }

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

/* Paginare */
.rvbib-pager { display: flex; justify-content: center; gap: 6px; margin-top: var(--rv-s-5, 40px); flex-wrap: wrap; }
.rvbib-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;
}
.rvbib-pager .page-numbers.current { background: var(--rv-ink, #0a0a0b); color: #fff; border-color: var(--rv-ink, #0a0a0b); }
.rvbib-pager .page-numbers:hover:not(.current) { border-color: var(--rv-line-strong, #d7dae0); }

/* ── Articol ── */
.rvbib-single__wrap { max-width: 760px; }
.rvbib-crumbs { font-size: .82rem; color: var(--rv-muted, #6b7280); margin-bottom: 18px; }
.rvbib-crumbs a { color: var(--rv-muted, #6b7280); text-decoration: none; }
.rvbib-crumbs a:hover { color: var(--rv-ink, #0a0a0b); }
.rvbib-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; }
.rvbib-single__head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; margin: 4px 0 12px; }
.rvbib-single__meta { color: var(--rv-muted, #6b7280); font-size: .9rem; display: flex; gap: 8px; }
.rvbib-single__cover { margin: 24px 0; border-radius: var(--rv-radius-lg, 22px); overflow: hidden; }
.rvbib-single__cover img { width: 100%; height: auto; display: block; }
.rvbib-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);
}
.rvbib-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);
}
.rvbib-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; }
.rvbib-single__content { font-size: 1.06rem; line-height: 1.75; color: var(--rv-ink-2, #374151); }
.rvbib-single__content h2 { font-size: 1.5rem; margin: 32px 0 12px; color: var(--rv-ink, #0a0a0b); }
.rvbib-single__content h3 { font-size: 1.2rem; margin: 24px 0 10px; color: var(--rv-ink, #0a0a0b); }
.rvbib-single__content img { border-radius: var(--rv-radius, 18px); }
.rvbib-single__content a { color: var(--rv-brand-2, #0EA5A0); text-decoration: underline; }
.rvbib-single__content ul, .rvbib-single__content ol { padding-left: 22px; }
.rvbib-single__content blockquote { border-left: 3px solid var(--rv-line-strong, #d7dae0); padding-left: 16px; color: var(--rv-muted, #6b7280); margin: 20px 0; }

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

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