/* Review proof shown across the site. Linked from partials/nav-head.html, so it
   loads in the <head> of every page.
   - .rv-badge  the "4.9/5 from 400+ reviews" pill (partials/review-badge.html),
                in the hero of every marketing page. Light text for photo/dark
                heroes; wrap it in .rv-on-light for a light background.
   - .rv-chips  the platform chips in each page's #reviews summary
                (partials/review-summary.html).
   The numbers come from scripts/reviews.json via `npm run reviews`. */

.rv-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 9px 14px 9px 16px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(15,15,15,0.42);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
  font-family: var(--sans, 'Poppins', system-ui, sans-serif);
  font-size: 13.5px;
  line-height: 1.2;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.rv-badge:hover { background: rgba(15,15,15,0.6); border-color: rgba(255,255,255,0.45); transform: translateY(-1px); }
.rv-badge:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.rv-badge-stars { color: #FBBC05; font-size: 15px; letter-spacing: 1.5px; line-height: 1; }
.rv-badge-text strong { color: #fff; font-weight: 700; }
.rv-badge-srcs { padding-left: 10px; border-left: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.7); font-size: 12.5px; }
.rv-badge-arrow { display: inline-flex; }
.rv-badge-arrow svg { width: 14px; height: 14px; transition: transform .2s ease; }
.rv-badge:hover .rv-badge-arrow svg { transform: translateX(3px); }

.rv-on-light .rv-badge { background: #fff; border-color: rgba(15,15,15,0.14); box-shadow: 0 6px 18px rgba(0,0,0,0.06); color: #3a3a3a; }
.rv-on-light .rv-badge-text strong { color: #0f0f0f; }
.rv-on-light .rv-badge-srcs { border-left-color: rgba(15,15,15,0.15); color: #6e6e6e; }

/* Hero slot under the CTA buttons on the photo heroes. */
.hero-platforms.hp-row:empty { display: none; }
.hero-platforms.hp-row { margin-top: 22px; }
.rv-hero-slot { display: flex; justify-content: center; margin-top: 24px; }
.rv-hero-slot--start { justify-content: flex-start; }

/* Blog sidebar CTA (dark card, ~260px wide): a plain centred line under the button. */
.rv-sidebar-slot { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12); }
.rv-sidebar-slot .rv-badge { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; white-space: normal; font-size: 12.5px; }
.rv-sidebar-slot .rv-badge:hover { background: none; transform: none; }
.rv-sidebar-slot .rv-badge-srcs, .rv-sidebar-slot .rv-badge-arrow { display: none; }
.rv-sidebar-slot .rv-badge-text { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.35); }

/* The site stylesheets pin #hero .hero-platforms to the bottom of the photo on
   phones (it used to hold platform logos). Keep the badge with the buttons. */
@media (max-width: 768px) {
  #hero .hero-platforms.hp-row { position: static; margin: 18px 0 0; }
  #hero .hero-platforms.hp-row::before { content: none; }
}

@media (max-width: 600px) {
  .rv-badge { font-size: 12.5px; gap: 8px; padding: 8px 12px 8px 14px; }
  .rv-badge-stars { font-size: 13px; letter-spacing: 1px; }
  .rv-badge-srcs { display: none; }
}
@media (max-width: 360px) {
  .rv-badge { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-badge, .rv-badge-arrow svg { transition: none; }
  .rv-badge:hover { transform: none; }
}

/* #reviews summary: platform chips */
.rv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(15,15,15,0.14);
  border-radius: 999px;
  background: #fff;
  font-family: var(--sans, 'Poppins', system-ui, sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rv-c, #0f0f0f);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.rv-chip span { font-weight: 500; color: #3a3a3a; }
.rv-chip:hover { border-color: var(--rv-c, #0f0f0f); transform: translateY(-1px); }
.sg-dark .rv-chip { border-color: transparent; background: var(--cream, #F7F5EF); }
