﻿/* ==========================================================================
   REACT BITS â€” CIRCULAR 3D CAROUSEL (REVIEWS & TESTIMONIALS)
   Production-ready 3D Cylinder Carousel with Physics, Drag & Depth Fade
   ========================================================================== */

.circular-carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  perspective: 2200px;
}

.circular-carousel-stage {
  position: relative;
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.circular-carousel-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.circular-carousel-card {
  position: absolute;
  width: 380px;
  max-width: 90vw;
  min-height: 320px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(0, 136, 255, 0.18);
  border-radius: 24px;
  padding: 32px 30px;
  box-shadow: 0 20px 45px rgba(0, 80, 200, 0.12), 0 2px 10px rgba(0, 0, 0, 0.04);
  transform-style: preserve-3d;
  backface-visibility: visible;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: grab;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.circular-carousel-card:active {
  cursor: grabbing;
}

.circular-carousel-card.is-active {
  border-color: rgba(0, 136, 255, 0.55);
  box-shadow: 0 25px 60px rgba(0, 136, 255, 0.22), 0 0 25px rgba(0, 210, 255, 0.15);
}

/* Review Card Interior Elements */
.review-quote-icon {
  font-size: 1.8rem;
  color: #0088ff;
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 12px;
}

.review-stars-row {
  display: flex;
  gap: 4px;
  color: #f59e0b;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.review-body-text {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #334155;
  font-weight: 500;
  margin-bottom: 20px;
  flex-grow: 1;
}

.review-author-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 136, 255, 0.12);
}

.review-avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0088ff 0%, #00d2ff 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 136, 255, 0.3);
  flex-shrink: 0;
}

.review-author-name {
  font-weight: 700;
  font-size: 1rem;
  color: #0a2540;
  line-height: 1.2;
}

.review-author-meta {
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.review-badge-pill {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(0, 136, 255, 0.1);
  color: #0066cc;
  border: 1px solid rgba(0, 136, 255, 0.2);
  white-space: nowrap;
}

/* Controls */
.circular-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  z-index: 10;
}

.carousel-arrow-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(0, 136, 255, 0.2);
  color: #0066cc;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 80, 200, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-arrow-btn:hover {
  background: #0088ff;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 136, 255, 0.35);
}

.carousel-arrow-btn:active {
  transform: scale(0.95);
}

.carousel-dots-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 136, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-dot-btn.active {
  width: 28px;
  border-radius: 100px;
  background: linear-gradient(90deg, #0088ff, #00d2ff);
  box-shadow: 0 0 10px rgba(0, 136, 255, 0.5);
}

/* Mobile Responsive Optimizations for 3D Circular Review Cards */
@media (max-width: 768px) {
  .circular-carousel-container {
    perspective: 1200px;
    min-height: 440px;
  }

  .circular-carousel-stage {
    height: 380px;
  }

  .circular-carousel-card {
    width: 310px;
    max-width: 86vw;
    padding: 20px 16px;
    min-height: 260px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .review-quote-icon {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }

  .review-stars-row {
    font-size: 0.88rem;
    margin-bottom: 8px;
    gap: 3px;
  }

  .review-body-text {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 12px;
    color: #334155;
  }

  .review-author-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 136, 255, 0.12);
    flex-wrap: nowrap;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  .review-avatar-circle {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .review-author-wrap > div:not(.review-avatar-circle):not(.review-badge-pill) {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .review-author-name {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .review-author-meta {
    font-size: 0.68rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
  }

  .review-badge-pill {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 7px;
    letter-spacing: 0.02em;
    margin-left: auto;
    flex-shrink: 0;
    max-width: 105px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .circular-carousel-controls {
    margin-top: 16px;
    gap: 14px;
  }

  .carousel-arrow-btn {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .circular-carousel-container {
    min-height: 420px;
  }

  .circular-carousel-card {
    width: 285px;
    max-width: 88vw;
    padding: 16px 14px;
    min-height: 245px;
    border-radius: 18px;
  }

  .review-body-text {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .review-avatar-circle {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .review-author-name {
    font-size: 0.78rem;
  }

  .review-author-meta {
    font-size: 0.65rem;
  }

  .review-badge-pill {
    font-size: 0.58rem;
    padding: 2px 6px;
  }
}



.circular-carousel-card .review-quote-icon {
  position: static !important;
  font-size: 1.5rem !important;
  color: #0088ff !important;
  opacity: 0.35 !important;
  line-height: 1 !important;
  margin-bottom: 10px !important;
  inset: auto !important;
  bottom: auto !important;
  right: auto !important;
}
