/* Phase 13 — Reviews layer */

/* ── Admin badges ─────────────────────────────────────── */
.rv-badge {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600;
  padding: 2px 7px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.rv-badge--approved { background: #1a3a1a; color: #4caf50; }
.rv-badge--pending  { background: #2a2a1a; color: #ffc107; }
.rv-badge--hidden   { background: #2a1a1a; color: #888; }
.rv-badge--featured { background: #1a2a3a; color: #64b5f6; }
.rv-badge--used     { background: #222; color: #aaa; }

/* ── Admin list ───────────────────────────────────────── */
.rv-stars { font-size: 1rem; color: var(--accent, #a78b4a); white-space: nowrap; }
.rv-company { color: var(--text-muted, #888); }
.rv-row--used td   { opacity: 0.6; }
.rv-row--inactive td { opacity: 0.5; }

/* ── Admin detail ─────────────────────────────────────── */
.rv-detail-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--space-4, 1.5rem);
  align-items: start;
}
@media (max-width: 720px) { .rv-detail-grid { grid-template-columns: 1fr; } }

.rv-stars-lg { font-size: 1.5rem; color: var(--accent, #a78b4a); margin-bottom: 0.75rem; }
.rv-quote {
  font-size: 1rem; line-height: 1.7;
  border-left: 3px solid var(--accent, #a78b4a);
  padding-left: 1rem; margin: 0 0 1rem;
  color: var(--text-primary, #e8e4dc);
}
.rv-attribution { font-size: 0.875rem; color: var(--text-muted, #888); }
.rv-admin-notes {
  margin-top: 1rem; font-size: 0.85rem;
  background: var(--surface-sunken, #111);
  padding: 0.75rem 1rem; border-radius: 4px;
  color: var(--text-muted, #888);
}
.rv-action-btn { display: block; width: 100%; margin-bottom: 0.5rem; text-align: center; }

.rv-meta-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; font-size: 0.8rem; }
.rv-meta-list dt { color: var(--text-muted, #888); }
.rv-meta-list dd { margin: 0; }

/* ── Sources inline edit ──────────────────────────────── */
.rv-inline-form { display: flex; gap: 0.5rem; align-items: center; }
.rv-label-input { width: 160px; flex-shrink: 0; }

/* ── Request token display ────────────────────────────── */
.rv-token-url {
  font-size: 0.75rem; word-break: break-all;
  background: var(--surface-sunken, #111);
  padding: 2px 6px; border-radius: 3px;
  display: block; max-width: 420px;
}

/* ── Public form ──────────────────────────────────────── */
.rv-public-shell { min-height: 100vh; display: flex; flex-direction: column; }
.rv-public-header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border, #2a2a2a);
}
.rv-public-brand {
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  color: var(--text-primary, #e8e4dc);
}
.rv-public-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.rv-form-wrap { width: 100%; max-width: 600px; }

.rv-form-card {
  background: var(--surface-raised, #1a1a1a);
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 8px; padding: 2.5rem;
}
.rv-form-title { font-size: 1.5rem; margin: 0.5rem 0 0.75rem; }
.rv-form-intro { font-size: 0.9rem; color: var(--text-muted, #888); margin-bottom: 2rem; }
.rv-form-error {
  background: #2a1a1a; color: #f44; border: 1px solid #5a2a2a;
  border-radius: 4px; padding: 0.75rem 1rem; margin-bottom: 1.5rem; font-size: 0.875rem;
}

.rv-label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text-muted, #aaa); }
.rv-required { color: var(--accent, #a78b4a); }
.rv-optional { font-weight: 400; color: var(--text-muted, #666); }

.rv-form-group { margin-bottom: 1.25rem; }
.rv-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .rv-form-row { grid-template-columns: 1fr; } }

.rv-input, .rv-textarea {
  width: 100%; background: var(--surface-sunken, #111);
  border: 1px solid var(--border, #2a2a2a); border-radius: 4px;
  color: var(--text-primary, #e8e4dc); font-size: 0.9375rem;
  padding: 0.625rem 0.875rem;
}
.rv-input:focus, .rv-textarea:focus { outline: 2px solid var(--accent, #a78b4a); outline-offset: 1px; }
.rv-textarea { resize: vertical; min-height: 140px; }

.rv-rating-group { margin-bottom: 1.5rem; }

.rv-submit { margin-top: 0.5rem; width: 100%; justify-content: center; }
.rv-privacy-note { font-size: 0.75rem; color: var(--text-muted, #666); margin-top: 0.75rem; text-align: center; }

/* Thank-you */
.rv-thankyou-card { text-align: center; }
.rv-thankyou-icon {
  font-size: 2.5rem; width: 60px; height: 60px; border-radius: 50%;
  background: #1a3a1a; color: #4caf50;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; font-weight: 700;
}

/* ── Homepage reviews section ─────────────────────────── */
.rv-section { padding: var(--space-8, 4rem) 0; }
.rv-section-header { text-align: center; margin-bottom: var(--space-6, 2.5rem); }
.rv-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4, 1.5rem); }
.rv-card {
  background: var(--surface-raised, #1a1a1a);
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 8px; padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.rv-card-stars { color: var(--accent, #a78b4a); font-size: 1rem; }
.rv-card-text {
  font-size: 0.9375rem; line-height: 1.65;
  color: var(--text-primary, #e8e4dc); flex: 1;
}
.rv-card-text::before { content: '"'; }
.rv-card-text::after  { content: '"'; }
.rv-card-byline { font-size: 0.8125rem; color: var(--text-muted, #888); margin-top: auto; }
.rv-card-byline strong { color: var(--text-secondary, #ccc); }
