/* ===================================================
   NAMASTE ENTERPRISES - CUSTOM BRANDED REVIEW SYSTEM
   Trade (Dark Navy Editorial) & Solar (Clean Sustainable)
   =================================================== */

.reviews-section {
  position: relative;
  overflow: hidden;
}

/* Rating Summary Header Component */
.rating-summary-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(15, 34, 61, 0.85);
  border: 1px solid var(--color-border);
  padding: 12px 24px;
  border-radius: 40px;
  margin-top: 18px;
  backdrop-filter: blur(10px);
}

.rating-score-large {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-navy-primary);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.rating-score-large span {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}

.rating-stars-visual {
  color: #f59e0b;
  font-size: 18px;
  letter-spacing: 2px;
}

.rating-count-label {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
  border-left: 1px solid var(--color-border);
  padding-left: 16px;
}

/* Empty State Styling */
.reviews-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: rgba(19, 34, 56, 0.4);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  margin: 30px 0;
}

.reviews-empty-state .empty-icon {
  font-size: 40px;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.reviews-empty-state h3 {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.reviews-empty-state p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 24px auto;
}

/* ===================================================
   1. IMPORT & EXPORT: EDITORIAL TESTIMONIAL LAYOUT
   Dark Navy / Gold Borders / Elegant Quote Typography
   =================================================== */
.trade-reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.trade-review-card {
  background: var(--color-surface);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.trade-review-card::before {
  content: '“';
  position: absolute;
  top: 16px;
  right: 28px;
  font-family: 'Georgia', serif;
  font-size: 76px;
  color: rgba(212, 175, 55, 0.12);
  line-height: 1;
  pointer-events: none;
}

.trade-review-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.trade-review-stars {
  color: var(--color-gold-accent);
  font-size: 17px;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.trade-review-body {
  font-size: 15.5px;
  color: var(--text-main);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.trade-review-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.trade-avatar-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--color-gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
}

.trade-client-info h4 {
  font-size: 16px;
  color: var(--color-navy-primary);
  margin-bottom: 2px;
}

.trade-client-info .client-country {
  font-size: 13px;
  color: var(--text-muted);
}

.trade-client-info .client-tag {
  font-size: 11px;
  color: var(--color-gold-accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

/* ===================================================
   2. SOLAR SOLUTIONS: CLEAN / BRIGHT / SUSTAINABLE LAYOUT
   Emerald & Cyan Glow / Solar Accents
   =================================================== */
.solar-reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.solar-review-card {
  background: var(--color-surface);
  border: 1px solid rgba(246, 183, 22, 0.25);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.solar-review-card:hover {
  transform: translateY(-6px);
  border-color: rgba(246, 183, 22, 0.6);
  box-shadow: 0 0 25px rgba(246, 183, 22, 0.2), var(--shadow-lg);
}

.solar-review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.solar-review-stars {
  color: #f59e0b;
  font-size: 17px;
  letter-spacing: 3px;
}

.solar-pill-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(246, 183, 22, 0.15);
  color: #f5b027;
  border: 1px solid rgba(246, 183, 22, 0.3);
}

.solar-review-body {
  font-size: 15.5px;
  color: var(--text-main);
  line-height: 1.75;
  margin-bottom: 28px;
}

.solar-review-footer {
  border-top: 1px solid rgba(246, 183, 22, 0.15);
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.solar-avatar-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(246, 183, 22, 0.15);
  border: 1px solid rgba(246, 183, 22, 0.35);
  color: #f5b027;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
}

.solar-client-info h4 {
  font-size: 16px;
  color: var(--color-navy-primary);
  margin-bottom: 2px;
}

.solar-client-info .client-country {
  font-size: 13px;
  color: var(--text-muted);
}

.solar-client-info .client-tag {
  font-size: 11px;
  color: var(--color-gold-accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

/* ===================================================
   3. HOMEPAGE DUAL REVIEW PREVIEW SECTION
   =================================================== */
.home-reviews-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.home-review-column {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.home-column-header h3 {
  font-size: 20px;
}

.home-column-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.home-preview-card {
  background: var(--color-navy-deep);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}

.home-preview-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.home-preview-card .stars {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 8px;
}

.home-preview-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  font-style: italic;
}

.home-preview-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-navy-primary);
}

.home-preview-author span {
  font-weight: 400;
  color: var(--text-dim);
}

/* ===================================================
   STAR RATING SELECTOR (Interactive Form)
   =================================================== */
.star-rating-selector {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 8px;
  font-size: 28px;
  margin: 6px 0 12px 0;
}

.star-rating-selector input {
  display: none;
}

.star-rating-selector label {
  color: #475569;
  cursor: pointer;
  transition: var(--transition);
}

.star-rating-selector label:hover,
.star-rating-selector label:hover ~ label,
.star-rating-selector input:checked ~ label {
  color: #f59e0b;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.char-counter {
  font-size: 12px;
  color: var(--text-dim);
  text-align: right;
  margin-top: 4px;
}

.char-counter.valid {
  color: var(--color-gold-accent);
}

.char-counter.invalid {
  color: #ef4444;
}

/* Pagination / Load More Control */
.reviews-load-more {
  text-align: center;
  margin-top: 48px;
}

@media (max-width: 1024px) {
  .home-reviews-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .trade-reviews-container, .solar-reviews-container {
    grid-template-columns: 1fr;
  }
  .rating-summary-wrapper {
    flex-direction: column;
    align-items: flex-start;
    border-radius: var(--radius-md);
    gap: 8px;
  }
  .rating-count-label {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--color-border);
    padding-top: 8px;
    width: 100%;
  }
}
