/* Reviews Wall & Cards — Cyberpunk Glassmorphism */

/* Screen reader only — hide visually but keep for a11y */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.rw-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: start;
}
@media (max-width: 720px) {
  .rw-hero { grid-template-columns: 1fr; }
}

.rw-rating-card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  gap: 10px;
}
.rw-score {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
}
.rw-score-value { font-size: 40px; font-weight: 800; color: var(--accent-2); line-height: 1; }
.rw-score-max { font-size: 16px; color: var(--muted); }
.rw-score-stars { text-align: center; font-size: 18px; }
.rw-score-stars .star { color: var(--accent-2); }
.rw-score-meta { text-align: center; font-size: 13px; color: var(--muted); }

.rw-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.rw-stat {
  background: var(--panel-strong);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
}
.rw-stat-title { font-size: 11px; color: var(--muted); }
.rw-stat-value { font-size: 14px; font-weight: 800; }
.rw-stat-value.positive { color: #2f7d4f; }

.rw-dist { display: grid; gap: 6px; margin-top: 4px; }
.rw-dist-row {
  display: grid;
  grid-template-columns: 28px 1fr 32px;
  align-items: center;
  gap: 8px;
}
.rw-dist-label { font-size: 11px; color: var(--muted); font-weight: 700; }
.rw-dist-track {
  height: 6px;
  background: var(--panel-strong);
  border-radius: 3px;
  overflow: hidden;
}
.rw-dist-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 3px;
  transition: width 0.6s ease;
}
.rw-dist-count { font-size: 11px; color: var(--muted); text-align: right; }

.rw-trust {
  display: grid;
  gap: 8px;
}
.rw-trust-item {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rw-trust-value { font-size: 20px; }
.rw-trust-label { font-size: 13px; font-weight: 600; }

.rw-cta {
  background: linear-gradient(135deg, rgba(125,91,255,0.08), rgba(182,92,255,0.04));
  border: 1px solid rgba(125,91,255,0.2);
  border-radius: 16px;
  padding: 14px;
  margin-top: 10px;
}
.rw-cta-title { font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.rw-cta-orders { display: grid; gap: 8px; }
.rw-cta-order {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--panel-strong);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
}
.rw-cta-order-info { font-size: 13px; font-weight: 600; }
.rw-cta-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.rw-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rw-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.rw-chip.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
}

.rw-section-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 10px 0;
}

.rw-rotd {
  position: relative;
  background: linear-gradient(135deg, rgba(255,198,127,0.06), rgba(125,91,255,0.06));
  border: 1px solid rgba(255,198,127,0.2);
  border-radius: 20px;
  padding: 18px;
}
.rw-rotd-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: linear-gradient(135deg, #ffc67f, #ff9f43);
  color: #1a1428;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}

.rw-featured-wrap { overflow: hidden; }
.rw-featured-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.rw-featured-scroll::-webkit-scrollbar { height: 4px; }
.rw-featured-scroll::-webkit-scrollbar-track { background: transparent; }
.rw-featured-scroll::-webkit-scrollbar-thumb { background: rgba(125,91,255,0.3); border-radius: 2px; }
.rw-featured-card {
  flex: 0 0 320px;
  min-width: 0;
}

.rw-grid { display: grid; gap: 10px; }

.rw-card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rw-card.vip-glow {
  box-shadow: 0 0 20px rgba(125,91,255,0.08);
}
.rw-card.store-glow {
  border-color: rgba(46, 204, 113, 0.2);
}

/* ===== REVIEW CARD INTERNALS ===== */
.rw-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.rw-user { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.rw-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; font-size: 14px;
  display: grid; place-items: center; flex-shrink: 0;
}
.rw-avatar.vip {
  box-shadow: 0 0 12px rgba(182, 92, 255, 0.4);
}
.rw-user-info { min-width: 0; overflow: hidden; }
.rw-user-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rw-level { font-size: 11px; color: var(--accent-2); font-weight: 700; }
.rw-badge {
  font-size: 10px; font-weight: 700;
  background: rgba(255,198,127,0.15);
  color: #ffc67f;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.rw-user-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.rw-rating-col { text-align: center; flex-shrink: 0; }
.rw-stars { font-size: 14px; color: var(--accent-2); white-space: nowrap; }
.rw-rating-text { font-size: 12px; color: var(--muted); }

.rw-verified {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: #2f7d4f;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.25);
  border-radius: 999px; padding: 4px 10px; width: fit-content;
  margin-top: 8px;
}
.rw-verified.store { color: #b65cff; background: rgba(182,92,255,0.1); border-color: rgba(182,92,255,0.25); }
.rw-verified.product { color: #3b82f6; background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.25); }

.rw-product {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel-strong);
  border-radius: 12px; padding: 10px 12px;
  margin-top: 10px;
}
.rw-product-img {
  width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
}
.rw-product-img.placeholder {
  background: var(--panel); display: grid; place-items: center; font-size: 18px;
}
.rw-product-name { font-weight: 700; font-size: 13px; }
.rw-product-date { font-size: 11px; color: var(--muted); }

.rw-text { margin: 10px 0 0; font-size: 14px; line-height: 1.5; overflow-wrap: break-word; word-break: break-word; }
.rw-photo { border-radius: 14px; overflow: hidden; margin-top: 10px; }
.rw-photo img { width: 100%; display: block; }

.rw-actions {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-top: 12px;
}
.rw-action-btn {
  font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: 12px;
  background: rgba(125, 91, 255, 0.08);
  border: 1px solid rgba(125, 91, 255, 0.25);
  color: #c4b5fd;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.rw-action-btn:hover {
  background: rgba(125, 91, 255, 0.18);
  border-color: rgba(125, 91, 255, 0.5);
  transform: translateY(-1px);
}
.rw-action-btn.active {
  background: linear-gradient(135deg, #7d5bff, #b65cff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(125, 91, 255, 0.35);
}
.rw-action-btn.static {
  cursor: default;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.rw-action-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.rw-like-btn {
  font-size: 14px; font-weight: 700;
  padding: 8px 16px; border-radius: 12px;
  background: rgba(125, 91, 255, 0.08);
  border: 1px solid rgba(125, 91, 255, 0.25);
  color: #c4b5fd;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rw-like-btn:hover {
  background: rgba(125, 91, 255, 0.18);
  border-color: rgba(125, 91, 255, 0.5);
  transform: translateY(-1px);
}
.rw-like-btn.active {
  background: linear-gradient(135deg, #7d5bff, #b65cff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(125, 91, 255, 0.35);
}
.rw-like-btn.active .like-heart {
  filter: none;
}
.rw-like-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.like-heart {
  transition: transform 0.25s ease;
  display: inline-block;
}
.like-heart.pop {
  transform: scale(1.4);
}
.like-count {
  display: inline-block;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.like-count.pop {
  transform: scale(1.4);
  opacity: 0.7;
}

.rw-empty { text-align: center; padding: 40px 20px; }
.rw-empty-icon { font-size: 40px; margin-bottom: 10px; }
.rw-empty-title { font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.rw-empty-text { font-size: 13px; color: var(--muted); }

/* Animations */
.rw-animate {
  animation: fadeInUp 0.5s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fix button in section header */
.reviews-wall .section-header .btn {
  width: auto;
  display: inline-flex;
  white-space: nowrap;
  flex-shrink: 0;
}
