/*-----------------------------------*\
  #GOOGLE REVIEWS - SIMPLE AUTO-SLIDER
\*-----------------------------------*/

/* Reset any conflicting styles */
.google-reviews * {
  box-sizing: border-box;
}

.google-reviews {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.google-reviews-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

.google-reviews-slider {
  display: flex;
  transition: transform 0.6s ease-in-out;
  min-height: 300px;
  padding: 20px 0;
}

/* Desktop: Show 3 cards, Mobile: Show 1 card */
.google-review-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-height: 260px;
  flex-shrink: 0;
}

/* Desktop: 3 cards layout */
@media (min-width: 769px) {
  .google-reviews-container {
    max-width: 1400px;
    padding: 0 40px;
    overflow: hidden;
  }

  .google-reviews-slider {
    gap: 24px;
    width: 200%; /* Double width to accommodate all cards */
  }

  .google-review-card {
    width: calc((50% - 12px) / 3); /* 3 cards visible in 50% of slider width */
    min-width: 300px;
    max-width: 380px;
    flex-shrink: 0;
  }
}

/* Mobile: 1 card layout with spacing */
@media (max-width: 768px) {
  .google-reviews-container {
    padding: 0 15px;
    overflow: hidden;
    width: 100%;
  }

  .google-reviews-slider {
    gap: 20px;
    width: auto; /* Let it size naturally */
    margin-left: 0;
  }

  .google-review-card {
    width: calc(100vw - 50px);
    max-width: calc(100vw - 50px);
    min-width: calc(100vw - 50px);
    padding: 20px;
    box-sizing: border-box;
    flex-shrink: 0;
    margin: 0;
  }

  .google-review-card .card-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }
}

.google-review-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* Cloned cards for infinite loop */
.google-review-card.cloned-card {
  /* Ensure cloned cards look identical to originals */
}

.review-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.reviewer-name-line {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285F4, #34A853);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.reviewer-initials {
  text-transform: uppercase;
}

.reviewer-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
  flex: 1;
}

.reviewer-details h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #202124;
  line-height: 1.2;
}

.review-meta {
  margin: 0;
  font-size: 14px;
  color: #5f6368;
  line-height: 1.2;
}

.review-date {
  margin: 2px 0 0 0;
  font-size: 14px;
  color: #5f6368;
}

.google-icon {
  flex-shrink: 0;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.stars {
  display: flex;
  gap: 2px;
  align-items: center;
}

.star {
  color: #fbbc04;
  font-size: 16px;
  line-height: 1;
  font-family: Arial, sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.star.filled {
  color: #fbbc04;
}

.star.half {
  color: #fbbc04;
  position: relative;
}

.star.half::after {
  content: '☆';
  position: absolute;
  left: 50%;
  top: 0;
  color: #ddd;
  z-index: -1;
}

.star.empty {
  color: #ddd;
}

.verified-badge {
  display: flex;
  align-items: center;
}

.review-text {
  font-size: 14px;
  line-height: 1.4;
  color: #3c4043;
  margin: 0;
}

.read-more-btn {
  color: #1a73e8;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
}

.read-more-btn:hover {
  text-decoration: underline;
}

/* Mobile Responsive - Additional styles */
@media (max-width: 768px) {
  .google-reviews {
    padding: 60px 0;
  }

  .reviewer-avatar {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .reviewer-name {
    font-size: 15px;
  }

  .review-meta {
    font-size: 13px;
  }

  .review-date {
    font-size: 13px;
  }

  .review-text {
    font-size: 13px;
  }
}

/* Small mobile screens */
@media (max-width: 480px) {
  .google-review-card {
    padding: 18px 20px;
    min-height: 220px;
  }

  .google-review-card .card-content {
    max-width: 350px;
  }

  .reviewer-info {
    gap: 10px;
  }

  .reviewer-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .reviewer-details h4 {
    font-size: 14px;
  }

  .review-date {
    font-size: 12px;
  }

  .review-text {
    font-size: 12px;
  }
}
