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

@layer utilities {
  /* Custom animations */
  .animate-pulse-once {
    animation: pulse-once 2s ease-in-out;
  }
  
  .animate-fade-up {
    animation: fade-up 0.5s ease-out forwards;
  }
  
  .animate-typewriter {
    overflow: hidden;
    border-right: 2px solid currentColor;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
  }
  
  .animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
  }
  
  .animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
  }
  
  /* Staggered animations for lists */
  .stagger-1 { animation-delay: 100ms; }
  .stagger-2 { animation-delay: 200ms; }
  .stagger-3 { animation-delay: 300ms; }
  .stagger-4 { animation-delay: 400ms; }
  .stagger-5 { animation-delay: 500ms; }
}

@keyframes pulse-once {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: currentColor; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes glow {
  from {
    box-shadow: 0 0 5px theme('colors.accent.DEFAULT'), 0 0 10px theme('colors.accent.DEFAULT');
  }
  to {
    box-shadow: 0 0 10px theme('colors.accent.DEFAULT'), 0 0 20px theme('colors.accent.DEFAULT');
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading skeleton shimmer */
.skeleton {
  background: linear-gradient(
    90deg,
    theme('colors.dark.600') 25%,
    theme('colors.dark.500') 50%,
    theme('colors.dark.600') 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* Toast animations */
.toast-enter {
  animation: toast-enter 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-exit {
  animation: toast-exit 0.3s ease-in forwards;
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(100%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-exit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(50%) scale(0.9);
  }
}

/* Button hover glow effects */
.shadow-glow {
  box-shadow: 0 0 20px -5px theme('colors.accent.DEFAULT');
}

.shadow-glow-lg {
  box-shadow: 0 0 30px -5px theme('colors.accent.DEFAULT');
}

/* Bounce animation for loading dots */
@keyframes bounce-delayed {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.bounce-dot {
  animation: bounce-delayed 1.4s infinite ease-in-out both;
}

.bounce-dot:nth-child(1) { animation-delay: -0.32s; }
.bounce-dot:nth-child(2) { animation-delay: -0.16s; }
.bounce-dot:nth-child(3) { animation-delay: 0s; }

/* Number counter animation */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* Smooth value transitions */
.value-transition {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
