/* ═══════════════════════════════════════════════════════════
   Reviews & Community — Apple × Tesla Dark Premium Theme
   ═══════════════════════════════════════════════════════════ */

:root {
  --rc-bg: #111111;
  --rc-accent: #FFD400;
  --rc-accent-dim: rgba(255, 212, 0, 0.15);
  --rc-glass: rgba(255, 255, 255, 0.06);
  --rc-glass-border: rgba(255, 255, 255, 0.1);
  --rc-text: #f5f5f7;
  --rc-muted: rgba(245, 245, 247, 0.55);
}

/* ─── Testimonial Marquee (Home) ─── */
.testimonial-marquee {
  background: var(--rc-bg);
  padding: 3rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--rc-glass-border);
}

.testimonial-marquee__head {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 1.5rem;
}

.testimonial-marquee__head .section-eyebrow {
  color: var(--rc-accent);
}

.testimonial-marquee__head .section-title {
  color: var(--rc-text);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.testimonial-track-wrap {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.testimonial-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee 40s linear infinite;
  padding: 0.5rem 0;
}

.testimonial-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tcard {
  flex: 0 0 320px;
  padding: 1.5rem;
  border-radius: 20px;
  color: var(--rc-text);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
}

.tcard:hover {
  transform: translateY(-6px) rotateX(2deg);
}

.tcard__stars {
  color: var(--rc-accent);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.tcard p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--rc-muted);
  margin-bottom: 1rem;
}

.tcard footer {
  font-size: 0.85rem;
  font-weight: 600;
}

.glow-card {
  position: relative;
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, var(--rc-accent-dim), transparent 60%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

.glow-card:hover::before {
  opacity: 1;
}

/* ─── Glass cards (shared) ─── */
.glass-card {
  background: var(--rc-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--rc-glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* ─── Community Section ─── */
.community {
  background: var(--rc-bg);
  color: var(--rc-text);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.community::before {
  content: '';
  position: absolute;
  top: var(--parallax, 0);
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, var(--rc-accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.community .section-eyebrow {
  color: var(--rc-accent);
}

.community .section-title {
  color: var(--rc-text);
}

.community .section-sub {
  color: var(--rc-muted);
}

/* Google badge row */
.google-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0 3rem;
}

.google-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--rc-text);
  transition: transform 0.3s, border-color 0.3s;
}

.google-badge:hover {
  transform: scale(1.03);
  border-color: var(--rc-accent);
}

.google-badge__rating {
  font-size: 2rem;
  font-weight: 700;
  color: var(--rc-accent);
  font-family: var(--font-display, 'Playfair Display', serif);
}

.google-badge__meta {
  font-size: 0.85rem;
  color: var(--rc-muted);
  line-height: 1.4;
}

.google-badge__meta strong {
  display: block;
  color: var(--rc-text);
  font-size: 0.95rem;
}

.btn--google {
  background: var(--rc-accent);
  color: #111;
  font-weight: 600;
  border: none;
}

.btn--google:hover {
  background: #ffe033;
  transform: translateY(-2px);
}

/* Stats */
.review-stats {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: center;
}

.stat-hero {
  text-align: center;
  padding: 2.5rem;
  border-radius: 24px;
}

.stat-hero__stars {
  font-size: 1.5rem;
  color: var(--rc-accent);
  letter-spacing: 4px;
  margin-bottom: 0.5rem;
}

.stat-hero__avg {
  font-size: 4rem;
  font-weight: 800;
  font-family: var(--font-display, 'Playfair Display', serif);
  color: var(--rc-text);
  line-height: 1;
}

.stat-hero__avg span {
  font-size: 1.5rem;
  color: var(--rc-muted);
  font-weight: 400;
}

.stat-hero__label {
  color: var(--rc-muted);
  margin-top: 0.5rem;
}

.stat-hero__customers {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rc-accent);
}

.stat-bars {
  padding: 2rem;
  border-radius: 24px;
}

.stat-bar-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr 3rem;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--rc-muted);
}

.stat-bar-row span:first-child {
  color: var(--rc-accent);
  font-weight: 600;
}

.stat-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.stat-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rc-accent), #ffaa00);
  border-radius: 99px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Special features strip */
.features-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.feature-pill {
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-size: 0.8rem;
  color: var(--rc-muted);
  border: 1px solid var(--rc-glass-border);
  background: rgba(255, 255, 255, 0.03);
}

/* Loved dishes */
.loved-dishes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.loved-chip {
  padding: 0.65rem 1.25rem;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--rc-text);
  transition: transform 0.3s, background 0.3s;
}

.loved-chip::before {
  content: '🔥 ';
}

.loved-chip:hover {
  transform: scale(1.05);
  background: var(--rc-accent-dim);
  border-color: var(--rc-accent);
}

/* Layout grid: form + sidebar */
.community__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Review form */
.review-form-wrap {
  padding: 2rem;
  border-radius: 24px;
}

.review-form-wrap h3 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.review-form-wrap > p {
  color: var(--rc-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.review-form .field {
  margin-bottom: 1.25rem;
}

.review-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rc-muted);
  margin-bottom: 0.4rem;
}

.review-form input[type="text"],
.review-form input[type="tel"],
.review-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--rc-glass-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--rc-text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.review-form input:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--rc-accent);
  box-shadow: 0 0 0 3px var(--rc-accent-dim);
}

.review-form textarea {
  min-height: 100px;
  resize: vertical;
}

.star-rating {
  display: flex;
  gap: 0.25rem;
}

.star-input {
  background: none;
  border: none;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}

.star-input.active,
.star-input:hover {
  color: var(--rc-accent);
}

.star-input:hover {
  transform: scale(1.15);
}

.upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.upload-box {
  position: relative;
  border: 2px dashed var(--rc-glass-border);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.upload-box:hover {
  border-color: var(--rc-accent);
  background: var(--rc-accent-dim);
}

.upload-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-box span {
  font-size: 0.85rem;
  color: var(--rc-muted);
}

.upload-box img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 0.5rem;
  border: 2px solid var(--rc-accent);
}

.upload-box img[hidden] {
  display: none;
}

.btn--submit-review {
  width: 100%;
  padding: 1rem;
  background: var(--rc-accent);
  color: #111;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-top: 0.5rem;
}

.btn--submit-review:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 212, 0, 0.35);
}

/* Sidebar widgets */
.community__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.customer-month {
  padding: 1.5rem;
  border-radius: 20px;
  text-align: center;
}

.customer-month__badge {
  display: inline-block;
  background: var(--rc-accent-dim);
  color: var(--rc-accent);
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.customer-month h3 {
  font-size: 1.1rem;
}

.customer-month__text {
  font-size: 0.85rem;
  color: var(--rc-muted);
  margin-top: 0.5rem;
}

.widget-card {
  padding: 1.25rem;
  border-radius: 20px;
}

.widget-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--rc-accent);
}

.widget-card p {
  font-size: 0.85rem;
  color: var(--rc-muted);
  line-height: 1.5;
}

.feat-reviews {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feat-review {
  padding: 1rem;
  border-radius: 14px;
  font-size: 0.85rem;
}

.feat-review__stars {
  color: var(--rc-accent);
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.feat-review p {
  color: var(--rc-muted);
  margin-bottom: 0.35rem;
}

/* Filters */
.review-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.review-filter {
  padding: 0.55rem 1.1rem;
  border-radius: 99px;
  border: 1px solid var(--rc-glass-border);
  background: transparent;
  color: var(--rc-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.review-filter:hover,
.review-filter.active {
  background: var(--rc-accent);
  color: #111;
  border-color: var(--rc-accent);
}

/* Review cards grid */
.reviews-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.rcard {
  padding: 1.5rem;
  border-radius: 20px;
  position: relative;
  color: var(--rc-text);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.rcard:hover {
  transform: translateY(-8px) rotateY(2deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--rc-accent-dim);
}

.rcard--featured {
  border-color: rgba(255, 212, 0, 0.35);
}

.rcard__pin,
.rcard__feat {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  background: var(--rc-accent-dim);
  color: var(--rc-accent);
}

.rcard__head {
  margin-bottom: 1rem;
}

.rcard__name {
  display: block;
  font-size: 1rem;
}

.rcard__verified {
  display: inline-block;
  font-size: 0.7rem;
  color: #4ade80;
  font-weight: 600;
  margin-top: 0.15rem;
}

.rcard__stars {
  color: var(--rc-accent);
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

.rcard__text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--rc-muted);
  margin-bottom: 0.75rem;
}

.rcard__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.rcard__keywords span {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--rc-accent-dim);
  color: var(--rc-accent);
  text-transform: capitalize;
}

.rcard__food {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  max-height: 200px;
  margin-bottom: 0.75rem;
}

.rcard__reply {
  background: rgba(255, 212, 0, 0.08);
  border-left: 3px solid var(--rc-accent);
  padding: 0.75rem 1rem;
  border-radius: 0 12px 12px 0;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.rcard__reply strong {
  color: var(--rc-accent);
  font-size: 0.8rem;
}

.rcard__reply p {
  color: var(--rc-muted);
  margin-top: 0.25rem;
}

.rcard__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--rc-muted);
}

.rcard__actions {
  display: flex;
  gap: 0.5rem;
}

.rcard__action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--rc-glass-border);
  color: var(--rc-muted);
  padding: 0.35rem 0.65rem;
  border-radius: 99px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}

.rcard__action:hover {
  background: var(--rc-accent-dim);
  color: var(--rc-accent);
  border-color: var(--rc-accent);
}

.rcard__sentiment {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: #4ade80;
  font-weight: 600;
}

.reviews-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--rc-muted);
  padding: 3rem;
}

/* Community gallery */
.community-gallery-section h3 {
  text-align: center;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.community-gallery-section > p {
  text-align: center;
  color: var(--rc-muted);
  margin-bottom: 2rem;
}

.community-gallery {
  columns: 3;
  column-gap: 1rem;
}

.comm-photo {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.comm-photo img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.comm-photo:hover img {
  transform: scale(1.05);
}

.comm-photo span {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
}

.comm-photo--tall img {
  min-height: 280px;
  object-fit: cover;
}

/* Reveal animation — keep layout visible on subpages */
.community [data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.community [data-reveal]:not(.revealed) {
  opacity: 0.92;
  transform: translateY(12px);
}

.community [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

.community-gallery-section:empty,
.community-gallery:empty {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .review-stats {
    grid-template-columns: 1fr;
  }

  .community__grid {
    grid-template-columns: 1fr;
  }

  .community-gallery {
    columns: 2;
  }
}

@media (max-width: 600px) {
  .upload-row {
    grid-template-columns: 1fr;
  }

  .community-gallery {
    columns: 1;
  }

  .reviews-grid-premium {
    grid-template-columns: 1fr;
  }

  .tcard {
    flex: 0 0 280px;
  }

  .google-row {
    flex-direction: column;
    align-items: stretch;
  }
}
