/* ==========================================================================
   LAMSET NOOR STUDIO — pages/reviews.css
   ========================================================================== */

/* ---------- Rating summary ---------- */
.rating-summary {
  display: grid;
  grid-template-columns: auto 1px 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.rating-summary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold-grad-soft);
}

.rating-summary__score { text-align: center; }

.rating-summary__num {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 5.4rem);
  line-height: 1;
  background: var(--gold-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rating-summary__stars { display: flex; gap: .18rem; justify-content: center; color: var(--gold-400); margin-block: .6rem .4rem; }
.rating-summary__stars svg { width: 17px; height: 17px; }

.rating-summary__count { font-size: var(--fs-micro); letter-spacing: var(--track-mid); text-transform: uppercase; color: var(--text-3); }
html[lang='ar'] .rating-summary__count { letter-spacing: .02em; text-transform: none; font-size: .82rem; }

.rating-summary__rule { background: var(--line); align-self: stretch; }

.rating-summary__tags { display: flex; flex-wrap: wrap; gap: .55rem; }

@media (max-width: 760px) {
  .rating-summary { grid-template-columns: 1fr; text-align: center; }
  .rating-summary__rule { display: none; }
  .rating-summary__tags { justify-content: center; }
}

/* ---------- Masonry wall (desktop) ---------- */
.rev-wall {
  columns: 3;
  column-gap: clamp(1rem, 2.2vw, 1.6rem);
}

.rev-wall .rev-card {
  break-inside: avoid;
  margin-block-end: clamp(1rem, 2.2vw, 1.6rem);
}

@media (max-width: 1000px) { .rev-wall { columns: 2; } }

/* ---------- Horizontal swipe rail (mobile) ---------- */
@media (max-width: 760px) {
  .rev-wall {
    columns: auto;
    display: flex;
    gap: .9rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding-block-end: 1rem;
  }
  .rev-wall::-webkit-scrollbar { display: none; }

  .rev-wall .rev-card {
    flex: 0 0 82vw;
    max-width: 340px;
    margin-block-end: 0;
    scroll-snap-align: center;
  }
  .rev-wall .rev-card:hover { transform: none; }
}

/* Swipe hint, only shown where the rail is active */
.rev-swipe {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-block-start: .4rem;
  font-size: var(--fs-micro);
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--text-3);
}
html[lang='ar'] .rev-swipe { letter-spacing: .02em; text-transform: none; font-size: .8rem; }
.rev-swipe svg { width: 14px; height: 14px; color: var(--gold-400); }

@media (max-width: 760px) { .rev-swipe { display: flex; } }

/* ---------- Leave a review ---------- */
.leave {
  position: relative;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  padding: clamp(2.2rem, 5vw, 4rem);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.leave::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold-grad-soft), var(--surface);
}

.leave__stars { display: flex; justify-content: center; gap: .35rem; color: var(--gold-400); margin-block-end: 1.2rem; }
.leave__stars svg { width: 24px; height: 24px; }
.leave__stars span { display: inline-flex; animation: floatY 3.4s var(--ease-soft) infinite; }
.leave__stars span:nth-child(2) { animation-delay: .12s; }
.leave__stars span:nth-child(3) { animation-delay: .24s; }
.leave__stars span:nth-child(4) { animation-delay: .36s; }
.leave__stars span:nth-child(5) { animation-delay: .48s; }
