/* =========================================================
   Base container
   ========================================================= */

.as-swiper-container {
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
  padding: 20px;
  box-sizing: border-box;
}

/* Swiper layout */
.as-swiper-container .swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch; /* zorgt dat slides gelijk “rekken” */
}

.as-swiper-container .swiper-slide {
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* =========================================================
   Review card (premium, stabiel)
   ========================================================= */

.as-swiper-container .as-review-item {
  display: flex;
  height: 100%; /* JS kan dit ook in px zetten voor uniformiteit */
  border-radius: 16px;
  overflow: hidden;
  padding: 0; /* padding zit in .as-inner */
  margin: 0;  /* geen margin in slides, anders gaat Swiper spacing raar doen */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.as-swiper-container .as-review-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

.as-swiper-container .as-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 18px 18px 16px;
  box-sizing: border-box;
}

.as-swiper-container .as-review-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0; /* belangrijk voor line-clamp in flex layouts */
}

/* =========================================================
   Avatar + meta
   ========================================================= */

.as-swiper-container .as-profile-img img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

.as-swiper-container .as-profile-details {
  text-align: center;
}

.as-swiper-container .as-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
}

.as-swiper-container .as-date {
  margin-top: 2px;
  font-size: 0.9rem;
  color: #888;
}

/* =========================================================
   Stars
   ========================================================= */

.as-swiper-container .as-stars {
  margin: 10px 0 0;
  text-align: center;
  flex: 0 0 auto;
}

.as-swiper-container .as-stars img {
  display: inline-block;
  margin-right: 2px;
}

/* =========================================================
   Review text (premium: geen scrollbars, geen verspringen)
   ========================================================= */

.as-swiper-container .as-review-text-container {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 10px;

  font-size: 1rem;
  line-height: 1.45;
  color: #555;
  text-align: center;

  /* line clamp voor nette, stabiele hoogte */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5; /* pas aan naar 4-6 naar smaak */
  overflow: hidden;
}

/* Als je (later) een expanded state wilt gebruiken */
.as-swiper-container .as-review-text-container.expanded {
  display: block;
  overflow: visible;
}

/* Lees verder (alleen nuttig als je de knop ook rendert) */
.as-swiper-container .as-read-more {
  display: inline-block;
  cursor: pointer;
  color: #007bff;
  font-size: 0.9rem;
  margin-top: 10px;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.as-swiper-container .as-read-more:hover {
  color: #0056b3;
}

/* =========================================================
   Average rating header
   ========================================================= */

.as-swiper-container .as-average-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 18px;
}

.as-swiper-container .as-average-score,
.as-swiper-container .as-average-stars {
  font-weight: 700;
  color: #007bff;
}

.as-swiper-container .as-average-stars img {
  width: 20px;
  height: 20px;
  margin-right: 2px;
}

/* Optioneel: totaal aantal reviews (als je dit ergens rendert) */
.as-total-reviews {
  display: block;
  font-size: 0.9rem;
  color: #555;
  margin-top: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    "Open Sans", "Helvetica Neue", sans-serif;
}

/* =========================================================
   Swiper navigation + pagination (premium)
   ========================================================= */

.as-swiper-container .swiper-button-next,
.as-swiper-container .swiper-button-prev {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.95);
  color: #007bff;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.as-swiper-container .swiper-button-next:hover,
.as-swiper-container .swiper-button-prev:hover {
  opacity: 1;
}

.as-swiper-container .swiper-button-next:after,
.as-swiper-container .swiper-button-prev:after {
  font-size: 16px;
}

/* Bullets */
.as-swiper-container .swiper-pagination-bullet {
  background-color: #007bff;
  width: 10px;
  height: 10px;
  opacity: 0.35;
  transition: opacity 0.2s ease;
}

.as-swiper-container .swiper-pagination-bullet-active {
  opacity: 0.9;
}

/* =========================================================
   Widget container (als je deze class gebruikt)
   ========================================================= */

.as-widget {
  max-width: 800px;
  margin: 0 auto;
  color: #333;
}

/* =========================================================
   Error state
   ========================================================= */

.as-error {
  background-color: #fbeaea;
  color: #b7181a;
  padding: 10px;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  margin-bottom: 15px;
  text-align: center;
}
/* =========================================
   Transparante Swiper navigatieknoppen
   ========================================= */

/* Verberg alle ingebouwde Swiper iconen */
.as-swiper-container .swiper-button-next::after,
.as-swiper-container .swiper-button-prev::after,
.as-swiper-container .swiper-button-next::before,
.as-swiper-container .swiper-button-prev::before {
  content: "" !important;
  display: none !important;
}

/* Volledig transparante knop */
.as-swiper-container .swiper-button-next,
.as-swiper-container .swiper-button-prev {
  width: 44px;
  height: 44px;

  background-color: transparent !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;

  border: none !important;
  box-shadow: none !important;

  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.as-swiper-container .swiper-button-next:hover,
.as-swiper-container .swiper-button-prev:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Pijlen als SVG (blauw, scherp) */
.as-swiper-container .swiper-button-next {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 16 16'%3E%3Cpath d='M6 3l5 5-5 5' fill='none' stroke='%23007bff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.as-swiper-container .swiper-button-prev {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 16 16'%3E%3Cpath d='M10 3L5 8l5 5' fill='none' stroke='%23007bff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
