import Heading from "@/app/components/ui/Heading";

interface NutritionCardProps {
  label: string;
  description: string;
}

export function NutritionCard({ label, description }: NutritionCardProps) {
  return (
    <div className="hover:-translate-y-3 transition-transform duration-500 border border-white bg-transparent hover:bg-primary rounded-xl overflow-hidden">
      <div className="w-full h-full hover:bg-black/40 pt-6 pb-4 px-4 text-white text-center">
        <Heading as="h3" variant="card" className="mb-4">
          {label}
        </Heading>
        <p className="text-center text-sm">{description}</p>
      </div>
    </div>
  );
}
