/* Reputation & Reviews Presentation */

.reputation-overview {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .reputation-overview {
    grid-template-columns: 1fr;
  }
}

.rating-score-card {
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rating-big-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.rating-stars-large {
  color: #ffb400;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.rating-breakdown-card {
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  color: var(--ink);
}

.rating-bar-label {
  width: 45px;
  font-weight: 600;
}

.rating-bar-track {
  flex: 1;
  height: 8px;
  background: var(--paper);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.rating-bar-fill {
  height: 100%;
  background: #ffb400;
  border-radius: 4px;
}

.rating-bar-count {
  width: 40px;
  text-align: right;
  color: var(--mist);
  font-size: 0.82rem;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.platform-card {
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.platform-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.platform-icon-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--ink);
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.platform-badge-google {
  background: #e8f0fe;
  color: #1a73e8;
  border: 1px solid #c2e7ff;
}

.platform-badge-trustpilot {
  background: #e6f7ef;
  color: #00875a;
  border: 1px solid #b3e6cd;
}

.platform-badge-other {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

.review-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-unreviewed {
  background: #fff4e5;
  color: #b76e00;
  border: 1px solid #ffd599;
}

.status-approved {
  background: #e6f7ef;
  color: #00875a;
  border: 1px solid #b3e6cd;
}

.status-flagged {
  background: #fde8e8;
  color: var(--danger);
  border: 1px solid #f8b4b4;
}

.status-responded {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.sentiment-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
}

/* Reviews generated by a simulator adapter (no live API credentials).
   Deliberately high-contrast and distinct from status pills so fabricated
   sample data is never mistaken for a genuine customer testimonial. */
.simulated-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #1f2937;
  color: #ffffff;
  border: 1px dashed #6b7280;
}

.simulated-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: #1f2937;
  color: #ffffff;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.simulated-banner strong {
  color: #ffffff;
}

.sentiment-positive {
  background: #e6f7ef;
  color: #00875a;
}

.sentiment-neutral {
  background: var(--paper);
  color: var(--mist);
}

.sentiment-negative {
  background: #fde8e8;
  color: var(--danger);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card {
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: box-shadow 0.15s ease;
}

.review-card:hover {
  box-shadow: 0 4px 12px rgba(11, 18, 32, 0.05);
}

.review-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.reviewer-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
  border: 1px solid var(--line);
}

.reviewer-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.reviewer-info h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.reviewer-info .review-date {
  font-size: 0.8rem;
  color: var(--mist);
}

.review-card-stars {
  color: #ffb400;
  font-size: 1rem;
  letter-spacing: 1px;
}

.review-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin: 0;
}

.review-card-content {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #2d3748;
  margin: 0;
}

.review-audit-box {
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}

.review-response-box {
  background: #f0fdf4;
  border-left: 3px solid #00b67a;
  border-radius: 0 6px 6px 0;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
}

.review-response-header {
  font-weight: 700;
  color: #166534;
  margin-bottom: 0.25rem;
}

.review-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.audit-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.button-small {
  padding: 0.35rem 0.65rem;
  min-height: auto;
  font-size: 0.82rem;
}

.button-tag {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-tag.active {
  background: var(--mark);
  color: var(--ink);
  border-color: transparent;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.audit-modal-backdrop {
  background: rgba(11, 18, 32, 0.4);
  backdrop-filter: blur(2px);
}

.star-gold {
  color: #ffb400;
}

.star-empty {
  color: #d7e0ea;
}

/* Testimonial widget */
.testimonial-widget {
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
}

.testimonial-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.testimonial-single {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Modal Dialog */
.modal-dialog {
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: transparent;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(11, 18, 32, 0.2);
}

.modal-dialog::backdrop {
  background: rgba(11, 18, 32, 0.5);
  backdrop-filter: blur(2px);
}

.modal-card {
  background: var(--snow);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.button-close {
  background: transparent;
  border: 0;
  font-size: 1.25rem;
  color: var(--mist);
  cursor: pointer;
}

.button-close:hover {
  color: var(--ink);
}

