@import "tailwindcss";
@import "./luma/tokens.css";
@import "./luma/base.css";
@import "./luma/layouts.css";
@import "./luma/chat.css";

/* Custom Animations */
@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Animation Utility Classes */
.animate-blob {
  animation: blob 7s infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out;
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

/* Animation Delays */
.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Custom Gradients */
.bg-gradient-spiritual {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-peaceful {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Glassmorphism Effects */
.glass-effect {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glass-effect-dark {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Background Blobs */
.blob-container {
  @apply absolute inset-0 overflow-hidden;
}

.blob {
  @apply absolute rounded-full mix-blend-multiply filter blur-3xl opacity-20;
}

.blob-purple {
  @apply bg-purple-700 w-72 h-72 md:w-96 md:h-96;
}

.blob-indigo {
  @apply bg-indigo-700 w-72 h-72 md:w-96 md:h-96;
}

.blob-blue {
  @apply bg-blue-700 w-72 h-72 md:w-96 md:h-96;
}

.nav-link-white {
  @apply text-white/80 hover:text-white transition-colors duration-200;
}

/* Goal Highlight Animation */
@keyframes highlight {
  0% {
    background-color: rgba(199, 210, 254, 0.3);
  }
  100% {
    background-color: transparent;
  }
}

.animate-highlight {
  animation: highlight 3s ease-out;
  transition: all 0.3s ease;
}

/* Goal item hover effects */
.goal-item:hover .delete-btn {
  opacity: 1;
}

/* Memory notification animation */
@keyframes fade-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.animate-fade-out {
  animation: fade-out 0.3s ease-out forwards;
}

/* Goals Panel Animation */
@keyframes slide-in-right {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slide-out-right {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

.slide-in-right {
  animation: slide-in-right 0.3s ease-out;
}

.slide-out-right {
  animation: slide-out-right 0.3s ease-in;
}

/* Toast Notification Animations */
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.animate-toast-in {
  animation: toast-in 0.3s ease-out;
}

.animate-toast-out {
  animation: toast-out 0.3s ease-in;
}

/* Flash Toast Styles */
.flash-toast {
  @apply transition-all duration-300;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .blob {
    @apply w-48 h-48;
  }

  #flash-container {
    @apply top-4 right-4 left-4;
  }

  .flash-toast {
    @apply min-w-full;
  }
}
