/* Reviews Section Styles */
.reviews-section {
  color: #2c3e50;
  margin-top: 102px;
  padding: 48px 0px;
  text-align: center;
  border-radius: 0;
  border-top: 1px solid rgba(var(--brand-rgb), 0.2);
}

.reviews-title {
  margin-bottom: 12px;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--brand);
}

.reviews-description {
  margin-bottom: 32px;
  font-size: 1rem;
  opacity: 1;
  color: var(--muted);
}

/* Reviews carousel animations */
.reviews-carousel-container {
  position: relative;
  min-height: 280px !important;
  max-width: 500px;
  margin: 0 auto;
  overflow: visible;
  transition: min-height 0.5s ease;
}

/* Loading state styles */
.reviews-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
}

.loading-content {
  text-align: center;
}

.loading-content .spinner-border {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand);
}

.loading-text {
  margin: 0;
  opacity: 1;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Error state styles */
.reviews-error {
  display: none;
  padding: 40px 0;
}

.error-content {
  text-align: center;
}

.error-emoji {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.error-text {
  margin: 0;
  opacity: 1;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Animated review card */
.animated-review-card {
  will-change: transform, opacity;
  position: relative !important;
  display: none;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.review-card-content {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--brand-rgb), 0.15);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(0px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 240px;
}

/* Store info styling */
.store-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.store-avatar {
  width: 70px;
  height: 70px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.store-name-container {
  text-align: left;
}

.store-name {
  font-weight: 600;
  color: var(--brand);
  font-size: 1.2rem;
}

/* Customer info styling */
.customer-info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.customer-avatar {
  width: 35px;
  height: 35px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.customer-details {
  text-align: left;
}

.customer-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

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

.review-stars {
  margin-bottom: 14px;
  font-size: 1.1rem;
  text-align: center;
  margin-left: auto;
}

/* Review content styling */
.review-content {
  height: 85px;
  overflow: hidden;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
  color: #2c3e50;
  font-style: italic;
  height: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-overflow: ellipsis;
}

/* Indicators styling */
.review-indicators {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.review-indicators > div {
  transition: all 0.3s ease;
}

.review-indicators > div:hover {
  transform: scale(1.2);
  background: var(--brand) !important;
}

/* Smooth transitions */
.review-text, 
.customer-name, 
.review-date {
  transition: all 0.3s ease;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .reviews-section {
    margin-top: 80px;
    padding: 36px 0;
  }
  
  .reviews-title {
    font-size: 1.9rem;
    margin-bottom: 10px;
  }
  
  .reviews-description {
    font-size: 0.95rem;
    margin-bottom: 28px;
    padding: 0 15px;
  }
  
  .reviews-carousel-container {
    margin: 0 10px;
    max-width: 450px;
    min-height: 260px !important;
  }
  
  .review-card-content {
    padding: 24px 20px;
    min-height: 220px;
  }
  
  .store-avatar {
    width: 60px;
    height: 60px;
    font-size: 0.9rem;
  }
  
  .store-name {
    font-size: 1.1rem;
  }
  
  .customer-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  
  .review-content {
    height: 80px;
  }
  
  .review-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .reviews-section {
    margin-top: 60px;
    padding: 28px 0;
  }
  
  .reviews-title {
    font-size: 1.6rem;
    padding: 0 15px;
  }
  
  .reviews-description {
    font-size: 0.9rem;
    padding: 0 20px;
  }
  
  .reviews-carousel-container {
    margin: 0 5px;
    max-width: 100%;
    min-height: 240px !important;
  }
  
  .review-card-content {
    padding: 20px 16px;
    min-height: 200px;
  }
  
  .store-info {
    gap: 10px;
    margin-bottom: 14px;
  }
  
  .store-avatar {
    width: 50px;
    height: 50px;
    font-size: 0.8rem;
  }
  
  .store-name {
    font-size: 1rem;
  }
  
  .customer-info {
    gap: 8px;
    margin-bottom: 14px;
  }
  
  .customer-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .customer-name {
    font-size: 0.9rem;
  }
  
  .review-date {
    font-size: 0.75rem;
  }
  
  .review-stars {
    font-size: 1rem;
  }
  
  .review-content {
    height: 75px;
  }
  
  .review-text {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .loading-text,
  .error-text {
    font-size: 0.85rem;
    padding: 0 15px;
  }
}

@media (max-width: 360px) {
  .reviews-title {
    font-size: 1.4rem;
  }
  
  .reviews-description {
    font-size: 0.85rem;
  }
  
  .review-card-content {
    padding: 16px 12px;
    min-height: 180px;
  }
  
  .store-avatar {
    width: 45px;
    height: 45px;
  }
  
  .customer-avatar {
    width: 26px;
    height: 26px;
  }
  
  .review-content {
    height: 70px;
  }
  
  .review-text {
    font-size: 0.8rem;
  }
}

/* Subtle parallax effect */
@media (prefers-reduced-motion: no-preference) {
  .animated-review-card {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}