/* Solana NFT Creator - Custom styles */
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --glow-purple: rgba(147, 51, 234, 0.4);
  --glow-cyan: rgba(6, 182, 212, 0.3);
}

html {
  scroll-behavior: smooth;
}

/* Soft glow on interactive elements */
button:not(:disabled):hover,
a[href]:hover {
  filter: none;
}

.btn-glow:hover,
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 0 24px var(--glow-purple);
}

.btn-primary {
  transition: all 0.2s ease;
}

/* Focus ring for accessibility */
input:focus,
textarea:focus,
button:focus-visible {
  outline: none;
}


/* Loading spinner for mint button */
#mint-nft-btn.loading {
  pointer-events: none;
  position: relative;
  color: transparent;
}

#mint-nft-btn.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success modal display */
#success-modal.flex {
  display: flex;
}
