/* ==========================================================================
   EZTestimonials Pro - Layout Custom Templates Styles
   ========================================================================== */

/* ---------------------------------------------------------
   Base Grid & Slider Layout Utilities
   --------------------------------------------------------- */
.ez-grid {
  display: grid;
  gap: 24px;
  width: 100%;
}

.ez-cols-1 { grid-template-columns: 1fr; }
.ez-cols-2 { grid-template-columns: repeat(1, 1fr); }
.ez-cols-3 { grid-template-columns: repeat(1, 1fr); }

@media(min-width: 640px) {
  .ez-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .ez-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media(min-width: 1024px) {
  .ez-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Base Card Skeleton */
.ez-card {
  position: relative;
  border-radius: var(--ez-radius);
  padding: 28px;
  background: var(--ez-bg-light);
  border: 1px solid var(--ez-border-light);
  box-shadow: var(--ez-shadow-premium);
  transition: var(--ez-transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.ez-card-content {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 20px;
  flex-grow: 1;
}

.ez-card-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ez-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(0,0,0,0.04);
}

.ez-card-meta {
  display: flex;
  flex-direction: column;
}

.ez-card-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ez-card-info {
  font-size: 0.82rem;
  color: #6b7280;
}

/* 3D Hover Tilt Utility */
.ez-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

.ez-tilt * {
  transform: translateZ(10px);
}

/* ---------------------------------------------------------
   Style 1 — Creator Cards
   --------------------------------------------------------- */
.ez-style-creator {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid rgba(99, 102, 241, 0.08);
  box-shadow: 0 15px 35px -10px rgba(99, 102, 241, 0.05), var(--ez-shadow-premium);
}

.ez-style-creator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #6366f1, #a855f7);
}

.ez-style-creator:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.15), var(--ez-shadow-premium);
}

.ez-style-creator .ez-card-avatar {
  border: 2px solid #6366f1;
  padding: 2px;
  background: #fff;
}

.ez-style-creator .ez-card-name {
  color: #1e1b4b;
}

.ez-creator-social-icon {
  margin-left: auto;
  color: #6366f1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.ez-creator-social-icon:hover {
  opacity: 1;
}

/* ---------------------------------------------------------
   Style 2 — Video Testimonial Wall
   --------------------------------------------------------- */
.ez-style-videowall {
  padding: 0;
  background: #090a0f;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8);
  aspect-ratio: 9/14;
  cursor: pointer;
}

.ez-video-poster-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.ez-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ez-style-videowall:hover .ez-video-poster {
  transform: scale(1.08);
}

.ez-video-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.85) 90%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  z-index: 2;
}

.ez-play-btn-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.ez-style-videowall:hover .ez-play-btn-circle {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ez-play-btn-circle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  margin-left: 2px;
}

.ez-style-videowall .ez-card-content {
  color: #e5e7eb;
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ez-style-videowall .ez-card-name {
  color: #fff;
}

.ez-style-videowall .ez-card-info {
  color: #9ca3af;
}

/* ---------------------------------------------------------
   Style 3 — Glassmorphism Slider
   --------------------------------------------------------- */
.ez-slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.ez-slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.ez-slider-slide {
  flex-shrink: 0;
  width: 100%;
  padding: 10px;
}

.ez-style-glassmorphism {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
}

.ez-style-glassmorphism .ez-card-content {
  color: #374151;
}

.ez-style-glassmorphism .ez-card-name {
  color: #111827;
}

/* Glass Dark mode toggle overlay */
.ez-theme-dark .ez-style-glassmorphism {
  background: rgba(18, 19, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
}

.ez-theme-dark .ez-style-glassmorphism .ez-card-content {
  color: #e5e7eb;
}

.ez-theme-dark .ez-style-glassmorphism .ez-card-name {
  color: #fff;
}

/* Navigation Indicator design */
.ez-slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
}

.ez-slider-arrow {
  background: rgba(0, 0, 0, 0.04);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  transition: all 0.25s;
}

.ez-slider-arrow:hover {
  background: var(--ez-primary);
  color: #fff;
  transform: scale(1.05);
}

.ez-slider-arrow svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.ez-slider-dots {
  display: flex;
  gap: 6px;
}

.ez-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.ez-slider-dot.active {
  width: 24px;
  border-radius: 99px;
  background: var(--ez-primary);
}

/* ---------------------------------------------------------
   Style 4 — Minimal Clean
   --------------------------------------------------------- */
.ez-style-minimal {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 10px;
  border-bottom: 1px solid var(--ez-border-light);
  border-radius: 0;
  padding-bottom: 24px;
}

.ez-style-minimal .ez-card-content {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #1f2937;
  margin-bottom: 24px;
}

.ez-style-minimal .ez-card-content::before {
  content: '“';
  font-size: 3rem;
  color: var(--ez-primary);
  line-height: 0;
  display: inline-block;
  vertical-align: -15px;
  margin-right: 5px;
}

.ez-style-minimal .ez-card-avatar {
  width: 40px;
  height: 40px;
}

.ez-style-minimal .ez-card-name {
  font-size: 0.95rem;
  font-family: var(--ez-font);
}

/* ---------------------------------------------------------
   Style 5 — Masonry Grid
   --------------------------------------------------------- */
.ez-masonry-wrapper {
  column-width: 320px;
  column-gap: 24px;
  width: 100%;
}

.ez-masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 24px;
  break-inside: avoid;
}

/* ---------------------------------------------------------
   Style 6 — Infinite Marquee
   --------------------------------------------------------- */
.ez-marquee-container {
  overflow: hidden;
  width: 100%;
  display: flex;
  position: relative;
  padding: 10px 0;
}

.ez-marquee-container::before,
.ez-marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.ez-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--ez-bg-light) 0%, transparent 100%);
}

.ez-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--ez-bg-light) 0%, transparent 100%);
}

.ez-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: ezMarqueeScroll 30s linear infinite;
}

.ez-marquee-container:hover .ez-marquee-track {
  animation-play-state: paused;
}

.ez-marquee-card {
  width: 360px;
  flex-shrink: 0;
}

@keyframes ezMarqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 12px)); } /* Compensate for gap */
}

/* ---------------------------------------------------------
   Style 7 — Dark Mode Creator UI
   --------------------------------------------------------- */
.ez-style-darkcreator {
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.ez-style-darkcreator:hover {
  border-color: var(--ez-primary);
  box-shadow: 0 25px 50px -12px rgba(var(--ez-primary-rgb), 0.25), 0 0 15px -3px rgba(var(--ez-primary-rgb), 0.2);
  transform: translateY(-4px);
}

.ez-style-darkcreator .ez-card-content {
  color: #d1d5db;
}

.ez-style-darkcreator .ez-card-name {
  color: #fff;
}

.ez-style-darkcreator .ez-card-info {
  color: #9ca3af;
}

.ez-style-darkcreator .ez-card-avatar {
  border: 2px solid rgba(255,255,255,0.08);
}

/* ---------------------------------------------------------
   Style 8 — Before/After Review Style
   --------------------------------------------------------- */
.ez-style-beforeafter {
  border: 1px solid rgba(16, 185, 129, 0.15);
  box-shadow: 0 15px 35px -10px rgba(16, 185, 129, 0.04), var(--ez-shadow-premium);
}

.ez-beforeafter-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 185, 129, 0.04);
  border: 1px dashed rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 20px;
}

.ez-metric-column {
  text-align: center;
  flex: 1;
}

.ez-metric-arrow {
  padding: 0 10px;
  color: #10b981;
  font-weight: 900;
  font-size: 1.2rem;
}

.ez-metric-title {
  font-size: 0.72rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.ez-metric-value {
  font-size: 1.15rem;
  font-weight: 800;
}

.ez-metric-value.val-before {
  color: #ef4444;
}

.ez-metric-value.val-after {
  color: #10b981;
}

/* ---------------------------------------------------------
   Responsive Dark Themes overrides
   --------------------------------------------------------- */
.ez-theme-dark .ez-card {
  background: var(--ez-bg-dark);
  border-color: var(--ez-border-dark);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

.ez-theme-dark .ez-card-content {
  color: #d1d5db;
}

.ez-theme-dark .ez-card-name {
  color: #fff;
}

.ez-theme-dark .ez-card-info {
  color: #9ca3af;
}

.ez-theme-dark .ez-style-minimal {
  border-color: var(--ez-border-dark);
}

.ez-theme-dark .ez-style-minimal .ez-card-content {
  color: #e5e7eb;
}

.ez-theme-dark .ez-marquee-container::before {
  background: linear-gradient(to right, var(--ez-bg-dark) 0%, transparent 100%);
}

.ez-theme-dark .ez-marquee-container::after {
  background: linear-gradient(to left, var(--ez-bg-dark) 0%, transparent 100%);
}

/* ---------------------------------------------------------
   Premium Slider Layout Transition Animations
   --------------------------------------------------------- */
.ez-slider-container.anim-fade .ez-slider-track,
.ez-slider-container.anim-scale .ez-slider-track,
.ez-slider-container.anim-flip .ez-slider-track {
  display: block;
  position: relative;
  width: 100%;
  transform: none !important; /* Disable standard translation shifting */
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: height;
}

.ez-slider-container.anim-fade .ez-slider-slide,
.ez-slider-container.anim-scale .ez-slider-slide,
.ez-slider-container.anim-flip .ez-slider-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important; /* Stack active/inactive elements on top of each other */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
  z-index: 1;
}

.ez-slider-container.anim-fade .ez-slider-slide.active,
.ez-slider-container.anim-scale .ez-slider-slide.active,
.ez-slider-container.anim-flip .ez-slider-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* 3D Scale/Zoom Zoom Transition overrides */
.ez-slider-container.anim-scale .ez-slider-slide {
  transform: scale(0.92);
}
.ez-slider-container.anim-scale .ez-slider-slide.active {
  transform: scale(1);
}

/* 3D Premium Card Flip Transition overrides */
.ez-slider-container.anim-flip {
  perspective: 1200px;
}
.ez-slider-container.anim-flip .ez-slider-slide {
  transform: rotateY(-90deg);
  transform-origin: center;
  backface-visibility: hidden;
}
.ez-slider-container.anim-flip .ez-slider-slide.active {
  transform: rotateY(0deg);
}

