
/* Review Card */
.review-card {
  background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.review-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.3);
}

/* Review Header */
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.review-user {
  display: flex;
  align-items: center;
}

.user-avatar {
  margin-left: 1rem;
}

.user-avatar i {
  color: var(--secondary-pink);
  opacity: 0.8;
}

.user-info h6 {
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: var(--secondary-pink);
}

.user-info small {
  color: var(--gray-500);
  font-size: 0.85rem;
}

/* Rating Stars */
.rating {
  display: flex;
  align-items: center;
}

.rating i {
  color: var(--review-star-color);
  margin-left: 0.15rem;
  font-size: 1rem;
}

/* Review Content */
.review-content {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 0;
}

/* No Reviews Message */
.no-reviews {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-500);
}

.no-reviews i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--gray-500);
  opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .review-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .rating {
    margin-top: 0.5rem;
  }
}

/* Reviews Section Styling - Enhanced */
.reviews-section {
  margin: 1.5rem 0;
  padding: 1.5rem 0;
  background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
}

.reviews-section h2 {
  font-size: 1.75rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.75rem;
  font-family: 'Playfair Display', serif;
}

.reviews-section h2:after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
}

.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.reviews-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.reviews-header h2 {
  font-size: 2.2rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  font-family: 'Playfair Display', serif;
}

.reviews-header h2:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--primary-blue);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.review-card {
  background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
  border-radius: 15px;
  padding: 1.75rem;
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(212, 175, 55, 0.1);
  position: relative;
  overflow: hidden;
}

.review-card:before {
  content: '"\201D';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 5rem;
  color: rgba(52, 152, 219, 0.1);
  font-family: serif;
  line-height: 1;
  z-index: 0;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.3);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.review-user {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  color: white;
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}

.review-card:hover .user-avatar {
  transform: scale(1.05);
}

.user-info h5 {
  margin: 0 0 0.25rem 0;
  font-weight: 700;
  color: var(--primary-blue);
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
}

.user-info .review-date {
  color: #7f8c8d;
  font-size: 0.85rem;
  font-weight: 400;
}

.rating {
  color: #ffc107;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  direction: ltr;
  display: inline-block;
  unicode-bidi: bidi-override;
}

.rating i {
  margin-left: 3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.review-text {
  color: #555;
  line-height: 1.8;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  padding: 1rem 0;
  border-top: 1px dashed #eee;
}

.review-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.like-btn, .reply-btn {
  background: none;
  border: none;
  color: #7f8c8d;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
  transition: color 0.2s;
}

.like-btn:hover, .reply-btn:hover {
  color: #3498db;
}

.like-btn i, .reply-btn i {
  margin-left: 5px;
}

.no-reviews {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
  border-radius: 15px;
  color: #7f8c8d;
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.1);
  grid-column: 1 / -1;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.no-reviews i {
  font-size: 2.5rem;
  color: #bdc3c7;
  margin-bottom: 1rem;
  display: block;
}

.no-reviews h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .reviews-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .reviews-header h2 {
    font-size: 1.8rem;
  }
  
  .review-card {
    padding: 1.5rem;
  }
  
  .user-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .review-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .review-date {
    margin-top: 0.5rem;
    margin-right: auto;
  }
  
  .review-actions {
    justify-content: space-between;
  }
  
  .like-btn, .reply-btn {
    margin-left: 0;
  }
}

.reviews-container {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.reviews-card {
  border: var(--review-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background-color: var(--review-card-bg);
}

.reviews-card .card-header {
  background: var(--primary-blue);
  color: white;
  border-bottom: none;
  padding: 1.25rem 1.5rem;
}

.reviews-card .section-title {
  font-weight: 700;
  margin: 0;
  font-size: 1.5rem;
}


.reviews-summary {
  border-bottom: 1px solid var(--review-divider-color);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.overall-rating {
  text-align: center;
  min-width: 150px;
  padding: 1.5rem;
  background-color: rgba(212, 175, 55, 0.03);
  border-radius: var(--radius-lg);
  margin-left: 2rem;
}

.overall-rating .display-4 {
  color: var(--primary-blue);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stars {
  margin: 0.5rem 0;
}

.stars .fas.fa-star,
.stars .far.fa-star,
.stars .fas.fa-star-half-alt {
  color: var(--review-star-color);
  font-size: 1.2rem;
  margin: 0 1px;
}


.rating-bars {
  max-width: 500px;
  flex-grow: 1;
}

.rating-bar {
  margin-bottom: 0.75rem;
  align-items: center;
}

.rating-label {
  min-width: 40px;
  font-weight: 600;
  color: var(--secondary-pink);
}

.progress {
  height: 8px;
  border-radius: 4px;
  background-color: rgba(212, 175, 55, 0.1);
  overflow: hidden;
}

.progress-bar.bg-success {
  background: linear-gradient(to right, #36b37e, #00875a) !important;
}

.progress-bar.bg-warning {
  background: linear-gradient(to right, #ffab00, #ff8b00) !important;
}

.progress-bar.bg-danger {
  background: linear-gradient(to right, #ff5630, #de350b) !important;
}

.rating-count {
  min-width: 30px;
  text-align: right;
  font-weight: 600;
  color: var(--gray-600);
}


.review-item {
  transition: var(--transition-normal);
  border: var(--review-card-border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.review-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--primary-blue);
}

.review-item .card-body {
  padding: 1.5rem;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-left: 1rem;
}

.review-author h5 {
  font-weight: 700;
  color: var(--secondary-pink);
  margin-bottom: 0.25rem;
}

.review-date {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.review-title {
  color: var(--primary-blue);
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
}

.review-text {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.review-images {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.review-images img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--review-divider-color);
  transition: transform 0.3s ease;
}

.review-images img:hover {
  transform: scale(1.05);
}


.more-reviews-btn {
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 149, 230, 0.3);
}

.more-reviews-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 149, 230, 0.4);
  background: linear-gradient(135deg, #00a5ff 0%, #1e5a8d 100%);
  color: white;
}


@media (max-width: 768px) {
  .reviews-summary .d-flex {
    flex-direction: column;
  }
  
  .overall-rating {
    margin-bottom: 2rem;
    margin-left: 0;
    width: 100%;
  }
  
  .rating-bars {
    width: 100%;
  }
  
  .review-item .d-flex.justify-content-between {
    flex-direction: column;
    align-items: flex-start !important;
  }
  
  .review-item .stars {
    margin-top: 1rem;
  }
}
