/* Fix for the reviews page styles */

/* Hero section */
.reviews-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
}

/* Fix for section titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-color);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.section-description {
  color: var(--text-color);
  opacity: 0.8;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Reviews Stats */
.reviews-stats-section {
  padding: 4rem 0 2rem;
}

.reviews-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.stat-info h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.stat-info p {
  color: var(--text-color);
  opacity: 0.8;
  margin: 0;
}

/* Reviews Filter */
.reviews-filter {
  margin: 2rem 0 4rem;
}

.filter-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
}

.filter-group label {
  font-weight: 500;
  color: var(--text-color);
}

.filter-group select {
  padding: 0.75rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  color: var(--text-color);
  font-size: 1rem;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Review Chart */
.top-providers-section {
  padding: 4rem 0;
  background: linear-gradient(to bottom, var(--background-color), var(--card-bg));
}

.review-chart {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chart-header {
  display: grid;
  grid-template-columns: 2fr repeat(5, 1fr);
  background: rgba(0, 0, 0, 0.2);
}

.chart-row {
  display: grid;
  grid-template-columns: 2fr repeat(5, 1fr);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.chart-row:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.chart-row:last-child {
  border-bottom: none;
}

.chart-column {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.company-column {
  text-align: left;
}

.company-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.company-info img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.company-info span {
  font-weight: 600;
  color: var(--text-color);
}

.chart-rating {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.rating-stars {
  color: #ffc107;
  font-size: 1.1rem;
}

/* Customer Reviews */
.customer-reviews-section {
  padding: 4rem 0;
}

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

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.reviewer-details h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.review-date {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
}

.review-company-small {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.review-company-small img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.review-rating {
  text-align: center;
}

.review-rating .stars {
  color: #ffc107;
  font-size: 1rem;
  line-height: 1;
}

.review-rating span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
}

.review-content {
  margin-bottom: 1.5rem;
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upvote-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.upvote-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.verified-purchase {
  font-size: 0.9rem;
  color: var(--positive-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.load-more {
  text-align: center;
}

/* Expert Reviews */
.expert-reviews-section {
  padding: 4rem 0;
  background: linear-gradient(to bottom, var(--card-bg), var(--background-color));
}

.expert-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.expert-review-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.expert-profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.expert-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.expert-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.expert-title {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
}

.expert-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.expert-review-header h3 {
  font-size: 1.3rem;
  color: var(--text-color);
  margin-bottom: 0;
}

.review-recommendation {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
}

.expert-review-content {
  margin-bottom: 2rem;
  color: var(--text-color);
  opacity: 0.9;
}

.read-full-review {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.read-full-review:hover {
  color: var(--hover-color);
}

.read-full-review i {
  transition: transform 0.2s ease;
}

.read-full-review:hover i {
  transform: translateX(3px);
}

/* Review Guidelines */
.review-guidelines {
  padding: 5rem 0;
}

.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.guideline-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.guideline-icon {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guideline-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.guideline-text h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.guideline-text p {
  margin-bottom: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .chart-header, .chart-row {
    grid-template-columns: 2fr repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .reviews-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filter-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .filter-group {
    min-width: 100%;
  }
  
  .review-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .review-company-small {
    align-self: center;
    flex-direction: row;
    gap: 1rem;
  }
  
  .chart-header, .chart-row {
    grid-template-columns: 1fr;
  }
  
  .chart-column {
    padding: 0.75rem;
  }
  
  .chart-column:not(.company-column) {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    text-align: left;
  }
  
  .chart-column:not(.company-column) .chart-rating {
    margin-bottom: 0;
    margin-right: 1rem;
  }
  
  .company-column {
    background: rgba(0, 0, 0, 0.1);
  }
  
  .guideline-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .reviews-stats {
    grid-template-columns: 1fr;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .review-card-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .review-company-small {
    align-self: flex-start;
  }
} 