/* MuseFlow MSA - Common Styles */

/* Loading State */
.msa-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  color: #a78bfa;
  font-size: 1.2rem;
}

.msa-loading::after {
  content: '...';
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Error State */
.msa-error {
  padding: 1.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.5rem;
  color: #ef4444;
  margin: 1rem 0;
}

/* MSA Container */
.msa-container {
  opacity: 0;
  animation: fadeIn 0.3s ease-in forwards;
}

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

/* MSA Card */
.msa-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.msa-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.2);
}

/* MSA Button */
.msa-button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  border: none;
  border-radius: 0.5rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.msa-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.4);
}

.msa-button:active {
  transform: translateY(0);
}

/* MSA Input */
.msa-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.msa-input:focus {
  outline: none;
  border-color: #a78bfa;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

/* MSA Badge */
.msa-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: rgba(167, 139, 250, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 9999px;
  color: #a78bfa;
  font-size: 0.875rem;
  font-weight: 600;
}

/* MSA Grid */
.msa-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .msa-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .msa-grid { grid-template-columns: repeat(3, 1fr); }
}

/* MSA Animation */
.msa-fade-in {
  animation: fadeIn 0.5s ease-in;
}

.msa-slide-up {
  animation: slideUp 0.5s ease-out;
}

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

/* Utility Classes */
.msa-text-center { text-align: center; }
.msa-text-primary { color: #a78bfa; }
.msa-text-secondary { color: #ec4899; }
.msa-text-muted { color: #9ca3af; }

.msa-mt-1 { margin-top: 0.25rem; }
.msa-mt-2 { margin-top: 0.5rem; }
.msa-mt-4 { margin-top: 1rem; }
.msa-mt-6 { margin-top: 1.5rem; }

.msa-mb-1 { margin-bottom: 0.25rem; }
.msa-mb-2 { margin-bottom: 0.5rem; }
.msa-mb-4 { margin-bottom: 1rem; }
.msa-mb-6 { margin-bottom: 1.5rem; }

.msa-p-4 { padding: 1rem; }
.msa-p-6 { padding: 1.5rem; }
.msa-p-8 { padding: 2rem; }
