:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a24;
  --accent-primary: #8b5cf6;
  --accent-glow: #a78bfa;
  --accent-muted: #6d28d9;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-interactive: rgba(139, 92, 246, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  text-align: center;
  margin-bottom: 48px;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.textarea {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  min-height: 120px;
  padding: 16px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-primary);
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.textarea::placeholder {
  color: var(--text-muted);
}

.textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15), 0 0 20px rgba(139, 92, 246, 0.1);
}

.button {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 32px;
  background-color: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button:hover:not(:disabled) {
  background-color: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

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

.hidden {
  display: none !important;
}

.error-message {
  margin-top: 16px;
  padding: 16px;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 0.95rem;
}

.results {
  margin-top: 48px;
}

.results-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.names-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.name-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease forwards;
}

.name-card:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-interactive);
  transform: translateY(-2px);
}

.name-card.copied {
  border-color: #22c55e;
  background-color: rgba(34, 197, 94, 0.1);
}

.name-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
}

.copy-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.name-card:hover .copy-indicator {
  color: var(--text-secondary);
}

.name-card.copied .copy-indicator {
  color: #22c55e;
}

.copy-icon {
  width: 18px;
  height: 18px;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation delay for cards */
.name-card:nth-child(1) { animation-delay: 0ms; }
.name-card:nth-child(2) { animation-delay: 80ms; }
.name-card:nth-child(3) { animation-delay: 160ms; }
.name-card:nth-child(4) { animation-delay: 240ms; }
.name-card:nth-child(5) { animation-delay: 320ms; }
.name-card:nth-child(6) { animation-delay: 400ms; }
.name-card:nth-child(7) { animation-delay: 480ms; }
.name-card:nth-child(8) { animation-delay: 560ms; }
.name-card:nth-child(9) { animation-delay: 640ms; }
.name-card:nth-child(10) { animation-delay: 720ms; }

@media (max-width: 480px) {
  .container {
    padding: 32px 16px;
  }

  .title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .name-text {
    font-size: 1.1rem;
  }
}
