/* ═══════════════════════════════════════
   Jus Ativos Reviews — Frontend CSS
   Arquivo: assets/reviews.css
   Usado pelo shortcode [jus_reviews]
═══════════════════════════════════════ */

/* Container principal */
.jar-reviews {
  width: 100%;
  font-family: 'Outfit', system-ui, sans-serif;
}

/* Header com nota média */
.jar-reviews__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E8EDF5;
  justify-content: center;
  flex-wrap: wrap;
}

.jar-reviews__avg {
  font-size: 36px;
  font-weight: 700;
  font-family: 'Libre Baskerville', Georgia, serif;
  color: #D4A843;
  line-height: 1;
  letter-spacing: -.02em;
}

.jar-reviews__stars {
  display: flex;
  gap: 3px;
}

.jar-star--full  { color: #D4A843; font-size: 20px; }
.jar-star--half  { color: #D4A843; font-size: 20px; opacity: .55; }
.jar-star--empty { color: #C0CCDA; font-size: 20px; }

.jar-reviews__source {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7A8EA8;
}

/* Grid de cards */
.jar-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .jar-reviews__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .jar-reviews__grid { grid-template-columns: 1fr; }
}

/* Card individual */
.jar-review-card {
  background: #ffffff;
  border: 1px solid #E8EDF5;
  border-top: 2px solid #D4A843;
  border-radius: 0 0 4px 4px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 1px 6px rgba(8,14,28,.06);
}

.jar-review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(8,14,28,.12);
}

/* Estrelas */
.jar-review-card__stars {
  color: #D4A843;
  font-size: 13px;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

/* Texto */
.jar-review-card__text {
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  color: #526B8A;
  line-height: 1.8;
  flex: 1;
  margin: 0 0 16px;
  padding: 0;
}

/* Autor */
.jar-review-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Avatar texto */
.jar-review-card__av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1A2E4A, #2E4A6E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -.02em;
}

/* Foto do Google */
.jar-review-card__photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.jar-review-card__info {
  flex: 1;
  min-width: 0;
}

.jar-review-card__name {
  font-size: 13px;
  font-weight: 600;
  color: #080E1C;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jar-review-card__date {
  font-size: 11px;
  font-weight: 300;
  color: #7A8EA8;
  margin-top: 2px;
}

/* Estado de erro para admin */
.jar-error {
  padding: 12px 16px;
  background: rgba(182, 27, 27, .06);
  border: 1px solid rgba(182, 27, 27, .25);
  border-radius: 4px;
  font-size: 13px;
  color: #b61b1b;
}
