/* Custom CSS para CreatorSpace */

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

.animate-slide-in {
  animation: slideIn 0.3s ease-out;
}

/* Gradients */
.gradient-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.gradient-secondary {
  background: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
}

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

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #6366f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4f46e5;
}

/* Modal animations */
.modal-enter {
  animation: modalEnter 0.3s ease-out;
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Button hover effects */
.btn-primary {
  @apply bg-primary hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-lg transition-all duration-200;
  transform: translateY(0);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  @apply bg-secondary hover:bg-pink-600 text-white font-medium py-2 px-4 rounded-lg transition-all duration-200;
  transform: translateY(0);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Input focus styles */
.input-focus {
  transition: all 0.2s ease;
}

.input-focus:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  border-color: #6366f1;
}

/* Loading spinner */
.loading-spinner {
  border: 2px solid #f3f4f6;
  border-top: 2px solid #6366f1;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Alert styles */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  border-left: 4px solid;
}

.alert-success {
  background-color: #f0fdf4;
  border-left-color: #22c55e;
  color: #166534;
}

.alert-error {
  background-color: #fef2f2;
  border-left-color: #ef4444;
  color: #dc2626;
}

.alert-warning {
  background-color: #fffbeb;
  border-left-color: #f59e0b;
  color: #d97706;
}

.alert-info {
  background-color: #eff6ff;
  border-left-color: #3b82f6;
  color: #1d4ed8;
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 300px;
  z-index: 1000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(0);
}

/* Media queries for responsive design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
  .dark-mode {
    background-color: #1f2937;
    color: #f9fafb;
  }
  
  .dark-mode .bg-white {
    background-color: #374151;
  }
  
  .dark-mode .text-gray-900 {
    color: #f9fafb;
  }
  
  .dark-mode .text-gray-600 {
    color: #d1d5db;
  }
}

/* Custom utilities */
.text-gradient {
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-gradient {
  border: 2px solid;
  border-image: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  border-image-slice: 1;
}

/* Creator badge */
.creator-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Premium content indicator */
.premium-indicator {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Verified badge */
.verified-badge {
  color: #3b82f6;
  font-size: 1.1rem;
}

/* Avatar styles */
.avatar {
  border-radius: 50%;
  object-fit: cover;
}

.avatar-ring {
  border: 3px solid;
  border-image: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  border-image-slice: 1;
  border-radius: 50%;
}