* {
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  padding: 0;
}

.font-space {
  font-family: 'Space Grotesk', sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.bg-grid-pattern {
  background-image: 
    linear-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

.glass-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.glass-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

.tag-glow {
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.match-card {
  animation: slideUp 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out;
}

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

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

.topic-bubble {
  animation: float 3s ease-in-out infinite;
}

.topic-bubble:nth-child(2n) {
  animation-delay: 0.5s;
}

.topic-bubble:nth-child(3n) {
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

/* Gradient animation for button */
button.bg-gradient-to-r {
  background-position: left;
  transition: background-position 0.5s ease;
}

button.bg-gradient-to-r:hover:not(:disabled) {
  background-position: right;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.7);
}

/* Input focus ring */
input:focus {
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .glass-card {
    padding: 1rem;
  }
}

/* Selection color */
::selection {
  background: rgba(139, 92, 246, 0.4);
  color: white;
}