/* ==========================================================================
   reviews.css  —  Customer Reviews section (AsMediaHub)
   Loaded after main.css. Uses theme variables from main.css :root.
   ========================================================================== */

.amh-reviews-section {
  padding: 60px 0;
  background: #f6f7fb;
}

.amh-reviews-head { margin-bottom: 36px; }

.amh-reviews-head h2 {
  font-family: var(--heading-font, "Raleway", sans-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--heading-color, #2c4964);
  margin: 0 0 12px;
}

.amh-reviews-agg {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.amh-agg-score {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--heading-color, #2c4964);
  line-height: 1;
}

.amh-agg-meta {
  font-size: 0.9rem;
  color: #6b7280;
}

.amh-reviews-sub {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 4px 0 0;
}

/* Stars */
.amh-review-stars {
  display: inline-flex;
  gap: 2px;
  color: #ffb400;
  font-size: 1rem;
  line-height: 1;
}
.amh-agg-stars { font-size: 1.25rem; }
.amh-review-stars .bi { line-height: 1; }

/* Grid */
.amh-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Cards */
.amh-review-card {
  background: var(--surface-color, #fff);
  border: 1px solid #eceef3;
  border-radius: 14px;
  padding: 22px 20px 18px;
  box-shadow: 0 4px 18px rgba(44, 73, 100, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.amh-review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(44, 73, 100, 0.10);
}

.amh-review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.amh-review-avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-color, #5846f9);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.amh-review-id {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.amh-review-name {
  font-weight: 600;
  color: var(--heading-color, #2c4964);
  font-size: 0.95rem;
}
.amh-review-role {
  font-size: 0.8rem;
  color: #8b93a3;
}

.amh-review-verified {
  margin-left: auto;
  color: var(--accent-color, #5846f9);
  font-size: 1.1rem;
}

.amh-review-stars + .amh-review-text { margin-top: 10px; }

.amh-review-text {
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 12px;
  flex: 1 1 auto;
}

.amh-review-date {
  font-size: 0.78rem;
  color: #9aa1ad;
}

/* Show more button (used when > 3 reviews on mobile) */
.amh-reviews-more-wrap { margin-top: 26px; }
.amh-reviews-more {
  background: transparent;
  border: 1.5px solid var(--accent-color, #5846f9);
  color: var(--accent-color, #5846f9);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 26px;
  border-radius: 30px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.amh-reviews-more:hover {
  background: var(--accent-color, #5846f9);
  color: #fff;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .amh-reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .amh-reviews-section { padding: 44px 0; }
  .amh-reviews-grid { grid-template-columns: 1fr; gap: 16px; }
  .amh-reviews-head h2 { font-size: 1.4rem; }

  /* On mobile, hide extra reviews until "Show more" is tapped */
  .amh-review-extra { display: none; }
  .amh-reviews-section.amh-expanded .amh-review-extra { display: flex; }
}
