/* Custom Stylesheet for Antigravity Name Generator */

/* Custom Animations */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(8px);
    filter: blur(4px);
  }
  65% {
    transform: scale(1.02) translateY(-2px);
    filter: blur(0px);
  }
  85% {
    transform: scale(0.99) translateY(0.5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }
}

@keyframes spinSlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes floatElement {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

/* Custom Animation Utility Classes */
.animate-bounce-in {
  animation: bounceIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-spin-slow {
  animation: spinSlow 12s linear infinite;
}

.animate-float {
  animation: floatElement 6s ease-in-out infinite;
}

/* Global Reset & Base adjustments */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #08090f;
  color-scheme: dark;
}

/* Scrollbar Customization */
#history-list::-webkit-scrollbar {
  width: 5px;
}

#history-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 99px;
}

#history-list::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.25);
  border-radius: 99px;
}

#history-list::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.45);
}

/* Glassmorphism Card styling overrides for smooth display */
.glass-card {
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5), 
              0 0 50px -12px rgba(168, 85, 247, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 35px 70px -10px rgba(0, 0, 0, 0.6), 
              0 0 60px -8px rgba(168, 85, 247, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Buttons active/hover effects */
.gender-btn {
  position: relative;
  overflow: hidden;
}

/* Custom Text Shadow for big name displaying premium glow */
#name-display {
  text-shadow: 0 0 40px rgba(168, 85, 247, 0.2), 
               0 0 80px rgba(236, 72, 153, 0.1);
}

/* Tooltip animation tweak */
.group\/copy:hover #copy-tooltip {
  transition-delay: 0.1s;
}

/* Responsive adjustment for name container */
#name-display-container {
  word-break: break-word;
}
