/* FlowCraft Review Wall — style.css
   The few things Tailwind classes can't do on their own: the stars, the
   filter chips, the grid-to-swipe layout, initials colours and the bars. */

.rw [hidden] { display: none !important; }

/* Stars: app.js adds .is-on to the lit ones */
.rw-stars { display: inline-flex; gap: 2px; }
.rw-stars svg { width: 16px; height: 16px; fill: #e2e8f0; }
.rw-stars svg.is-on { fill: #f59e0b; }
.rw-stars-lg svg { width: 22px; height: 22px; }

/* Filter chips (aria-pressed shows the active one) */
.rw-chip {
  padding: .4rem .85rem; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff;
  font-size: .85rem; font-weight: 700; color: #334155; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.rw-chip:hover { border-color: #818cf8; }
.rw-chip[aria-pressed="true"] { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.rw-chip:focus-visible { outline: none; box-shadow: 0 0 0 4px #c7d2fe; }

/* Cards: a swipeable row on phones, a grid from 768px */
.rw-grid { display: flex; align-items: flex-start; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.rw-grid > * { flex: 0 0 85%; scroll-snap-align: start; }
@media (min-width: 768px) {
  .rw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; overflow: visible; }
  .rw-grid > * { flex: none; }
}
@media (min-width: 1024px) { .rw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Initials when there's no photo; the colour comes from the name */
.rw-initials { background: hsl(var(--hue, 240) 70% 92%); color: hsl(var(--hue, 240) 55% 30%); }

/* Rating breakdown bars grow in */
.rw-bar { width: 0; transition: width .6s cubic-bezier(.22, 1, .36, 1); }

@media (prefers-reduced-motion: reduce) {
  .rw-bar, .rw-chip { transition: none; }
}
