/* Carrossel de Feedback em Design de Celular/Tablet */

/* Container principal do dispositivo */
.feedback-device-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  perspective: 1000px;
}

/* Dispositivo (celular/tablet) */
.feedback-device {
  position: relative;
  transform-style: preserve-3d;
  animation: deviceFloat 6s ease-in-out infinite;
}

@keyframes deviceFloat {
  0%, 100% {
    transform: translateY(0) rotateX(2deg);
  }
  50% {
    transform: translateY(-20px) rotateX(0deg);
  }
}

/* Frame do dispositivo */
.device-frame {
  position: relative;
  width: 380px;
  height: 760px;
  background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
  border-radius: 50px;
  padding: 12px;
  box-shadow: 
    0 50px 100px rgba(0, 0, 0, 0.4),
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.1),
    0 0 0 8px rgba(255, 255, 255, 0.05);
  border: 3px solid #444;
  overflow: hidden;
}

/* Efeito de brilho premium */
.device-frame::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  pointer-events: none;
  animation: shimmerPremium 6s ease-in-out infinite;
}

@keyframes shimmerPremium {
  0%, 100% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0.3;
  }
  50% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0.8;
  }
}

/* Tela do dispositivo */
.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000000, #1a1a1a);
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Notch do dispositivo */
.device-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 30px;
  background: #000;
  border-radius: 0 0 25px 25px;
  z-index: 10;
  box-shadow: inset 0 -2px 4px rgba(255, 255, 255, 0.1);
}

/* Botão home do dispositivo */
.device-button {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 6px;
  background: linear-gradient(90deg, #444, #666, #444);
  border-radius: 10px;
  z-index: 5;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* Wrapper do carrossel dentro do dispositivo */
.feedback-carousel-wrapper {
  width: 100%;
  height: 100%;
  padding: 50px 25px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Container do carrossel */
.feedback-carousel-container {
  position: relative;
  width: 100%;
  height: 85%;
  max-height: 600px;
  overflow: hidden;
  border-radius: 25px;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Track do carrossel */
.feedback-carousel-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  width: 100%;
  will-change: transform;
}

/* Slides do carrossel */
.feedback-carousel-slide {
  min-width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.feedback-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
  background: #000;
  padding: 0;
  box-sizing: border-box;
}

.feedback-carousel-slide:hover img {
  transform: scale(1.02);
}

/* Botões de navegação */
.feedback-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: #ffffff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 15;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

/* Efeito de ripple nos botões */
.feedback-carousel-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.feedback-carousel-btn:active::before {
  width: 100px;
  height: 100px;
}

.feedback-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.15) rotate(5deg);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.2);
}

.feedback-carousel-btn:active {
  transform: translateY(-50%) scale(1.05) rotate(-2deg);
  transition: all 0.1s ease;
}

.feedback-carousel-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  z-index: 1;
  position: relative;
}

.feedback-carousel-btn:hover svg {
  transform: scale(1.2) translateX(2px);
}

.feedback-carousel-btn-prev:hover svg {
  transform: scale(1.2) translateX(-2px);
}

.feedback-carousel-btn-prev {
  left: 15px;
}

.feedback-carousel-btn-next {
  right: 15px;
}

/* Indicadores */
.feedback-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.feedback-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.feedback-carousel-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.feedback-carousel-indicator.active {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.4);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

.feedback-carousel-indicator.active::before {
  transform: translate(-50%, -50%) scale(1.5);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8), 0 0 35px rgba(255, 255, 255, 0.3);
  }
}

.feedback-carousel-indicator:hover {
  transform: scale(1.2);
  background-color: rgba(255, 255, 255, 0.6);
}

/* Responsivo - Desktop */
@media (min-width: 1200px) {
  .device-frame {
    width: 420px;
    height: 840px;
  }
  
  .feedback-carousel-btn {
    width: 50px;
    height: 50px;
  }
  
  .feedback-carousel-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* Responsivo - Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
  .feedback-device-container {
    padding: 50px 20px;
  }
  
  .device-frame {
    width: 350px;
    height: 700px;
  }
  
  .feedback-carousel-wrapper {
    padding: 45px 20px 35px;
  }
}

/* Responsivo - Mobile */
@media (max-width: 768px) {
  .feedback-section {
    padding: 80px 0 60px 0;
  }
  
  .feedback-device-container {
    padding: 30px 15px;
  }
  
  .device-frame {
    width: 320px;
    height: 640px;
    padding: 10px;
    border-radius: 40px;
  }
  
  .device-screen {
    border-radius: 32px;
  }
  
  .device-notch {
    width: 150px;
    height: 25px;
    border-radius: 0 0 20px 20px;
  }
  
  .feedback-carousel-wrapper {
    padding: 40px 20px 35px;
  }
  
  .feedback-carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .feedback-carousel-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .feedback-carousel-btn-prev {
    left: 12px;
  }
  
  .feedback-carousel-btn-next {
    right: 12px;
  }
  
  .device-button {
    width: 120px;
    height: 5px;
  }
}

/* Responsivo - Mobile Pequeno */
@media (max-width: 480px) {
  .feedback-section {
    padding: 60px 0 40px 0;
  }
  
  .feedback-device-container {
    padding: 20px 10px;
  }
  
  .device-frame {
    width: 280px;
    height: 560px;
    padding: 8px;
    border-radius: 35px;
  }
  
  .device-screen {
    border-radius: 28px;
  }
  
  .device-notch {
    width: 130px;
    height: 22px;
    border-radius: 0 0 18px 18px;
  }
  
  .feedback-carousel-wrapper {
    padding: 35px 18px 30px;
  }
  
  .feedback-carousel-container {
    height: 80%;
    max-height: 450px;
    border-radius: 20px;
  }
  
  .feedback-carousel-btn {
    width: 36px;
    height: 36px;
  }
  
  .feedback-carousel-btn svg {
    width: 14px;
    height: 14px;
  }
  
  .feedback-carousel-btn-prev {
    left: 10px;
  }
  
  .feedback-carousel-btn-next {
    right: 10px;
  }
  
  .feedback-carousel-indicators {
    margin-top: 15px;
    gap: 6px;
  }
  
  .feedback-carousel-indicator {
    width: 7px;
    height: 7px;
  }
  
  .device-button {
    width: 100px;
    height: 4px;
    bottom: 8px;
  }
}

/* Responsivo - Mobile Muito Pequeno */
@media (max-width: 360px) {
  .device-frame {
    width: 260px;
    height: 520px;
  }
  
  .feedback-carousel-wrapper {
    padding: 30px 15px 25px;
  }
  
  .feedback-carousel-container {
    max-height: 400px;
  }
  
  .feedback-carousel-btn {
    width: 32px;
    height: 32px;
  }
  
  .feedback-carousel-btn svg {
    width: 12px;
    height: 12px;
  }
  
  .device-notch {
    width: 120px;
    height: 20px;
  }
  
  .device-button {
    width: 90px;
    height: 3px;
  }
}

/* Animações de entrada */
.feedback-device {
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  animation: deviceEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes deviceEntrance {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.feedback-carousel-slide {
  opacity: 0;
  transform: scale(0.8);
  animation: slideEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.feedback-carousel-slide:nth-child(1) {
  animation-delay: 0.2s;
}

.feedback-carousel-slide:nth-child(2) {
  animation-delay: 0.4s;
}

.feedback-carousel-slide:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes slideEntrance {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Efeitos de brilho e reflexo */
.device-frame::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  pointer-events: none;
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Melhorias de acessibilidade */
.feedback-carousel-btn:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.feedback-carousel-indicator:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

/* Efeito de loading suave */
.feedback-carousel-track {
  animation: loadingPulse 2s ease-in-out infinite alternate;
}

@keyframes loadingPulse {
  from {
    opacity: 0.95;
  }
  to {
    opacity: 1;
  }
}
