/* ==========================================================================
   Reviorum — pages/review-detail.css  (review-detail.html / single-rv_review.php)
   One review with its update history and the company reply.
   ========================================================================== */

/* ---------- Entity strip ---------- */
.rv-rd-strip { background: var(--rv-surface); border-bottom: 1px solid var(--rv-line); }
.rv-rd-strip__inner { display: flex; align-items: center; gap: 14px; padding-block: var(--rv-s-3); }
.rv-rd-strip__body { flex: 1; min-width: 0; }
.rv-rd-strip__body .rv-breadcrumbs { padding-block: 0 2px; }
.rv-rd-strip__name { font-weight: 700; }
.rv-body .rv-rd-strip__name a { color: var(--rv-ink); }
.rv-rd-strip__actions { display: flex; gap: var(--rv-s-2); flex: none; }

/* ---------- Layout ---------- */
.rv-rd-layout { padding-block: var(--rv-s-8) 3.5rem; }
.rv-rd-main { display: flex; flex-direction: column; gap: var(--rv-s-4); min-width: 0; }
.rv-rd-aside { display: flex; flex-direction: column; gap: var(--rv-s-4); }

/* ---------- Review ---------- */
.rv-rd-review { display: flex; flex-direction: column; gap: 18px; padding: 28px; }
.rv-rd-review__author { display: flex; align-items: center; gap: var(--rv-s-3); }
.rv-rd-review__who { flex: 1; min-width: 0; }
.rv-rd-review__name { font-weight: 700; }
.rv-rd-review__verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--rv-r-pill);
  background: var(--rv-accent-soft);
  color: var(--rv-accent);
  font-size: var(--rv-fs-xs);
  font-weight: 700;
  white-space: nowrap;
}
.rv-rd-review__rating { gap: var(--rv-s-3); }
.rv-rd-review__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; font-weight: 800; letter-spacing: -0.025em; }
.rv-rd-review__text { display: flex; flex-direction: column; gap: 14px; color: var(--rv-ink-2); font-size: 1.0625rem; line-height: 1.7; }

.rv-rd-review__media { display: flex; flex-wrap: wrap; gap: var(--rv-s-3); margin: 0; padding: 0; list-style: none; }
.rv-rd-review__figure { width: 200px; margin: 0; }
.rv-rd-review__figure img { width: 100%; height: auto; aspect-ratio: 8 / 5; border: 1px solid var(--rv-line); border-radius: var(--rv-r-md); object-fit: cover; }
.rv-rd-review__figure figcaption { margin-top: 6px; color: var(--rv-muted); font-size: var(--rv-fs-xs); }

.rv-rd-history { padding: var(--rv-s-4); border-radius: var(--rv-r-md); background: var(--rv-surface-2); }
.rv-rd-history__title { margin-bottom: 10px; color: var(--rv-muted); font-size: var(--rv-fs-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.rv-rd-history__list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: var(--rv-fs-md); color: var(--rv-ink-2); }
.rv-rd-history__list li { position: relative; padding-left: 20px; }
.rv-rd-history__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rv-accent);
}
.rv-rd-history__list li + li::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: calc(100% - 0.55em);
  width: 2px;
  height: 18px;
  background: var(--rv-line);
}
.rv-rd-history__list time { color: var(--rv-ink); font-weight: 700; }

.rv-rd-review__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rv-s-2); padding-top: var(--rv-s-4); border-top: 1px solid var(--rv-line); }
.rv-body .rv-rd-review__helpful[aria-pressed="true"] { border-color: var(--rv-accent); background: var(--rv-accent-soft); color: var(--rv-accent); }
.rv-body .rv-rd-review__report { margin-left: auto; color: var(--rv-muted); }
.rv-body .rv-rd-review__report:hover { color: var(--rv-ink); }
.rv-rd-review__policy { margin-top: -6px; }

/* ---------- Company reply ---------- */
.rv-rd-reply {
  display: flex;
  flex-direction: column;
  gap: var(--rv-s-3);
  padding: 22px 24px;
  border-left: 3px solid var(--rv-accent);
  color: var(--rv-ink-2);
  line-height: 1.65;
}
.rv-rd-reply__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rv-s-2); }
.rv-rd-reply__title { color: var(--rv-ink); font-size: var(--rv-fs-base); font-weight: 700; }
.rv-rd-reply__badge { padding: 2px 8px; border-radius: 6px; background: var(--rv-accent-soft); color: var(--rv-accent); font-size: var(--rv-fs-xs); font-weight: 600; }

/* ---------- Aside ---------- */
.rv-rd-more { display: flex; flex-direction: column; gap: var(--rv-s-2); padding: var(--rv-s-5); }
.rv-rd-more__title { font-size: var(--rv-fs-base); font-weight: 700; }
.rv-rd-more__list { margin: 0; padding: 0; list-style: none; }
.rv-rd-more__item { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--rv-line); }
.rv-rd-more__head { display: flex; align-items: center; gap: var(--rv-s-2); font-size: var(--rv-fs-md); font-weight: 600; }
.rv-body .rv-rd-more__head a { color: var(--rv-ink); }
.rv-body .rv-rd-more__head a:hover { color: var(--rv-accent); }
.rv-rd-cta { display: flex; flex-direction: column; gap: 10px; padding: var(--rv-s-5); border: 0; background: var(--rv-night); color: #fff; }
.rv-rd-cta__title { font-size: var(--rv-fs-lg); font-weight: 700; }
.rv-rd-cta p { color: var(--rv-night-text); font-size: var(--rv-fs-md); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .rv-rd-strip__inner { flex-wrap: wrap; }
  .rv-rd-strip__actions { width: 100%; }
  .rv-rd-strip__actions .rv-btn { flex: 1; }
}

@media (max-width: 640px) {
  .rv-rd-layout { padding-top: var(--rv-s-5); }
  .rv-rd-review { padding: 18px; gap: 14px; }
  .rv-rd-review__author { flex-wrap: wrap; }
  .rv-rd-review__text { font-size: var(--rv-fs-base); }
  .rv-rd-review__figure { width: calc(50% - var(--rv-s-3) / 2); }
  .rv-rd-review__actions .rv-btn { flex: 1; }
  .rv-body .rv-rd-review__report { margin-left: 0; }
  .rv-rd-reply { padding: 18px; }
}
