@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
  }

  .dark {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
  }

  body {
    @apply antialiased;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
  }

  .dark body {
    background-color: #000000;
  }

  * {
    @apply border-slate-200 dark:border-zinc-800;
  }
}

/* Brand Logo Font */
.brand-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

/* Gradient Text Animation - Purple to Pink to Orange */
.gradient-text {
  background: linear-gradient(
    90deg,
    #8b5cf6 0%,
    #a855f7 20%,
    #d946ef 40%,
    #ec4899 60%,
    #f97316 80%,
    #fb923c 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradient-shift 4s ease-in-out infinite;
}

.gradient-text-static {
  background: linear-gradient(
    135deg,
    #8b5cf6 0%,
    #a855f7 25%,
    #d946ef 50%,
    #ec4899 75%,
    #f97316 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Larger gradient text for hero */
.gradient-text-hero {
  background: linear-gradient(
    90deg,
    #7c3aed 0%,
    #8b5cf6 15%,
    #a855f7 30%,
    #d946ef 45%,
    #ec4899 60%,
    #f97316 75%,
    #fb923c 90%,
    #7c3aed 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradient-shift 3s linear infinite;
  filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.3));
}

@keyframes gradient-shift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Hero Background Animation */
.hero-bg {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.15) 0%,
    rgba(168, 85, 247, 0.12) 15%,
    rgba(217, 70, 239, 0.1) 30%,
    rgba(236, 72, 153, 0.08) 45%,
    rgba(249, 115, 22, 0.1) 60%,
    rgba(251, 146, 60, 0.08) 75%,
    rgba(139, 92, 246, 0.15) 100%
  );
  background-size: 400% 400%;
  animation: hero-gradient 20s ease infinite;
}

.dark .hero-bg {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.2) 0%,
    rgba(168, 85, 247, 0.15) 15%,
    rgba(217, 70, 239, 0.12) 30%,
    rgba(236, 72, 153, 0.1) 45%,
    rgba(249, 115, 22, 0.12) 60%,
    rgba(251, 146, 60, 0.1) 75%,
    rgba(139, 92, 246, 0.2) 100%
  );
  background-size: 400% 400%;
  animation: hero-gradient 20s ease infinite;
}

@keyframes hero-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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

/* Glow Effect */
.glow-purple {
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.3), 0 0 80px rgba(139, 92, 246, 0.1);
}

.glow-text {
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.5), 0 0 80px rgba(217, 70, 239, 0.3);
}

@layer components {
  .card {
    @apply bg-white dark:bg-slate-800 rounded-xl shadow-sm border border-slate-200/50 dark:border-slate-700/50;
  }

  .btn-primary {
    @apply bg-gradient-to-r from-violet-500 to-purple-600 hover:from-violet-600 hover:to-purple-700 text-white px-4 py-2 rounded-xl font-medium transition-all shadow-lg shadow-violet-500/25 hover:shadow-violet-500/40;
  }

  .btn-secondary {
    @apply bg-slate-100 hover:bg-slate-200 dark:bg-slate-800 dark:hover:bg-slate-700 text-slate-700 dark:text-slate-200 px-4 py-2 rounded-xl font-medium transition-colors;
  }
}

@layer utilities {
  .animate-in {
    animation: animate-in 0.3s ease-out;
  }

  .slide-in-from-top-2 {
    --tw-enter-translate-y: -0.5rem;
  }

  @keyframes animate-in {
    from {
      opacity: 0;
      transform: translateY(var(--tw-enter-translate-y, 0));
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

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

  ::-webkit-scrollbar-track {
    @apply bg-transparent;
  }

  ::-webkit-scrollbar-thumb {
    @apply bg-slate-300 dark:bg-slate-600 rounded-full;
  }

  ::-webkit-scrollbar-thumb:hover {
    @apply bg-slate-400 dark:bg-slate-500;
  }

  /* Prose dark mode */
  .dark .prose {
    --tw-prose-body: theme('colors.slate.300');
    --tw-prose-headings: theme('colors.white');
  }
}

/* Loading spinner */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

/* Fade In Animation */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Scale In Animation */
@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-in {
  animation: scale-in 0.2s ease-out;
}

/* Slide In Animation */
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Shimmer Effect for Loading */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
