/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reviews-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.slider-container {
  overflow: hidden;
  border-radius: 8px;
  margin-left: 50px;
  margin-right: 50px;
  padding-top: 4px;
  padding-bottom: 8px;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.review-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid ;
  width: calc(33.333% - 30px);
  min-width: 250px;
  max-width: 400px;
  margin: 0 15px;
  padding: 30px 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  flex-shrink: 0;
}

/* Focus states voor toegankelijkheid */
.review-card:focus {
  outline: 1px solid #e2e2e2;
  outline-offset: 1px;
}

.review-header {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.review-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Star rating styles */
.star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 18px;
  line-height: 1;
  color: #ffc107;
}

.star-rating .star {
  display: inline-block;
  font-size: inherit;
  line-height: 1;
}

.star-rating .star.filled {
  color: #ffc107;
}

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

/* Alternative star rating for when using unicode stars */
.star-rating[data-rating] {
  position: relative;
}

.star-rating[data-rating]::before {
  content: "☆☆☆☆☆";
  color: #ddd;
}

.star-rating[data-rating="1"]::after { content: "★☆☆☆☆"; }
.star-rating[data-rating="2"]::after { content: "★★☆☆☆"; }
.star-rating[data-rating="3"]::after { content: "★★★☆☆"; }
.star-rating[data-rating="4"]::after { content: "★★★★☆"; }
.star-rating[data-rating="5"]::after { content: "★★★★★"; }

.star-rating[data-rating]::after {
  position: absolute;
  left: 0;
  color: #ffc107;
}

.review-content {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  margin-bottom: 25px;
  font-style: italic;
  border: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.review-content::before {
  content: '"';
  font-size: 16px;
  color: #7A7A7A;
  margin-right: 3px;
}

.review-content::after {
  content: '"';
  font-size: 16px;
  color: #7A7A7A;
  margin-left: 3px;
}

.review-footer {
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
}

.reviewer-name {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
  font-style: normal;
}

.reviewer-location {
  color: #666;
  font-size: 14px;
}

/* Review date styling */
.review-date {
  color: #999;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.slider-navigation {
  text-align: center;
  margin-top: 30px;
}

.nav-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  border: 2px solid transparent;
  padding: 0;
  position: relative;
}

.nav-dot:hover {
  background: #e2e2e2;
}

.nav-dot:focus {
  outline: 2px solid #e2e2e2;
  outline-offset: 2px;
}

.nav-dot.active,
.nav-dot[aria-selected="true"] {
  background: #7a7a7a;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-nav:hover {
  background: #e2e2e2;
  color: black;
}

.slider-nav:focus {
  outline: 2px solid #e2e2e2;
  outline-offset: 2px;
}

.slider-nav.prev {
  left: 20px;
}

.slider-nav.next {
  right: 20px;
}

/* Responsive design - Mobile first approach */
@media (max-width: 480px) {
  .reviews-slider {
    padding: 10px;
  }
  
  .slider-container {
    margin-left: 0;
    margin-right: 0;
  }
  
  .review-card {
    width: calc(90vw - 30px); /* 90% of viewport width minus margin */
    min-width: 200px;
    max-width: 300px;
    margin: 0 8px;
    padding: 20px 15px;
  }
  
  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .star-rating {
    font-size: 16px;
  }
  
  .slider-nav {
    display: none;
  }
  
  .nav-dot {
    width: 10px;
    height: 10px;
    margin: 0 3px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .slider-container {
    margin-left: 40px;
    margin-right: 40px;
  }
  
  .review-card {
    width: calc(50% - 20px); /* 2 cards per row */
    min-width: 220px;
    max-width: 350px;
    margin: 0 10px;
    padding: 25px 20px;
  }
  
  .review-header {
    flex-direction: row;
    align-items: center;
  }
  
  .star-rating {
    font-size: 16px;
  }
  
  .slider-nav {
    width: 35px;
    height: 35px;
  }
  
  .slider-nav.prev {
    left: 15px;
  }
  
  .slider-nav.next {
    right: 15px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .review-card {
    width: calc(40% - 30px); /* Slightly larger cards on medium screens */
    min-width: 280px;
    max-width: 380px;
  }
  
  .star-rating {
    font-size: 18px;
  }
}

@media (min-width: 1025px) {
  .review-card {
    width: calc(33.333% - 30px); /* 3 cards visible on large screens */
    min-width: 300px;
    max-width: 420px;
  }
  
  .star-rating {
    font-size: 18px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .review-card {
    border: 2px solid #000;
  }
  
  .nav-dot {
    border: 2px solid #000;
  }
  
  .slider-nav {
    border: 2px solid #000;
  }
  
  .star-rating .star.filled {
    color: #000;
  }
  
  .star-rating .star.empty {
    color: #666;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .slider-track {
    transition: none;
  }
  
  .nav-dot {
    transition: none;
  }
  
  .slider-nav {
    transition: none;
  }
}

/* Print styles */
@media print {
  .slider-navigation,
  .slider-nav {
    display: none;
  }
  
  .slider-track {
    display: block;
  }
  
  .review-card {
    display: block;
    margin: 20px 0;
    break-inside: avoid;
  }
  
  .star-rating {
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
  }
}
}