/* 5th Ave AI Avatar Creator — Dark Luxury Styles */

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
  background: #2A2A2A;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3A3A3A;
}

/* Selection */
::selection {
  background: rgba(201, 169, 110, 0.3);
  color: #fff;
}

/* Form focus rings */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.15);
}

/* Button active states */
button:active {
  transform: scale(0.98);
}

/* Preset button active */
.preset-btn.active {
  border-color: rgba(201, 169, 110, 0.6);
  color: #C9A96E;
  background: rgba(201, 169, 110, 0.08);
}

/* Smooth image load */
#generated-image {
  opacity: 0;
  transition: opacity 0.5s ease;
}

#generated-image.loaded {
  opacity: 1;
}

/* Loading spinner */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Hero pattern background */
.hero-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A96E' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#output-section:not(.hidden) {
  animation: fadeIn 0.3s ease-out;
}
