/* Reviews Section Styles */

#reviews {
  position: relative;
  overflow: hidden;
}

/* Ornament background */
#reviews::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/img/ornaments/01.svg');
  background-repeat: repeat;
  background-size: 280px 280px;
  background-position: 0 0;
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
}

#reviews .container {
  position: relative;
  z-index: 2;
}

/* Review Cards */
.review-card {
  background: var(--color-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  height: 100%;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Review Header */
.review-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.review-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--color-accent);
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-author-info {
  flex: 1;
}

.review-author {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-date {
  font-size: var(--font-size-sm);
  color: #666;
}

/* Star Rating */
.review-rating {
  display: flex;
  gap: 4px;
  margin-bottom: var(--spacing-sm);
}

.review-star {
  color: #FFD700;
  font-size: 1.2rem;
}

.review-star.empty {
  color: #ddd;
}

/* Review Text */
.review-text {
  font-size: var(--font-size-md);
  line-height: 1.6;
  color: var(--color-dark);
  flex: 1;
}

/* 2GIS Link Button */
.reviews-link-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--color-light);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-lg);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.reviews-link-btn:hover {
  background: var(--color-accent);
  color: var(--color-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 90, 43, 0.3);
}

.reviews-link-btn i {
  font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  #reviews::before {
    background-size: 200px 200px;
    opacity: 0.05;
  }

  .review-card {
    padding: var(--spacing-lg);
  }

  .review-avatar {
    width: 50px;
    height: 50px;
  }

  .review-author {
    font-size: var(--font-size-md);
  }

  .review-text {
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 480px) {
  #reviews::before {
    background-size: 160px 160px;
    opacity: 0.04;
  }

  .review-header {
    flex-direction: column;
    text-align: center;
  }

  .review-rating {
    justify-content: center;
  }
}
