/* Updated CSS to match exact React version with proper color tokens and animations */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

/* Color tokens matching React version exactly */
:root {
  /* Blue primary for hero and header */
  --primary: 217 91% 60%;
  --primary-foreground: 0 0% 100%;

  /* Background colors */
  --background: 0 0% 100%;
  --foreground: 222 47% 11%;

  /* Card colors */
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;

  /* Muted colors */
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;

  /* Red for CTA buttons */
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;

  /* Green accent for checkmarks and badges */
  --secondary: 142 71% 45%;
  --secondary-foreground: 0 0% 100%;

  /* Yellow/Orange for bonus boxes and warnings */
  --warning: 38 92% 50%;
  --warning-foreground: 26 83% 14%;

  /* Accent color (coral/pink for help sections) */
  --accent: 345 83% 47%;
  --accent-foreground: 0 0% 100%;

  /* Border and input */
  --border: 214 32% 91%;
  --input: 214 32% 91%;
  --ring: 217 91% 60%;

  --radius: 0.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Animations matching React version */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

@keyframes slide-in-from-bottom {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out;
  animation-fill-mode: both;
}

.animate-slide-in-right {
  animation: slide-in-right 0.6s ease-out;
  animation-fill-mode: both;
}

.animate-slide-in-from-bottom {
  animation: slide-in-from-bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Typography utilities */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Smooth transitions */
button,
a {
  transition: all 0.2s ease-in-out;
}

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

::-webkit-scrollbar-track {
  background: hsl(var(--muted));
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground) / 0.3);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground) / 0.5);
}
