/* ============================================================
   Overealm Reviews — Public CSS v1.0
   Tous les sélecteurs préfixés .oreview-* → zéro conflit thème
   ============================================================ */

/* Widget racine */
.oreview-widget { font-family: inherit; color: inherit; line-height: 1.6; }

/* ── Résumé de note ── */
.oreview-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.oreview-summary__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}
.oreview-summary__avg {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: #111;
}
.oreview-summary__stars { margin: 6px 0 4px; }
.oreview-summary__count { font-size: 12px; color: #666; }

/* Barres de distribution */
.oreview-summary__bars { flex: 1; min-width: 160px; }
.oreview-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.oreview-bar-label { font-size: 12px; color: #555; min-width: 10px; text-align: right; }
.oreview-bar-track {
  flex: 1;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}
.oreview-bar-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: 3px;
  transition: width .4s ease;
}
.oreview-bar-pct { font-size: 11px; color: #888; min-width: 28px; }

/* Badges de confiance */
.oreview-summary__trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.oreview-trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 5px 12px;
  white-space: nowrap;
}

/* ── Étoiles ── */
.oreview-star { font-size: 14px; }
.oreview-star--full  { color: #f59e0b; }
.oreview-star--half  { color: #f59e0b; }
.oreview-star--empty { color: #d1d1d1; }

/* ── Grille de cards ── */
.oreview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.oreview-empty { color: #888; font-style: italic; padding: 24px 0; }

/* ── Card individuelle ── */
.oreview-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 16px 18px;
  transition: box-shadow .2s;
}
.oreview-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

/* Header de la card */
.oreview-card__header {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.oreview-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,191,255,.12);
  color: #0099cc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.oreview-card__meta { flex: 1; min-width: 0; }
.oreview-card__author-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.oreview-card__author { font-size: 14px; font-weight: 600; }
.oreview-card__stars-row { display: flex; align-items: center; gap: 8px; }
.oreview-card__date { font-size: 11px; color: #999; }
.oreview-card__product { font-size: 11px; color: #aaa; display: block; margin-top: 2px; }

/* Contenu */
.oreview-card__title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #111;
}
.oreview-card__content {
  font-size: 13px;
  color: #444;
  margin: 0 0 10px;
  line-height: 1.65;
}

/* Photo */
.oreview-card__photo-wrap { margin-top: 8px; }
.oreview-card__photo {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #eee;
  display: block;
}

/* ── Badges ── */
.oreview-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.oreview-badge--vérifié,
.oreview-badge--verifie   { background: #e6f1fb; color: #185fa5; }
.oreview-badge--bronze    { background: #f5e6d3; color: #7d4f2a; }
.oreview-badge--silver    { background: #f0f0f0; color: #5a5a5a; }
.oreview-badge--gold      { background: #faeeda; color: #854f0b; }
.oreview-badge--premium   { background: #fff0e0; color: #b45309; }

/* ── Charger plus ── */
.oreview-load-more-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.oreview-load-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 28px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, opacity .2s;
}
.oreview-load-more:hover { background: #222; }
.oreview-load-more:disabled { opacity: .5; cursor: not-allowed; }
.oreview-counter { font-size: 12px; color: #999; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .oreview-summary { flex-direction: column; gap: 16px; }
  .oreview-grid { grid-template-columns: 1fr; }
  .oreview-summary__avg { font-size: 36px; }
}

/* ── Résumé étoiles fiche produit ── */
.oreview-product-summary {
  margin: 4px 0 12px;
}
.oreview-product-summary__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}
.oreview-product-summary__link:hover .oreview-product-summary__count {
  text-decoration: underline;
}
.oreview-product-summary__stars .oreview-star { font-size: 15px; }
.oreview-product-summary__score {
  font-size: 13px;
  font-weight: 700;
  color: #111;
}
.oreview-product-summary__count {
  font-size: 13px;
  color: #666;
}

/* ── Corrections v1.1 ── */

/* Texte du commentaire en couleur foncée */
.oreview-card__content {
  color: rgb(86, 89, 89) !important;
}

/* "Achat vérifié" — même couleur que les étoiles */
.oreview-card__verified {
  font-size: 11px;
  font-weight: 600;
  color: #f59e0b;
  white-space: nowrap;
}

/* Responsive renforcé */
@media (max-width: 480px) {
  .oreview-card__header { flex-direction: column; align-items: flex-start; }
  .oreview-card__author-row { flex-wrap: wrap; gap: 4px; }
  .oreview-card__stars-row { flex-wrap: wrap; gap: 4px; }
  .oreview-summary__bars { min-width: 100%; }
  .oreview-summary__trust { flex-direction: row; flex-wrap: wrap; }
  .oreview-load-more { width: 100%; justify-content: center; }
  .oreview-card__photo { max-width: 100%; }
}

/* Date mode radio (admin) */
.or-date-mode { display: flex; flex-direction: column; gap: 8px; }
.or-radio-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 400; }
.or-radio-label input[type="radio"] { width: 16px; height: 16px; accent-color: #00bfff; }

/* ── Achat vérifié v1.2 ── */
.oreview-card__verified {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #f59e0b !important;
  white-space: nowrap;
  display: inline;
}

/* ── Achat vérifié v1.3 — surcharge Astra ── */
div.oreview-card div.oreview-card__meta div.oreview-card__author-row span.oreview-card__verified {
  color: #f59e0b !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}

/* ── Layout Masonry v1.3 ── */
.oreview-grid {
  display: block !important;
  column-count: 3;
  column-gap: 16px;
}
.oreview-card {
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 16px;
  display: inline-block;
  width: 100%;
}
@media (max-width: 900px) {
  .oreview-grid { column-count: 2; }
}
@media (max-width: 560px) {
  .oreview-grid { column-count: 1; }
}

/* ── Filtres frontend ── */
.oreview-front-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.oreview-ffilter {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  color: #555;
  transition: all .15s;
}
.oreview-ffilter:hover {
  border-color: #f59e0b;
  color: #333;
}
.oreview-ffilter--active {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff !important;
  font-weight: 600;
}
