/* P4: página /reviews e carrossel automático de avaliações da home. Escuro com detalhe dourado. */
:root { --rv-gold: #d4af37; --rv-gold-soft: rgba(212, 175, 55, .14); --rv-gold-line: rgba(212, 175, 55, .35); }

/* ---------------------------------------------------------------- resumo (nota + botões) */
.rv-section { padding-bottom: 60px; }
.rv-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin: 28px 0 26px; padding: 24px 28px; background: var(--color-surface); border: 1px solid var(--rv-gold-line); border-radius: var(--radius); }
.rv-summary--solo { justify-content: flex-end; }
.rv-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.rv-score strong { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--rv-gold); }
.rv-score small { flex-basis: 100%; color: var(--color-gray-300); font-size: .9rem; }
.rv-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rv-actions .btn-primary, .rv-cta .btn-primary { background: var(--rv-gold); border-color: var(--rv-gold); color: #111; }
.rv-actions .btn-primary:hover, .rv-cta .btn-primary:hover { background: #e6c25a; border-color: #e6c25a; box-shadow: 0 8px 30px rgba(212, 175, 55, .28); }
.rv-actions .btn-outline { color: var(--rv-gold); border-color: var(--rv-gold-line); }
.rv-actions .btn-outline:hover { border-color: var(--rv-gold); background: var(--rv-gold-soft); color: #fff; }

/* ---------------------------------------------------------------- estrelas */
.rv-stars { color: var(--rv-gold); letter-spacing: 2px; font-size: 1.1rem; line-height: 1; }
.rv-off { color: var(--color-gray-700); }

/* ---------------------------------------------------------------- filtro */
.rv-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.rv-chip { font: inherit; font-size: .88rem; font-weight: 600; color: var(--color-gray-100); background: var(--color-surface); border: 1px solid var(--color-surface-2); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: var(--transition); }
.rv-chip span { color: var(--color-gray-500); font-weight: 500; margin-left: 4px; }
.rv-chip:hover { border-color: var(--rv-gold-line); }
.rv-chip.is-on { background: var(--rv-gold); border-color: var(--rv-gold); color: #111; }
.rv-chip.is-on span { color: #4a3b0a; }
.rv-chip:focus-visible, .rv-more:focus-visible, .rv-g:focus-visible { outline: 2px solid var(--rv-gold); outline-offset: 2px; }

/* ---------------------------------------------------------------- grade */
.rv-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; align-items: start; }
.rv-item[hidden] { display: none; }
.rv-card { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 24px 22px; background: var(--color-surface); border: 1px solid rgba(255, 255, 255, .05); border-top: 2px solid var(--rv-gold-line); border-radius: var(--radius); transition: var(--transition); }
.rv-card:hover { border-color: var(--rv-gold-line); border-top-color: var(--rv-gold); transform: translateY(-2px); }
.rv-text { color: var(--color-gray-100); line-height: 1.7; font-size: .96rem; white-space: pre-line; overflow-wrap: anywhere; }
.rv-js .rv-text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.rv-more { align-self: flex-start; font: inherit; font-size: .85rem; font-weight: 700; color: var(--rv-gold); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rv-more[hidden] { display: none; }
.rv-author { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.rv-photo { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; overflow: hidden; object-fit: cover; background: var(--color-surface-2); }
.rv-photo img { width: 100%; height: 100%; object-fit: cover; }
.rv-photo--ini { display: grid; place-items: center; color: var(--rv-gold); font-family: var(--font-display); font-size: 1.2rem; border: 1px solid var(--rv-gold-line); }
.rv-who { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.rv-who cite { font-style: normal; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.rv-who time { color: var(--color-gray-300); font-size: .78rem; }
.rv-g { margin-left: auto; flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rv-gold-line); color: var(--rv-gold); font-weight: 700; font-size: .8rem; text-decoration: none; }
a.rv-g:hover { background: var(--rv-gold); color: #111; }
.rv-none { margin: 30px 0; color: var(--color-gray-300); text-align: center; }
.rv-cta { margin: 40px 0 0; text-align: center; }

@media (max-width: 640px) {
  .rv-summary { padding: 20px 18px; }
  .rv-score strong { font-size: 2.8rem; }
  .rv-actions .btn { flex: 1 1 100%; text-align: center; }
  .rv-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- home: carrossel automático (sem botão de pausa) */
.tm-grid--auto { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 18px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: none; scrollbar-width: none; -ms-overflow-style: none; padding: 4px 0 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tm-grid--auto::-webkit-scrollbar { display: none; }
.tm-grid--auto .tm-item { flex: 0 0 min(370px, 82%); min-width: 0; scroll-snap-align: none; }
.tm-grid--auto .tm-card { border-top: 2px solid var(--rv-gold-line); }
.tm-grid--auto .tm-stars { color: var(--rv-gold); }
.tm-grid--auto .tm-quote p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.tm-grid--auto .tm-source { color: var(--rv-gold) !important; }
.tm-grid--auto .tm-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-all { margin: 22px 0 0; text-align: center; }
.tm-all a { color: var(--rv-gold); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
