/* ==========================================
   ROLETA MODERNA - v3.5 TEXTOS COMPACTOS
   FIX: Fontes menores + letter-spacing negativo + nowrap
   ========================================== */

.wheel-container {
  width: 520px;
  height: 520px;
  position: relative;
  user-select: none;
  
  /* Borda externa - Gradiente vibrante */
  background: linear-gradient(135deg, 
    var(--cor-primaria, #2696ff) 0%, 
    var(--cor-secundaria, #facc15) 50%,
    var(--cor-primaria, #2696ff) 100%
  );
  border-radius: 50%;
  padding: 8px;
  
  /* Sombras dramáticas e brilho */
  box-shadow: 
    0 0 60px rgba(var(--cor-primaria-rgb, 38, 150, 255), 0.8),
    0 0 120px rgba(var(--cor-secundaria-rgb, 250, 204, 21), 0.6),
    0 30px 80px rgba(0, 0, 0, 0.4),
    inset 0 0 40px rgba(255, 255, 255, 0.15);
  
  /* Animação de brilho suave */
  animation: modernWheelGlow 4s ease-in-out infinite;
}

@keyframes modernWheelGlow {
  0%, 100% {
    box-shadow: 
      0 0 60px rgba(var(--cor-primaria-rgb, 38, 150, 255), 0.8),
      0 0 120px rgba(var(--cor-secundaria-rgb, 250, 204, 21), 0.6),
      0 30px 80px rgba(0, 0, 0, 0.4),
      inset 0 0 40px rgba(255, 255, 255, 0.15);
  }
  50% {
    box-shadow: 
      0 0 80px rgba(var(--cor-primaria-rgb, 38, 150, 255), 1),
      0 0 160px rgba(var(--cor-secundaria-rgb, 250, 204, 21), 0.8),
      0 30px 80px rgba(0, 0, 0, 0.4),
      inset 0 0 60px rgba(255, 255, 255, 0.25);
  }
}

.wheel {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  
  /* Borda interna - Branca sólida */
  background: #ffffff;
  padding: 6px;
  
  /* Sombra interna suave */
  box-shadow: 
    inset 0 0 30px rgba(0, 0, 0, 0.1),
    0 0 0 2px rgba(255, 255, 255, 0.3);
  
  /* Transição suave para rotação */
  transition: transform 0.3s ease;
}

/* Fundo com gradiente conic - 10 segmentos (36 graus cada) */
.wheel::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--cor-primaria, #2696ff) 0deg 36deg,
    var(--cor-secundaria, #facc15) 36deg 72deg,
    var(--cor-primaria, #2696ff) 72deg 108deg,
    var(--cor-secundaria, #facc15) 108deg 144deg,
    var(--cor-primaria, #2696ff) 144deg 180deg,
    var(--cor-secundaria, #facc15) 180deg 216deg,
    var(--cor-primaria, #2696ff) 216deg 252deg,
    var(--cor-secundaria, #facc15) 252deg 288deg,
    var(--cor-primaria, #2696ff) 288deg 324deg,
    var(--cor-secundaria, #facc15) 324deg 360deg
  );
  z-index: 0;
  pointer-events: none;
}

/* Removido - efeito de brilho rotativo antigo */

.wheel-picker-container {
  position: absolute;
  width: 80px;
  height: 120px;
  top: -35px; /* Movido mais para fora */
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4))
          drop-shadow(0 0 20px rgba(var(--cor-secundaria-rgb, 250, 204, 21), 0.6));
}

.wheel-picker {
  width: 100%;
  height: 100%;
  animation: pickerBounce 2s ease-in-out infinite;
}

@keyframes pickerBounce {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.wheel-center {
  position: absolute;
  width: 80px;
  height: 80px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  
  /* Gradiente dourado vibrante */
  background: linear-gradient(135deg, 
    #ffd700 0%,
    var(--cor-secundaria, #facc15) 50%,
    #ffa500 100%
  );
  border-radius: 50%;
  
  /* Borda branca */
  border: 4px solid #ffffff;
  
  /* Sombras dramáticas */
  box-shadow: 
    0 0 30px rgba(255, 215, 0, 0.9),
    0 0 60px rgba(var(--cor-secundaria-rgb, 250, 204, 21), 0.6),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.4);
  
  /* Animação de pulso suave */
  animation: modernCenterPulse 3s ease-in-out infinite;
  
  /* Botão clicável */
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-center:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 
    0 0 40px rgba(255, 215, 0, 1),
    0 0 80px rgba(var(--cor-secundaria-rgb, 250, 204, 21), 0.8),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 0 30px rgba(255, 255, 255, 0.6);
}

.wheel-center:active {
  transform: translate(-50%, -50%) scale(1.05);
}

.wheel-center-disabled {
  cursor: not-allowed !important;
  opacity: 0.6;
}

.wheel-center-disabled:hover {
  transform: translate(-50%, -50%) scale(1) !important;
  box-shadow: 
    0 0 30px rgba(255, 215, 0, 0.9),
    0 0 60px rgba(var(--cor-secundaria-rgb, 250, 204, 21), 0.6),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.4) !important;
}

.wheel-center-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
}

.wheel-center-icon {
  font-size: 22px;
  color: #ffffff;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(0, 0, 0, 0.5);
}

.wheel-center-label {
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(0, 0, 0, 0.5);
  line-height: 1;
  letter-spacing: 0.5px;
}

@keyframes modernCenterPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 
      0 0 30px rgba(255, 215, 0, 0.9),
      0 0 60px rgba(var(--cor-secundaria-rgb, 250, 204, 21), 0.6),
      0 8px 24px rgba(0, 0, 0, 0.3),
      inset 0 0 20px rgba(255, 255, 255, 0.4);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 
      0 0 40px rgba(255, 215, 0, 1),
      0 0 80px rgba(var(--cor-secundaria-rgb, 250, 204, 21), 0.8),
      0 8px 24px rgba(0, 0, 0, 0.3),
      inset 0 0 30px rgba(255, 255, 255, 0.6);
  }
}

.wheel-item-container {
  position: absolute;
  width: 50%;
  height: 50%;
  top: 0;
  left: 50%;
  transform-origin: 0% 100%;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.wheel-item-content {
  font-weight: 800;
  text-align: center;
  transform: rotate(-75deg);
  transform-origin: center center;
  white-space: nowrap;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Textos dos itens - GRANDES E LEGÍVEIS */
.wheel-item-text {
  position: absolute;
  right: -10px;
  top: 35px;
  max-width: 120px;
  overflow: visible;
  white-space: nowrap;
  font-weight: 900;
  text-shadow: 
    0 3px 10px rgba(0, 0, 0, 1),
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 30px rgba(0, 0, 0, 0.9);
  letter-spacing: 0px;
  line-height: 1;
  text-align: left;
}

.wheel-item-text.text-large {
  font-size: 16px;
}

.wheel-item-text.text-medium {
  font-size: 14px;
}

.wheel-item-text.text-small {
  font-size: 12px;
}

.wheel-item-text.text-xsmall {
  font-size: 10px;
}

/* Imagens dos itens - Tamanhos ajustados para caber */
.wheel-item-img {
  position: absolute;
  right: -85px;
  top: 15px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.wheel-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.wheel-item-icon {
  font-size: 26px;
  line-height: 1;
  display: block;
  text-align: center;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

/* Segmentos - SEM FUNDO para mostrar o gradiente conic */
.wheel-item-white {
  background: transparent;
  color: #ffffff;
  text-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(0, 0, 0, 0.8);
}

.wheel-item-transparent {
  background: transparent;
  color: #ffffff;
  text-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(0, 0, 0, 0.8);
}

.minimal {
  width: 120px;
  height: 120px;
  border: none;
  padding: 0;
  box-shadow: 
    0 0 30px rgba(var(--cor-primaria-rgb, 38, 150, 255), 0.6),
    0 0 50px rgba(var(--cor-secundaria-rgb, 250, 204, 21), 0.5),
    0 12px 30px rgba(0, 0, 0, 0.4);
}

.minimal-picker {
  width: 24px;
  height: 38px;
  top: -8px;
}

.minimal-content {
  border: none;
  padding: 0;
  background: #ffffff;
}

.minimal .wheel {
  padding: 0;
  box-shadow: none;
}

.minimal-center {
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  box-shadow: 
    0 0 8px rgba(255, 215, 0, 0.8),
    0 0 16px rgba(var(--cor-secundaria-rgb, 250, 204, 21), 0.5);
}

/* Ajustes para minimal - garantir que seja sempre visível */
.minimal .wheel-item-text,
.minimal .wheel-item-img {
  display: none !important;
}

/* Garantir que o gradiente conic fique visível na versão minimal */
.minimal .wheel::before {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 1;
  z-index: 1;
}

/* Segmentos visíveis na versão minimal - ficar atrás do gradiente */
.minimal .wheel-item-container {
  background: transparent !important;
  opacity: 0;
}

/* Centro da roda minimal por cima */
.minimal .wheel-center {
  z-index: 100;
}

@media (max-width: 991px) {
  .minimal {
    width: 90px !important;
    height: 90px !important;
  }

  .wheel-picker-container {
    width: 51px;
    height: 81px;
  }
}

/* ==========================================
   RESPONSIVO - MOBILE
   ========================================== */

@media (max-width: 661px) {
  .wheel-container {
    width: 380px;
    height: 380px;
    padding: 6px;
  }

  .wheel {
    padding: 4px;
  }
  
  .wheel::before {
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
  }

  .wheel-picker-container {
    width: 60px;
    height: 90px;
    top: -25px; /* Mais para fora no mobile também */
  }

  .wheel-center {
    width: 60px;
    height: 60px;
    border-width: 3px;
  }

  .wheel-center-icon {
    font-size: 18px;
  }

  .wheel-center-label {
    font-size: 10px;
    letter-spacing: 0.3px;
  }

  .wheel-item-text {
    right: -8px;
    top: 25px;
    max-width: 85px;
    letter-spacing: 0px;
  }

  .wheel-item-text.text-large {
    font-size: 12px;
  }

  .wheel-item-text.text-medium {
    font-size: 11px;
  }

  .wheel-item-text.text-small {
    font-size: 10px;
  }

  .wheel-item-text.text-xsmall {
    font-size: 9px;
  }

  .wheel-item-img {
    right: -60px;
    top: 12px;
    width: 46px;
    height: 46px;
    padding: 4px;
  }

  .wheel-item-icon {
    font-size: 22px;
  }
}

/* ==========================================
   TEMA MODERNO - EFEITOS PREMIUM INTENSIFICADOS
   ========================================== */

.theme-modern .wheel-container {
  padding: 10px;
  box-shadow: 
    0 0 80px rgba(var(--cor-primaria-rgb, 38, 150, 255), 1),
    0 0 160px rgba(var(--cor-secundaria-rgb, 250, 204, 21), 0.8),
    0 40px 100px rgba(0, 0, 0, 0.5),
    inset 0 0 60px rgba(255, 255, 255, 0.2);
}

.theme-modern .wheel {
  padding: 8px;
  box-shadow: 
    inset 0 0 40px rgba(0, 0, 0, 0.15),
    0 0 0 3px rgba(255, 255, 255, 0.5);
}

.theme-modern .wheel-center {
  width: 90px;
  height: 90px;
  border-width: 5px;
  box-shadow: 
    0 0 40px rgba(255, 215, 0, 1),
    0 0 80px rgba(var(--cor-secundaria-rgb, 250, 204, 21), 1),
    0 0 120px rgba(var(--cor-primaria-rgb, 38, 150, 255), 0.6),
    0 10px 30px rgba(0, 0, 0, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.6);
}

.theme-modern .wheel-picker-container {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5))
          drop-shadow(0 0 30px rgba(var(--cor-secundaria-rgb, 250, 204, 21), 0.9));
}

.theme-modern .wheel-item-text {
  font-weight: 900;
  text-shadow: 
    0 3px 8px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(255, 255, 255, 0.6),
    0 0 40px rgba(var(--cor-primaria-rgb, 38, 150, 255), 0.4);
}

.theme-modern .wheel-item-white {
  background: transparent;
}

.theme-modern .wheel-item-transparent {
  background: transparent;
}

.theme-modern .wheel-item-img {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 0 20px rgba(var(--cor-secundaria-rgb, 250, 204, 21), 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 8px;
}
