/* ========================================
   CHAT WIDGET - DISCORD
   ======================================== */

.discord-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

/* Botão principal do Discord */
.discord-button {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #aaaaaa, #999999);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 
    0 10px 40px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(255, 255, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 3px solid rgba(255, 255, 255, 0.1);
  animation: discord-pulse 3s ease-in-out infinite;
  position: relative;
}

.discord-button:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 
    0 15px 50px rgba(255, 255, 255, 0.5),
    0 0 40px rgba(255, 255, 255, 0.5);
}

.discord-button:active {
  transform: scale(0.95);
}

/* Ícone do Discord */
.discord-icon {
  width: 38px;
  height: 38px;
  fill: white;
}

/* Pulso constante */
@keyframes discord-pulse {
  0%, 100% {
    box-shadow: 
      0 10px 40px rgba(255, 255, 255, 0.5),
      0 0 20px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 
      0 10px 50px rgba(255, 255, 255, 0.7),
      0 0 30px rgba(255, 255, 255, 0.5);
  }
}

/* Badge de notificação */
.discord-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, rgb(255, 255, 255), rgb(220, 220, 220));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: white;
  border: 2px solid #0a0a0a;
  animation: badge-bounce 2s ease-in-out infinite;
}

@keyframes badge-bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* Tooltip */
.discord-tooltip {
  background: linear-gradient(135deg,
    rgba(20, 20, 20, 0.98),
    rgba(15, 15, 15, 0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 20px;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border: 2px solid rgba(88, 101, 242, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.discord-widget:hover .discord-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Texto do tooltip */
.discord-tooltip strong {
  color: #aaaaaa;
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
}

.discord-tooltip span {
  color: #B8B8B8;
  font-size: 12px;
  font-weight: 500;
}

/* Indicador online */
.discord-status {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 16px;
  height: 16px;
  background: #bbbbbb;
  border-radius: 50%;
  border: 3px solid #0a0a0a;
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(35, 165, 89, 0.7);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(35, 165, 89, 0);
  }
}

/* Responsivo */
@media (max-width: 768px) {
  .discord-widget {
    bottom: 20px;
    right: 20px;
  }
  
  .discord-button {
    width: 60px;
    height: 60px;
  }
  
  .discord-icon {
    width: 32px;
    height: 32px;
  }
  
  .discord-tooltip {
    display: none;
  }
}

/* Animação de entrada */
@keyframes discord-entry {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.discord-widget {
  animation: discord-entry 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1s both;
}

