/* ============================================================
   Blaze Reviews v2.4 — Frontend Styles
   ============================================================ */

.brd-wrap {
  font-family: inherit;
  max-width: 100%;
}

/* ── Summary ──────────────────────────────────────────────────── */
.brd-summary {
  display: flex;
  gap: 28px;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #EEE8DE;
}
.brd-summary-left {
  text-align: center;
  flex-shrink: 0;
  min-width: 80px;
}
.brd-big-rating {
  font-size: 52px;
  font-weight: 700;
  color: #1E1A14;
  line-height: 1;
  margin-bottom: 6px;
}
.brd-total-count {
  font-size: 12px;
  color: #9E9589;
  margin-top: 5px;
  white-space: nowrap;
}
.brd-summary-bars { flex: 1; }
.brd-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.brd-bar-label {
  font-size: 12px;
  color: #5C5549;
  width: 32px;
  flex-shrink: 0;
}
.brd-bar-track {
  flex: 1;
  height: 8px;
  background: #EEE8DE;
  border-radius: 4px;
  overflow: hidden;
}
.brd-bar-fill {
  height: 100%;
  background: #C49A3C;
  border-radius: 4px;
  transition: width .6s ease;
}
.brd-bar-count {
  font-size: 12px;
  color: #9E9589;
  width: 24px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Stars ────────────────────────────────────────────────────── */
.brd-stars { display: inline-flex; gap: 2px; }
.brd-stars .brd-star { font-size: 15px; line-height: 1; }
.brd-stars .brd-star.filled { color: #C49A3C; }
.brd-stars .brd-star.empty  { color: #DDD5C5; }
.brd-stars-input .brd-star {
  font-size: 32px;
  color: #DDD5C5;
  cursor: pointer;
  transition: color .15s;
}
.brd-stars-input .brd-star:hover,
.brd-stars-input .brd-star.selected { color: #C49A3C; }

/* ── Toolbar ──────────────────────────────────────────────────── */
.brd-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.brd-sort-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.brd-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1.5px solid #DDD5C5;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #5C5549;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  white-space: nowrap;
}
.brd-sort-btn:hover {
  border-color: #C49A3C;
  color: #7A5A10;
}
.brd-sort-btn.active {
  background: #1E1A14;
  border-color: #1E1A14;
  color: #fff;
}
.brd-filter-badge {
  background: rgba(255,255,255,.25);
  border-radius: 10px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
}
.brd-sort-btn:not(.active) .brd-filter-badge {
  background: #EEE8DE;
  color: #5C5549;
}

/* Write a review button */
.brd-write-btn {
  background: #B5451B;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.brd-write-btn:hover { background: #8B3A1E; }

/* ── Customer photo grid ──────────────────────────────────────── */
.brd-photo-grid-section { margin-bottom: 20px; }
.brd-photo-grid-label {
  font-size: 12px;
  font-weight: 600;
  color: #9E9589;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.brd-photo-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}
.brd-grid-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #EEE8DE;
  display: block;
  transition: opacity .2s;
}
.brd-grid-thumb:hover img { opacity: .85; }

/* ── List wrap + loading state ────────────────────────────────── */
.brd-list-wrap { position: relative; }
.brd-list-wrap.brd-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.7);
  z-index: 10;
  border-radius: 12px;
}
.brd-list-wrap.brd-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 3px solid #EEE8DE;
  border-top-color: #C49A3C;
  border-radius: 50%;
  z-index: 11;
  animation: brd-spin .7s linear infinite;
}
@keyframes brd-spin { to { transform: rotate(360deg); } }

/* ── Review list grid ─────────────────────────────────────────── */
.brd-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  min-height: 60px;
}
.brd-no-reviews {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: #9E9589;
  font-size: 14px;
}

/* ── Review card ──────────────────────────────────────────────── */
.brd-review-card {
  background: #fff;
  border: 1px solid #EEE8DE;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.brd-review-card:hover {
  box-shadow: 0 4px 16px rgba(30,26,20,0.08);
  transform: translateY(-1px);
}

/* Photo at top of card */
.brd-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #F5F0E8;
}
.brd-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brd-photo-count {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(30,26,20,0.7);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
}

/* Card body */
.brd-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.brd-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.brd-date {
  font-size: 11px;
  color: #9E9589;
  white-space: nowrap;
}
.brd-review-title {
  font-size: 14px;
  font-weight: 600;
  color: #1E1A14;
  line-height: 1.35;
}
.brd-review-body {
  font-size: 13px;
  color: #5C5549;
  line-height: 1.65;
  flex: 1;
}
.brd-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #F5F0E8;
}
.brd-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.brd-reviewer-name {
  font-size: 13px;
  font-weight: 600;
  color: #1E1A14;
}
.brd-reviewer-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.brd-verified {
  font-size: 10px;
  font-weight: 600;
  color: #1A7A5A;
  background: #E1F5EE;
  border: 1px solid #86EFAC;
  border-radius: 20px;
  padding: 1px 7px;
}
.brd-location { font-size: 11px; color: #9E9589; }

/* ── Pagination ───────────────────────────────────────────────── */
.brd-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 4px 0 20px;
  flex-wrap: wrap;
}
.brd-page-btn {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #DDD5C5;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  color: #5C5549;
  font-family: inherit;
  transition: all .2s;
  padding: 0 8px;
}
.brd-page-btn:hover:not(.active):not(:disabled) {
  border-color: #C49A3C;
  color: #7A5A10;
}
.brd-page-btn.active {
  background: #1E1A14;
  border-color: #1E1A14;
  color: #fff;
  cursor: default;
}
.brd-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.brd-page-ellipsis {
  font-size: 14px;
  color: #9E9589;
  padding: 0 4px;
  line-height: 36px;
}
.brd-page-info {
  font-size: 12px;
  color: #9E9589;
  margin-left: 8px;
  white-space: nowrap;
}

/* ── Review form ──────────────────────────────────────────────── */
.brd-form-wrap {
  background: #FAF7F2;
  border: 1px solid #DDD5C5;
  border-radius: 14px;
  padding: 24px;
  margin-top: 4px;
}
.brd-form-title {
  font-size: 18px;
  font-weight: 600;
  color: #1E1A14;
  margin-bottom: 4px;
}
.brd-form-note { font-size: 13px; color: #9E9589; margin-bottom: 18px; }
.brd-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.brd-form-field { margin-bottom: 14px; }
.brd-form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #5C5549;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.brd-form-field input[type="text"],
.brd-form-field input[type="email"],
.brd-form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #DDD5C5;
  border-radius: 8px;
  font-size: 15px;
  color: #1E1A14;
  background: #fff;
  font-family: inherit;
  transition: border-color .2s;
  box-sizing: border-box;
}
.brd-form-field input:focus,
.brd-form-field textarea:focus {
  outline: none;
  border-color: #C49A3C;
  box-shadow: 0 0 0 3px rgba(196,154,60,.1);
}
.brd-form-field textarea { resize: vertical; }
.brd-form-field input[type="file"] { font-size: 13px; color: #5C5549; }
.brd-form-msg {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
}
.brd-form-msg.success { background: #E1F5EE; color: #166534; border: 1px solid #86EFAC; }
.brd-form-msg.error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.brd-form-actions { display: flex; gap: 10px; align-items: center; }
.brd-submit-btn {
  background: #B5451B;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.brd-submit-btn:hover  { background: #8B3A1E; }
.brd-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.brd-cancel-btn {
  background: transparent;
  color: #5C5549;
  border: 1px solid #DDD5C5;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .2s;
}
.brd-cancel-btn:hover { border-color: #9E9589; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .brd-list { grid-template-columns: 1fr !important; }
  .brd-photo-grid { grid-template-columns: repeat(4, 1fr); }
  .brd-summary { gap: 16px; }
  .brd-big-rating { font-size: 40px; }
  .brd-form-wrap { padding: 18px 16px; }
  .brd-form-row  { grid-template-columns: 1fr; }
  .brd-card-body { padding: 12px; }
  .brd-toolbar   { flex-direction: column; align-items: flex-start; }
  .brd-write-btn { width: 100%; text-align: center; }
  .brd-page-info { display: none; }
}
